{"info":{"_postman_id":"1a2a0c72-27c5-4372-8c67-95e93c3e879e","name":"Pet Store API","description":"<html><head></head><body><p>This is a Pet Store API</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"11590162","collectionId":"1a2a0c72-27c5-4372-8c67-95e93c3e879e","publishedId":"TWDZJbqb","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2021-02-23T22:01:41.000Z"},"item":[{"name":"Pets","item":[{"name":"Get all pets","id":"73eed393-5143-44b9-b5de-04c8bd6b987d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{URL}}/api/v1/pets","description":"<p>Get all the pets from the database</p>\n","urlObject":{"path":["api","v1","pets"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"73eed393-5143-44b9-b5de-04c8bd6b987d"},{"name":"Create a pet","id":"0a952d5e-b6a6-4c41-b27a-b8b3d59b416a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json","description":"<p>JSON type</p>\n","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"name\":\"Casper\",\n    \"age\":4,\n    \"type\":\"Dog\",\n    \"breed\":\"Labrador\"\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/pets","description":"<p>Create a pet and add to database</p>\n","urlObject":{"path":["api","v1","pets"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"0a952d5e-b6a6-4c41-b27a-b8b3d59b416a"},{"name":"Get a single pet","id":"8f94503a-6b50-4aad-aafc-d7b04ccff5d1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","description":"<p>JSON type</p>\n","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"name\" : \"Jake Smith\",\n    \"email\" : \"jake@gmail.com\",\n    \"password\" : \"123456\"\n}"},"url":"{{URL}}/api/v1/pets/6034193064354d36aa8f14a2","description":"<p>Get a single pet from the database by ID</p>\n","urlObject":{"path":["api","v1","pets","6034193064354d36aa8f14a2"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"8f94503a-6b50-4aad-aafc-d7b04ccff5d1"},{"name":"Update a pet","id":"203f4694-f409-4c37-934d-fcd9ee531a9b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN}}"}]},"isInherited":false},"method":"PUT","header":[{"key":"Content-Type","value":"application/json","description":"<p>JSON type</p>\n","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"name\" : \"Tabitha\"\n}"},"url":"{{URL}}/api/v1/pets/60341c2e05fe843ad32ccf67","description":"<p>Update a pet in the database by ID</p>\n","urlObject":{"path":["api","v1","pets","60341c2e05fe843ad32ccf67"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"203f4694-f409-4c37-934d-fcd9ee531a9b"},{"name":"Delete a pet","id":"7dbf2677-2cfe-443f-8dd0-29c843b6c1f7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN}}"}]},"isInherited":false},"method":"DELETE","header":[{"key":"Content-Type","value":"application/json","description":"<p>JSON type</p>\n","type":"text"}],"url":"{{URL}}/api/v1/pets/6034193064354d36aa8f14a2","description":"<p>Delete a pet from the database by ID</p>\n","urlObject":{"path":["api","v1","pets","6034193064354d36aa8f14a2"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"7dbf2677-2cfe-443f-8dd0-29c843b6c1f7"},{"name":"Get pets of owner","id":"9e7de737-0974-403c-a093-7a491dce0cfb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{URL}}/api/v1/owners/60341c1805fe843ad32ccf66/pets","description":"<p>Get pets of a single user</p>\n","urlObject":{"path":["api","v1","owners","60341c1805fe843ad32ccf66","pets"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"9e7de737-0974-403c-a093-7a491dce0cfb"},{"name":"Get owner of a pet","id":"1dc471de-1074-42bf-b366-1f62616baf3e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","description":"<p>JSON type</p>\n","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"name\" : \"Jake Smith\",\n    \"email\" : \"jake@gmail.com\",\n    \"password\" : \"123456\"\n}"},"url":"{{URL}}/api/v1/pets/60341c2e05fe843ad32ccf67/owner","description":"<p>Get the owner of a pet</p>\n","urlObject":{"path":["api","v1","pets","60341c2e05fe843ad32ccf67","owner"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"1dc471de-1074-42bf-b366-1f62616baf3e"}],"id":"888bd315-4a5f-43ec-9650-d4683e0b4642","description":"<p>All the requests related to pets</p>\n","_postman_id":"888bd315-4a5f-43ec-9650-d4683e0b4642"},{"name":"Auth","item":[{"name":"Register User","event":[{"listen":"test","script":{"id":"3ccde5be-2b75-43db-9bb2-9b7481c9ebb8","exec":["pm.environment.set(\"TOKEN\", pm.response.json().token)"],"type":"text/javascript"}}],"id":"f537d466-be87-4550-8ac1-44eb4b1d483f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","description":"<p>JSON type</p>\n","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"name\" : \"Soumik Chaudhuri\",\n    \"email\" : \"soumik@gmail.com\",\n    \"password\" : \"123456\"\n}"},"url":"{{URL}}/api/v1/auth/register","description":"<p>Register a new user </p>\n","urlObject":{"path":["api","v1","auth","register"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"f537d466-be87-4550-8ac1-44eb4b1d483f"},{"name":"Log in User","event":[{"listen":"test","script":{"id":"ddb410ab-3864-4dd4-8106-14467ba5e572","exec":["pm.environment.set(\"TOKEN\", pm.response.json().token)"],"type":"text/javascript"}}],"id":"ed36874e-07c2-42e5-b478-364a5d64507b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","description":"<p>JSON type</p>\n","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"email\" : \"soumik@gmail.com\",\n    \"password\" : \"123456\"\n}"},"url":"{{URL}}/api/v1/auth/login","description":"<p>Log in user </p>\n","urlObject":{"path":["api","v1","auth","login"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"ed36874e-07c2-42e5-b478-364a5d64507b"},{"name":"Get logged in User","id":"d1dc1e82-5bd3-42bf-b50f-2d35c803dc05","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[],"url":"{{URL}}/api/v1/auth/me","description":"<p>Get logged in user from the database</p>\n","urlObject":{"path":["api","v1","auth","me"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"d1dc1e82-5bd3-42bf-b50f-2d35c803dc05"},{"name":"Log out User","id":"a7fced93-9feb-4810-9f4d-6c8a4bf56663","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[],"url":"{{URL}}/api/v1/auth/logout","description":"<p>This is used to log out a logged in user by clearing the cookie</p>\n","urlObject":{"path":["api","v1","auth","logout"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"a7fced93-9feb-4810-9f4d-6c8a4bf56663"}],"id":"cf8c755a-da73-49cb-82e2-04f9ba661321","description":"<p>Requests made for authentication</p>\n","_postman_id":"cf8c755a-da73-49cb-82e2-04f9ba661321"},{"name":"Owners","item":[{"name":"Get all owners","id":"12af38d8-11f3-40ef-83c9-513b0f0b961a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{URL}}/api/v1/owners","description":"<p>Get all owners from the database</p>\n","urlObject":{"path":["api","v1","owners"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"12af38d8-11f3-40ef-83c9-513b0f0b961a"},{"name":"Get a single owner","id":"e2c0a662-645c-48f6-8f75-871901554389","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{URL}}/api/v1/owners/60341c1805fe843ad32ccf66","description":"<p>Get a single owner from the database by ID</p>\n","urlObject":{"path":["api","v1","owners","60341c1805fe843ad32ccf66"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"e2c0a662-645c-48f6-8f75-871901554389"}],"id":"cdc0b9e0-336d-4d1e-a9a5-593a98ad8c50","description":"<p>All the routes related to owners</p>\n","_postman_id":"cdc0b9e0-336d-4d1e-a9a5-593a98ad8c50"}]}