From c73e098b06eeff9ae35a285a83e2e182f56e0f09 Mon Sep 17 00:00:00 2001 From: Natalie Russell Date: Thu, 11 Jan 2024 19:15:42 +0000 Subject: [PATCH] Adding postman example configs for GCP --- .../GCPPrivacySandbox.postman_collection.json | 92 +++++++++++++++++++ .../GCP_workspace.postman_globals.json | 33 +++++++ 2 files changed, 125 insertions(+) create mode 100644 tools/postman_configurations/GCPPrivacySandbox.postman_collection.json create mode 100644 tools/postman_configurations/GCP_workspace.postman_globals.json diff --git a/tools/postman_configurations/GCPPrivacySandbox.postman_collection.json b/tools/postman_configurations/GCPPrivacySandbox.postman_collection.json new file mode 100644 index 00000000..48ee3bd0 --- /dev/null +++ b/tools/postman_configurations/GCPPrivacySandbox.postman_collection.json @@ -0,0 +1,92 @@ +{ + "info": { + "_postman_id": "57a11868-f3c8-4ccc-b43a-af43e038700f", + "name": "GCP Privacy Sandbox", + "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json", + "_exporter_id": "32120047" + }, + "item": [ + { + "name": "createJob", + "request": { + "method": "POST", + "header": [], + "body": { + "mode": "raw", + "raw": "{\n \"job_request_id\": \"\",\n \"input_data_blob_prefix\": \"/.avro\",\n \"input_data_bucket_name\": \"\",\n \"output_data_blob_prefix\": \"/\",\n \"output_data_bucket_name\": \"\",\n \"job_parameters\": {\n \"output_domain_blob_prefix\": \"/.avro\",\n \"output_domain_bucket_name\": \"\",\n \"attribution_report_to\": \"\",\n \"report_error_threshold_percentage\": \"10\",\n \"debug_run\": \"true\"\n }\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "https://{{environment}}-{{region}}-frontend-service-{{cloud-function-id}}-uc.a.run.app/v1alpha/createJob", + "protocol": "https", + "host": [ + "{{environment}}-{{region}}-frontend-service-{{cloud-function-id}}-uc", + "a", + "run", + "app" + ], + "path": [ + "v1alpha", + "createJob" + ] + } + }, + "response": [] + }, + { + "name": "getJob", + "request": { + "method": "GET", + "header": [], + "url": { + "raw": "https://{{environment}}-{{region}}-frontend-service-{{cloud-function-id}}-uc.a.run.app/v1alpha/getJob?job_request_id={{request-id}}", + "protocol": "https", + "host": [ + "{{environment}}-{{region}}-frontend-service-{{cloud-function-id}}-uc", + "a", + "run", + "app" + ], + "path": ["v1alpha", "getJob"], + "query": [ + { + "key": "job_request_id", + "value": "{{request-id}}" + } + ] + } + }, + "response": [] + } + ], + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "", + "type": "string" + } + ] + }, + "event": [ + { + "listen": "prerequest", + "script": { + "type": "text/javascript", + "exec": [""] + } + }, + { + "listen": "test", + "script": { + "type": "text/javascript", + "exec": [""] + } + } + ] +} diff --git a/tools/postman_configurations/GCP_workspace.postman_globals.json b/tools/postman_configurations/GCP_workspace.postman_globals.json new file mode 100644 index 00000000..5b6c7553 --- /dev/null +++ b/tools/postman_configurations/GCP_workspace.postman_globals.json @@ -0,0 +1,33 @@ +{ + "id": "4a7cfc0f-9e23-41f2-8aa5-480e9f87737f", + "values": [ + { + "key": "region", + "value": "", + "type": "default", + "enabled": true + }, + { + "key": "environment", + "value": "", + "type": "default", + "enabled": true + }, + { + "key": "cloud-function-id", + "value": "", + "type": "default", + "enabled": true + }, + { + "key": "request-id", + "value": "", + "type": "default", + "enabled": true + } + ], + "name": "Globals", + "_postman_variable_scope": "globals", + "_postman_exported_at": "2024-01-08T20:00:52.445Z", + "_postman_exported_using": "Postman/10.21.11-240102-2003" +}