Created
December 21, 2018 18:45
-
-
Save delorenj/0aa9a89f42cebf756b2cee94487500e9 to your computer and use it in GitHub Desktop.
AmexAPI Endpoints
This file contains hidden or 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": "23555d6b-e3cf-4cab-9111-c5bb599669d8", | |
"name": "AmexAPI", | |
"description": "Collection of routes to test my Amex candidate submission", | |
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json" | |
}, | |
"item": [ | |
{ | |
"name": "/people", | |
"request": { | |
"method": "GET", | |
"header": [], | |
"body": { | |
"mode": "raw", | |
"raw": "" | |
}, | |
"url": { | |
"raw": "{{url}}/people", | |
"host": [ | |
"{{url}}" | |
], | |
"path": [ | |
"people" | |
] | |
}, | |
"description": "List all `people` in the database" | |
}, | |
"response": [] | |
}, | |
{ | |
"name": "/person/{id}", | |
"request": { | |
"method": "GET", | |
"header": [], | |
"body": { | |
"mode": "raw", | |
"raw": "" | |
}, | |
"url": { | |
"raw": "{{url}}/people/1", | |
"host": [ | |
"{{url}}" | |
], | |
"path": [ | |
"people", | |
"1" | |
] | |
}, | |
"description": "List all `people` in the database" | |
}, | |
"response": [] | |
}, | |
{ | |
"name": "/people [Bad Date Format]", | |
"request": { | |
"method": "POST", | |
"header": [ | |
{ | |
"key": "Content-Type", | |
"value": "application/json" | |
} | |
], | |
"body": { | |
"mode": "raw", | |
"raw": "{\n\t\"name\": \"Jompy Withlestackr\",\n\t\"email\": \"[email protected]\",\n\t\"dob\": \"2001-01-3\"\n}" | |
}, | |
"url": { | |
"raw": "{{url}}/people", | |
"host": [ | |
"{{url}}" | |
], | |
"path": [ | |
"people" | |
] | |
}, | |
"description": "List all `people` in the database" | |
}, | |
"response": [] | |
}, | |
{ | |
"name": "/people [Ok]", | |
"request": { | |
"method": "POST", | |
"header": [ | |
{ | |
"key": "Content-Type", | |
"value": "application/json" | |
} | |
], | |
"body": { | |
"mode": "raw", | |
"raw": "{\n\t\"name\": \"Test User\",\n\t\"email\": \"[email protected]\",\n\t\"dob\": \"1979-12-31\"\n}" | |
}, | |
"url": { | |
"raw": "{{url}}/people", | |
"host": [ | |
"{{url}}" | |
], | |
"path": [ | |
"people" | |
] | |
}, | |
"description": "List all `people` in the database" | |
}, | |
"response": [] | |
}, | |
{ | |
"name": "/people [Ok]", | |
"request": { | |
"method": "PUT", | |
"header": [ | |
{ | |
"key": "Content-Type", | |
"value": "application/json" | |
} | |
], | |
"body": { | |
"mode": "raw", | |
"raw": "{\n\t\"name\": \"Dr. Jimps\",\n\t\"dob\": \"1979-12-31\"\n}" | |
}, | |
"url": { | |
"raw": "{{url}}/people/1", | |
"host": [ | |
"{{url}}" | |
], | |
"path": [ | |
"people", | |
"1" | |
] | |
}, | |
"description": "List all `people` in the database" | |
}, | |
"response": [] | |
}, | |
{ | |
"name": "/people/{id}", | |
"request": { | |
"method": "DELETE", | |
"header": [ | |
{ | |
"key": "Content-Type", | |
"value": "application/json" | |
} | |
], | |
"body": { | |
"mode": "raw", | |
"raw": "{\n\t\"name\": \"Dr. Jimps\",\n\t\"dob\": \"1979-12-31\"\n}" | |
}, | |
"url": { | |
"raw": "{{url}}/people/1", | |
"host": [ | |
"{{url}}" | |
], | |
"path": [ | |
"people", | |
"1" | |
] | |
}, | |
"description": "List all `people` in the database" | |
}, | |
"response": [] | |
}, | |
{ | |
"name": "/people [Invalid Person Payload]", | |
"request": { | |
"method": "POST", | |
"header": [ | |
{ | |
"key": "Content-Type", | |
"value": "application/json" | |
} | |
], | |
"body": { | |
"mode": "raw", | |
"raw": "{\n\t\"name\": \"Test User\",\n\t\"dob\": \"1979-12-31\"\n}" | |
}, | |
"url": { | |
"raw": "{{url}}/people", | |
"host": [ | |
"{{url}}" | |
], | |
"path": [ | |
"people" | |
] | |
}, | |
"description": "List all `people` in the database" | |
}, | |
"response": [] | |
} | |
] | |
} |
This file contains hidden or 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
{ | |
"id": "6d0a7298-a2c5-453f-b8c2-992e5dca1fb4", | |
"name": "AmexAPI", | |
"values": [ | |
{ | |
"key": "url", | |
"value": "amexapi.us-east-1.elasticbeanstalk.com", | |
"description": "", | |
"enabled": true | |
} | |
], | |
"_postman_variable_scope": "environment", | |
"_postman_exported_at": "2018-12-21T18:44:22.816Z", | |
"_postman_exported_using": "Postman/6.5.3" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment