Created
September 18, 2021 01:37
-
-
Save sspocketgalaxy/9a9c0cbb37236069d76436df925a7650 to your computer and use it in GitHub Desktop.
Postman collection file for testing the output of the SCALABLE API ENDPOINTS WITH API GATEWAY AND SQS blog at https://blog.pocketgalaxy.io
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"info": { | |
"_postman_id": "2b846664-4cbc-4548-b1c7-af3d117496d1", | |
"name": "API Gateway Tests", | |
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json" | |
}, | |
"item": [ | |
{ | |
"name": "Proxy POST", | |
"request": { | |
"method": "POST", | |
"header": [ | |
{ | |
"key": "Content-Type", | |
"value": "application/json", | |
"type": "text" | |
} | |
], | |
"body": { | |
"mode": "raw", | |
"raw": "{\n \"title\": \"foo\",\n \"body\": \"bar\",\n \"userId\": 1\n}", | |
"options": { | |
"raw": { | |
"language": "json" | |
} | |
} | |
}, | |
"url": { | |
"raw": "https://YOUR-API-ENDPOINT-HERE/LATEST/posts", | |
"protocol": "https", | |
"host": [ | |
"YOUR-API-ENDPOINT-HERE" | |
], | |
"path": [ | |
"LATEST", | |
"posts" | |
] | |
} | |
}, | |
"response": [] | |
}, | |
{ | |
"name": "Proxy GET", | |
"request": { | |
"method": "GET", | |
"header": [], | |
"url": { | |
"raw": "https://YOUR-API-ENDPOINT-HERE/LATEST/todos", | |
"protocol": "https", | |
"host": [ | |
"YOUR-API-ENDPOINT-HERE" | |
], | |
"path": [ | |
"LATEST", | |
"todos" | |
] | |
} | |
}, | |
"response": [] | |
}, | |
{ | |
"name": "SQS Event POST", | |
"request": { | |
"method": "POST", | |
"header": [], | |
"body": { | |
"mode": "raw", | |
"raw": "{\n \"created_at\": \"2021-01-01T12:01:00-00:00\",\n \"event_type\": \"ADD_TO_CART\",\n \"product_id\": 138\n}", | |
"options": { | |
"raw": { | |
"language": "json" | |
} | |
} | |
}, | |
"url": { | |
"raw": "https://YOUR-API-ENDPOINT-HERE/LATEST/events", | |
"protocol": "https", | |
"host": [ | |
"YOUR-API-ENDPOINT-HERE" | |
], | |
"path": [ | |
"LATEST", | |
"events" | |
] | |
} | |
}, | |
"response": [] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment