1 changed files with 132 additions and 0 deletions
@ -0,0 +1,132 @@ |
|||
{ |
|||
"info": { |
|||
"_postman_id": "8ec8ce61-a7a5-4f6f-ad3f-0bc62d576f43", |
|||
"name": "ContactsAPI", |
|||
"description": "API calls used for testing the contacts REST API", |
|||
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json" |
|||
}, |
|||
"item": [ |
|||
{ |
|||
"name": "Get all contacts", |
|||
"request": { |
|||
"method": "GET", |
|||
"header": [], |
|||
"url": { |
|||
"raw": "localhost:8080/api/v1/contacts/", |
|||
"host": [ |
|||
"localhost" |
|||
], |
|||
"port": "8080", |
|||
"path": [ |
|||
"api", |
|||
"v1", |
|||
"contacts", |
|||
"" |
|||
] |
|||
} |
|||
}, |
|||
"response": [] |
|||
}, |
|||
{ |
|||
"name": "Create contact", |
|||
"request": { |
|||
"method": "POST", |
|||
"header": [], |
|||
"body": { |
|||
"mode": "raw", |
|||
"raw": "{\n \"name\": {\n \"first\": \"z\",\n \"middle\": \"z\",\n \"last\": \"z\"\n },\n \"address\": {\n \"street\": \"street\",\n \"city\": \"city\",\n \"state\": \"state\",\n \"zip\": \"zip\"\n },\n \"phone\": [\n {\n \"number\": \"999-999-9999\",\n \"type\": \"home\"\n }\n ],\n \"email\": \"e@mail.com\"\n}", |
|||
"options": { |
|||
"raw": { |
|||
"language": "json" |
|||
} |
|||
} |
|||
}, |
|||
"url": { |
|||
"raw": "localhost:8080/api/v1/contacts", |
|||
"host": [ |
|||
"localhost" |
|||
], |
|||
"port": "8080", |
|||
"path": [ |
|||
"api", |
|||
"v1", |
|||
"contacts" |
|||
] |
|||
} |
|||
}, |
|||
"response": [] |
|||
}, |
|||
{ |
|||
"name": "Update contact", |
|||
"request": { |
|||
"method": "PUT", |
|||
"header": [], |
|||
"body": { |
|||
"mode": "raw", |
|||
"raw": "{\n \"name\": {\n \"first\": \"y\",\n \"middle\": \"y\",\n \"last\": \"y\"\n },\n \"address\": {\n \"street\": \"street\",\n \"city\": \"city\",\n \"state\": \"state\",\n \"zip\": \"zip\"\n },\n \"phone\": [\n {\n \"number\": \"999-999-9999\",\n \"type\": \"mobile\"\n }\n ],\n \"email\": \"e@mail.com\"\n}", |
|||
"options": { |
|||
"raw": { |
|||
"language": "json" |
|||
} |
|||
} |
|||
}, |
|||
"url": { |
|||
"raw": "localhost:8080/api/v1/contacts/1", |
|||
"host": [ |
|||
"localhost" |
|||
], |
|||
"port": "8080", |
|||
"path": [ |
|||
"api", |
|||
"v1", |
|||
"contacts", |
|||
"1" |
|||
] |
|||
} |
|||
}, |
|||
"response": [] |
|||
}, |
|||
{ |
|||
"name": "Delete contact", |
|||
"request": { |
|||
"method": "DELETE", |
|||
"header": [], |
|||
"url": { |
|||
"raw": "localhost:8080/api/v1/contacts/1", |
|||
"host": [ |
|||
"localhost" |
|||
], |
|||
"port": "8080", |
|||
"path": [ |
|||
"api", |
|||
"v1", |
|||
"contacts", |
|||
"1" |
|||
] |
|||
} |
|||
}, |
|||
"response": [] |
|||
}, |
|||
{ |
|||
"name": "Get call list", |
|||
"request": { |
|||
"method": "GET", |
|||
"header": [], |
|||
"url": { |
|||
"raw": "localhost:8080/api/v1/contacts/call-list", |
|||
"host": [ |
|||
"localhost" |
|||
], |
|||
"port": "8080", |
|||
"path": [ |
|||
"api", |
|||
"v1", |
|||
"contacts", |
|||
"call-list" |
|||
] |
|||
} |
|||
}, |
|||
"response": [] |
|||
} |
|||
] |
|||
} |
|||
Loading…
Reference in new issue