{"info":{"_postman_id":"a2acc961-28ba-4e33-9ff3-7762b3e9d38e","name":"Notive Flask API","description":"<html><head></head><body><p>This API uses Bearer Authorization in all of its requests. You need to include the \"Authorization: Bearer \" in the request header. The token is specified as an environment variable and should never be published.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"5446795","collectionId":"a2acc961-28ba-4e33-9ff3-7762b3e9d38e","publishedId":"SzKWtcso","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2020-02-25T09:58:09.000Z"},"item":[{"name":"Auth","item":[{"name":"Register New User","id":"e99a7d9c-3fe5-418f-827b-6c51def181a9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"name\": \"winstonUK\",\n\t\"password\": \"victory44\",\n\t\"email\": \"winston@churchill.com\"\n}","options":{"raw":{"language":"json"}}},"url":"{{req_url}}/auth/register","description":"<p>This endpoint creates a new user in the database with the given information.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"a2acc961-28ba-4e33-9ff3-7762b3e9d38e","id":"a2acc961-28ba-4e33-9ff3-7762b3e9d38e","name":"Notive Flask API","type":"collection"}},"urlObject":{"path":["auth","register"],"host":["{{req_url}}"],"query":[],"variable":[]}},"response":[{"id":"b70f168e-be8b-4dad-8e02-dea8febdb4ae","name":"Register New User","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"name\": \"winstonUK\",\n\t\"password\": \"victory44\",\n\t\"email\": \"winston@churchill.com\"\n}","options":{"raw":{"language":"json"}}},"url":"{{req_url}}/auth/register"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"48"},{"key":"Vary","value":"Cookie"},{"key":"Server","value":"Werkzeug/0.16.1 Python/3.7.3"},{"key":"Date","value":"Tue, 25 Feb 2020 08:22:57 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"You have registered successfully!\"\n}"}],"_postman_id":"e99a7d9c-3fe5-418f-827b-6c51def181a9"},{"name":"Login User","id":"ec0c6086-4901-46b7-b3ea-da839c42d9c9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"password\": \"victory44\",\n\t\"email\": \"winston@churchill.com\"\n}","options":{"raw":{"language":"json"}}},"url":"{{req_url}}/auth/login","description":"<p>This endpoint checks if the user exists and will log in the user to the system. A request must be to this end point prior to all other requests which use the 'login_required' tag.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"a2acc961-28ba-4e33-9ff3-7762b3e9d38e","id":"a2acc961-28ba-4e33-9ff3-7762b3e9d38e","name":"Notive Flask API","type":"collection"}},"urlObject":{"path":["auth","login"],"host":["{{req_url}}"],"query":[],"variable":[]}},"response":[{"id":"77da02cd-ad12-434b-9c7b-d783048d9c45","name":"Login User","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"password\": \"victory44\",\n\t\"email\": \"winston@churchill.com\"\n}","options":{"raw":{"language":"json"}}},"url":"{{req_url}}/auth/login"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"220"},{"key":"Vary","value":"Cookie"},{"key":"Set-Cookie","value":"session=eyJ1c2VyX2lkIjo3fQ.XlTZfQ.rsGcornuLdT9cMTb5-767dTs26E; HttpOnly; Path=/"},{"key":"Server","value":"Werkzeug/0.16.1 Python/3.7.3"},{"key":"Date","value":"Tue, 25 Feb 2020 08:23:25 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"user\": {\n            \"created_at\": 1582618977,\n            \"email\": \"winston@churchill.com\",\n            \"id\": 7,\n            \"name\": \"winstonUK\"\n        }\n    },\n    \"message\": \"You have been logged in successfully!\"\n}"}],"_postman_id":"ec0c6086-4901-46b7-b3ea-da839c42d9c9"},{"name":"Update User Password","id":"6f4edbfe-a479-45f1-b399-83d2d06aacdc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"email\": \"winston@churchill.com\",\n\t\"password\": \"maggie\"\n}","options":{"raw":{"language":"json"}}},"url":"{{req_url}}/auth/update_password","description":"<p>This endpoint takes the user e-mail address and the given plain password to update the user password.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"a2acc961-28ba-4e33-9ff3-7762b3e9d38e","id":"a2acc961-28ba-4e33-9ff3-7762b3e9d38e","name":"Notive Flask API","type":"collection"}},"urlObject":{"path":["auth","update_password"],"host":["{{req_url}}"],"query":[],"variable":[]}},"response":[{"id":"c8d68035-c138-4b9c-a5d8-27aae1ec1e63","name":"Update User Password","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"email\": \"winston@churchill.com\",\n\t\"password\": \"maggie\"\n}","options":{"raw":{"language":"json"}}},"url":"{{req_url}}/auth/update_password"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"49"},{"key":"Vary","value":"Cookie"},{"key":"Server","value":"Werkzeug/0.16.1 Python/3.7.3"},{"key":"Date","value":"Tue, 25 Feb 2020 08:24:25 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Success! User password is updated.\"\n}"}],"_postman_id":"6f4edbfe-a479-45f1-b399-83d2d06aacdc"},{"name":"Get Foursquare Credentials","id":"48f66c85-b75f-4ca5-ae29-d79ef6ebacf9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{req_url}}/auth/fsq_access","description":"<p>This request will provide the necessary Client ID and Client Secret for Foursquare requests.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"a2acc961-28ba-4e33-9ff3-7762b3e9d38e","id":"a2acc961-28ba-4e33-9ff3-7762b3e9d38e","name":"Notive Flask API","type":"collection"}},"urlObject":{"path":["auth","fsq_access"],"host":["{{req_url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"48f66c85-b75f-4ca5-ae29-d79ef6ebacf9"}],"id":"68981a05-e7e9-4bfb-ae5c-c3203225d9dc","_postman_id":"68981a05-e7e9-4bfb-ae5c-c3203225d9dc","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"a2acc961-28ba-4e33-9ff3-7762b3e9d38e","id":"a2acc961-28ba-4e33-9ff3-7762b3e9d38e","name":"Notive Flask API","type":"collection"}}},{"name":"List","item":[{"name":"Get User Lists","id":"03bf9671-8dfc-40f1-af67-08b27cfbe2cb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{req_url}}/list/","description":"<p>This endpoint requires no body and response will include all list information related to the user logged-in.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"a2acc961-28ba-4e33-9ff3-7762b3e9d38e","id":"a2acc961-28ba-4e33-9ff3-7762b3e9d38e","name":"Notive Flask API","type":"collection"}},"urlObject":{"path":["list",""],"host":["{{req_url}}"],"query":[],"variable":[]}},"response":[{"id":"b2267b14-208a-4529-83f0-20f802016fac","name":"Get User Lists","originalRequest":{"method":"GET","header":[],"url":"{{req_url}}/list/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"278"},{"key":"Vary","value":"Cookie"},{"key":"Server","value":"Werkzeug/0.16.1 Python/3.7.3"},{"key":"Date","value":"Tue, 25 Feb 2020 09:52:19 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"lists\": [\n            {\n                \"created_at\": 1582619134,\n                \"finished_at\": null,\n                \"id\": 6,\n                \"is_done\": 0,\n                \"name\": \"Winston's To-Do List\",\n                \"user_id\": 7\n            },\n            {\n                \"created_at\": 1582619165,\n                \"finished_at\": null,\n                \"id\": 7,\n                \"is_done\": 0,\n                \"name\": \"Winston's Holiday Plans!\",\n                \"user_id\": 7\n            }\n        ],\n        \"number_of_lists\": 2\n    },\n    \"message\": \"Success!\"\n}"}],"_postman_id":"03bf9671-8dfc-40f1-af67-08b27cfbe2cb"},{"name":"Create User List","id":"a459a798-7cf7-4c52-931a-aa3f37ef6940","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"name\": \"Winston's To-Do List\"\n}","options":{"raw":{"language":"json"}}},"url":"{{req_url}}/list","description":"<p>This endpoint takes a name parameter and will change the list name to the given name data. The ID of newly created list will be returned in the response.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"a2acc961-28ba-4e33-9ff3-7762b3e9d38e","id":"a2acc961-28ba-4e33-9ff3-7762b3e9d38e","name":"Notive Flask API","type":"collection"}},"urlObject":{"path":["list"],"host":["{{req_url}}"],"query":[],"variable":[]}},"response":[{"id":"fda49b58-6c57-4558-a373-1a6880493a43","name":"Create User List","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"name\": \"Winston's To-Do List\"\n}","options":{"raw":{"language":"json"}}},"url":"{{req_url}}/list"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"93"},{"key":"Vary","value":"Cookie"},{"key":"Server","value":"Werkzeug/0.16.1 Python/3.7.3"},{"key":"Date","value":"Tue, 25 Feb 2020 08:25:34 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"created_at\": 1582619134,\n        \"list_id\": 6\n    },\n    \"message\": \"New list is created successfully!\"\n}"}],"_postman_id":"a459a798-7cf7-4c52-931a-aa3f37ef6940"},{"name":"Update User List","id":"4d9eac52-8198-4c0b-9872-84341c7a906f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"name\": \"Winston's Holiday Plans!\"\n}","options":{"raw":{"language":"json"}}},"url":"{{req_url}}/list/{{list_id}}","description":"<p>This endpoint requires the list ID to be stated in the request URL and request body requires a provided name value. The list name will be updated accordingly.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"a2acc961-28ba-4e33-9ff3-7762b3e9d38e","id":"a2acc961-28ba-4e33-9ff3-7762b3e9d38e","name":"Notive Flask API","type":"collection"}},"urlObject":{"path":["list","{{list_id}}"],"host":["{{req_url}}"],"query":[],"variable":[]}},"response":[{"id":"81bf3c5e-8e08-40f8-b592-eca676d03139","name":"Update User List","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"name\": \"An updated list name!\"\n}","options":{"raw":{"language":"json"}}},"url":"{{req_url}}/list/{{list_id}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"45"},{"key":"Vary","value":"Cookie"},{"key":"Server","value":"Werkzeug/0.16.1 Python/3.7.3"},{"key":"Date","value":"Tue, 25 Feb 2020 08:31:56 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Success! List name is updated.\"\n}"}],"_postman_id":"4d9eac52-8198-4c0b-9872-84341c7a906f"},{"name":"Delete User List","id":"8ac07730-9377-49ce-b512-7d66739c8ad5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"url":"{{req_url}}/list/{{list_id}}","description":"<p>This endpoint requires the list ID to be provided within the request URL. </p>\n<p>If the list does not belong to the user or if the list does not exist, request will be ignored and will respond with an error code.</p>\n<p>If the provided list ID belongs to the logged-in user's list, the list will be deleted. This action is not revertable.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"a2acc961-28ba-4e33-9ff3-7762b3e9d38e","id":"a2acc961-28ba-4e33-9ff3-7762b3e9d38e","name":"Notive Flask API","type":"collection"}},"urlObject":{"path":["list","{{list_id}}"],"host":["{{req_url}}"],"query":[],"variable":[]}},"response":[{"id":"72dea44d-cf36-4bbb-8470-75d69f63cdd0","name":"Delete User List","originalRequest":{"method":"DELETE","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"url":"{{req_url}}/list/{{list_id}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"44"},{"key":"Vary","value":"Cookie"},{"key":"Server","value":"Werkzeug/0.16.1 Python/3.7.3"},{"key":"Date","value":"Sun, 16 Feb 2020 12:26:19 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"List is deleted successfully.\"\n}"}],"_postman_id":"8ac07730-9377-49ce-b512-7d66739c8ad5"},{"name":"Archive List","id":"15a488a1-df4a-454f-96e1-56c4c7b7e509","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"url":"{{req_url}}/list/{{list_id}}/archive","description":"<p>Toggles the archive mode for given list.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"a2acc961-28ba-4e33-9ff3-7762b3e9d38e","id":"a2acc961-28ba-4e33-9ff3-7762b3e9d38e","name":"Notive Flask API","type":"collection"}},"urlObject":{"path":["list","{{list_id}}","archive"],"host":["{{req_url}}"],"query":[],"variable":[]}},"response":[{"id":"23dd6909-2d93-4620-8e15-9191abbe70d0","name":"Archive List","originalRequest":{"method":"PUT","header":[],"url":"{{req_url}}/list/{{list_id}}/archive"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"30"},{"key":"Vary","value":"Cookie"},{"key":"Server","value":"Werkzeug/0.16.1 Python/3.7.6"},{"key":"Date","value":"Sun, 29 Mar 2020 12:13:00 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"List is active.\"\n}"},{"id":"93dbd504-914b-4fdb-881f-bf04d82ec5d1","name":"Archive List","originalRequest":{"method":"PUT","header":[],"url":"{{req_url}}/list/{{list_id}}/archive"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"32"},{"key":"Vary","value":"Cookie"},{"key":"Server","value":"Werkzeug/0.16.1 Python/3.7.6"},{"key":"Date","value":"Sun, 29 Mar 2020 12:12:35 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"List is archived.\"\n}"}],"_postman_id":"15a488a1-df4a-454f-96e1-56c4c7b7e509"},{"name":"Mute List","id":"1e1b05f4-ae58-4ccc-aa98-4bc9dbc26606","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"url":"{{req_url}}/list/{{list_id}}/mute","description":"<p>Toggles the mute mode for given list.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"a2acc961-28ba-4e33-9ff3-7762b3e9d38e","id":"a2acc961-28ba-4e33-9ff3-7762b3e9d38e","name":"Notive Flask API","type":"collection"}},"urlObject":{"path":["list","{{list_id}}","mute"],"host":["{{req_url}}"],"query":[],"variable":[]}},"response":[{"id":"1d67096a-3614-4f4a-b8a4-56320071d01d","name":"Mute List","originalRequest":{"method":"PUT","header":[],"url":"{{req_url}}/list/{{list_id}}/mute"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"29"},{"key":"Vary","value":"Cookie"},{"key":"Server","value":"Werkzeug/0.16.1 Python/3.7.6"},{"key":"Date","value":"Sun, 29 Mar 2020 12:09:30 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"List is muted.\"\n}"},{"id":"c8172306-9ce0-49bc-84ff-3ac7a2562536","name":"Mute List","originalRequest":{"method":"PUT","header":[],"url":"{{req_url}}/list/{{list_id}}/mute"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"31"},{"key":"Vary","value":"Cookie"},{"key":"Server","value":"Werkzeug/0.16.1 Python/3.7.6"},{"key":"Date","value":"Sun, 29 Mar 2020 12:12:23 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"List is unmuted.\"\n}"}],"_postman_id":"1e1b05f4-ae58-4ccc-aa98-4bc9dbc26606"}],"id":"c0c0d81c-e82b-4316-9bd8-4df85bec9b45","_postman_id":"c0c0d81c-e82b-4316-9bd8-4df85bec9b45","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"a2acc961-28ba-4e33-9ff3-7762b3e9d38e","id":"a2acc961-28ba-4e33-9ff3-7762b3e9d38e","name":"Notive Flask API","type":"collection"}}},{"name":"Item","item":[{"name":"Get Singular List Item","id":"680c7508-cbcd-4616-8728-fc24ac7e976a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{req_url}}/item/{{list_id}}/{{item_id}}","description":"<p>A list ID and item ID must be provided within the request URL.</p>\n<p>If the IDs provided do not match or belong to any of the logged-in user's lists &amp; items, the request will be ignored and will respond with an error code.</p>\n<p>If the request is successful, the response will include the singular item detail.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"a2acc961-28ba-4e33-9ff3-7762b3e9d38e","id":"a2acc961-28ba-4e33-9ff3-7762b3e9d38e","name":"Notive Flask API","type":"collection"}},"urlObject":{"path":["item","{{list_id}}","{{item_id}}"],"host":["{{req_url}}"],"query":[],"variable":[]}},"response":[{"id":"eafe63a0-d502-4801-a931-2813bceb5695","name":"Get Singular List Item","originalRequest":{"method":"GET","header":[],"url":"{{req_url}}/item/{{list_id}}/{{item_id}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"135"},{"key":"Vary","value":"Cookie"},{"key":"Server","value":"Werkzeug/0.16.1 Python/3.7.3"},{"key":"Date","value":"Tue, 25 Feb 2020 09:03:29 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"item\": {\n            \"created_at\": 1582619332,\n            \"finished_att\": null,\n            \"id\": 6,\n            \"is_done\": 0,\n            \"list_id\": 6,\n            \"name\": \"We shall fight on the streets!\"\n        }\n    }\n}"}],"_postman_id":"680c7508-cbcd-4616-8728-fc24ac7e976a"},{"name":"Get All Items From List","id":"c495efa5-90b9-4536-b531-c3ee026e4715","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{req_url}}/item/{{list_id}}","description":"<p>A list ID must be provided within the request URL.</p>\n<p>If the ID provided does not exist or does not belong to any of the logged-in user's lists, the request will be ignored and will respond with an error code.</p>\n<p>If the request is successful, the response will include all the item details of the requested list.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"a2acc961-28ba-4e33-9ff3-7762b3e9d38e","id":"a2acc961-28ba-4e33-9ff3-7762b3e9d38e","name":"Notive Flask API","type":"collection"}},"urlObject":{"path":["item","{{list_id}}"],"host":["{{req_url}}"],"query":[],"variable":[]}},"response":[{"id":"00ea7c01-7803-4c51-b171-722dd230a810","name":"Get All Items From List","originalRequest":{"method":"GET","header":[],"url":"{{req_url}}/item/{{list_id}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"294"},{"key":"Vary","value":"Cookie"},{"key":"Server","value":"Werkzeug/0.16.1 Python/3.7.3"},{"key":"Date","value":"Tue, 25 Feb 2020 09:06:43 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"items\": [\n            {\n                \"created_at\": 1582619296,\n                \"finished_at\": null,\n                \"id\": 5,\n                \"is_done\": 0,\n                \"list_id\": 6,\n                \"name\": \"We shall fight on the beaches!\"\n            },\n            {\n                \"created_at\": 1582619332,\n                \"finished_at\": null,\n                \"id\": 6,\n                \"is_done\": 0,\n                \"list_id\": 6,\n                \"name\": \"We shall fight on the streets!\"\n            }\n        ],\n        \"number_of_items\": 2\n    },\n    \"message\": \"Success!\"\n}"}],"_postman_id":"c495efa5-90b9-4536-b531-c3ee026e4715"},{"name":"Get All Items Of User","id":"9745f0fc-41aa-4bbb-ba9e-97773b67a95f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{req_url}}/item","description":"<p>The response will include all the item details of the the logged-in user.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"a2acc961-28ba-4e33-9ff3-7762b3e9d38e","id":"a2acc961-28ba-4e33-9ff3-7762b3e9d38e","name":"Notive Flask API","type":"collection"}},"urlObject":{"path":["item"],"host":["{{req_url}}"],"query":[],"variable":[]}},"response":[{"id":"b7d42ae6-9251-4571-969b-e44b8ab38f1e","name":"Get All Items Of User","originalRequest":{"method":"GET","header":[],"url":"{{req_url}}/item"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"386"},{"key":"Vary","value":"Cookie"},{"key":"Server","value":"Werkzeug/0.16.1 Python/3.7.3"},{"key":"Date","value":"Tue, 25 Feb 2020 09:32:48 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"items\": [\n            {\n                \"created_at\": 1582619296,\n                \"finished_at\": null,\n                \"id\": 5,\n                \"is_done\": 0,\n                \"list_id\": 6,\n                \"name\": \"We shall fight on the beaches!\"\n            },\n            {\n                \"created_at\": 1582619332,\n                \"finished_at\": null,\n                \"id\": 6,\n                \"is_done\": 0,\n                \"list_id\": 6,\n                \"name\": \"We shall fight on the streets!\"\n            },\n            {\n                \"created_at\": 1582623161,\n                \"finished_at\": null,\n                \"id\": 7,\n                \"is_done\": 0,\n                \"list_id\": 7,\n                \"name\": \"We shall travel to France!\"\n            }\n        ]\n    },\n    \"message\": \"Success!\"\n}"}],"_postman_id":"9745f0fc-41aa-4bbb-ba9e-97773b67a95f"},{"name":"Add List Item","id":"fed3e514-d8ea-4ff5-9746-0bdb54286fd7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"name\": \"We shall fight on the beaches!\",\n\t\"list_id\": 8\n}","options":{"raw":{"language":"json"}}},"url":"{{req_url}}/item","description":"<p>'name' and 'list_id' information must be provided within the request body.</p>\n<p>If the list ID provided does not exist or does not belong to any of the logged-in user's lists, the request will be ignored and will respond with an error code.</p>\n<p>On success, a new item with provided name will be generated and will be associated to the list that matches the list ID.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"a2acc961-28ba-4e33-9ff3-7762b3e9d38e","id":"a2acc961-28ba-4e33-9ff3-7762b3e9d38e","name":"Notive Flask API","type":"collection"}},"urlObject":{"path":["item"],"host":["{{req_url}}"],"query":[],"variable":[]}},"response":[{"id":"a9023287-1fef-4f40-884c-d8589697f057","name":"Add List Item","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"name\": \"We shall fight on the beaches!\",\n\t\"list_id\": 6\n}","options":{"raw":{"language":"json"}}},"url":"{{req_url}}/item"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"133"},{"key":"Vary","value":"Cookie"},{"key":"Server","value":"Werkzeug/0.16.1 Python/3.7.3"},{"key":"Date","value":"Tue, 25 Feb 2020 08:28:16 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"created_at\": 1582619296,\n        \"item_id\": 5\n    },\n    \"message\": \"An item has been successfully added to list named 'Winston's To-Do List'.\"\n}"}],"_postman_id":"fed3e514-d8ea-4ff5-9746-0bdb54286fd7"},{"name":"Update Item","id":"76a742f5-5208-42e6-aa0c-1ff55df70aee","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"radius\": \"500\",\n\t\"name\": \"Updated vol 2\"\n}","options":{"raw":{"language":"json"}}},"url":"{{req_url}}/item/{{list_id}}/{{item_id}}","description":"<p>This request changes the list item with given list ID and item ID to the provided item name.</p>\n<p>If any of the ID provided does not exist or does not belong to any of the logged-in user's lists or items, the request will be ignored and will respond with an error code.</p>\n<p>On success, item's name will be changed.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"a2acc961-28ba-4e33-9ff3-7762b3e9d38e","id":"a2acc961-28ba-4e33-9ff3-7762b3e9d38e","name":"Notive Flask API","type":"collection"}},"urlObject":{"path":["item","{{list_id}}","{{item_id}}"],"host":["{{req_url}}"],"query":[],"variable":[]}},"response":[{"id":"8e282170-0570-43c2-aa13-5f2d2a56c3ca","name":"Update Item","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"name\": \"Updated Item Name!\"\n}","options":{"raw":{"language":"json"}}},"url":"{{req_url}}/item/{{list_id}}/{{item_id}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"45"},{"key":"Vary","value":"Cookie"},{"key":"Server","value":"Werkzeug/0.16.1 Python/3.7.3"},{"key":"Date","value":"Tue, 25 Feb 2020 09:34:46 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Success! Item name is updated.\"\n}"}],"_postman_id":"76a742f5-5208-42e6-aa0c-1ff55df70aee"},{"name":"Delete Item","id":"51791deb-963a-4aa4-92f0-57ab1dc51f01","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"url":"{{req_url}}/item/{{list_id}}/{{item_id}}","description":"<p>This requests deletes the item associated with the provided list ID and item ID in the request body.</p>\n<p>If any of the ID provided does not exist or does not belong to any of the logged-in user's lists or items, the request will be ignored and will respond with an error code.</p>\n<p>On success, the list item will be deleted. This action is not revertable.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"a2acc961-28ba-4e33-9ff3-7762b3e9d38e","id":"a2acc961-28ba-4e33-9ff3-7762b3e9d38e","name":"Notive Flask API","type":"collection"}},"urlObject":{"path":["item","{{list_id}}","{{item_id}}"],"host":["{{req_url}}"],"query":[],"variable":[]}},"response":[{"id":"d5e516f2-fb35-42c5-bb0b-6e16c4a7490c","name":"Delete Item","originalRequest":{"method":"DELETE","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"url":"{{req_url}}/item/{{list_id}}/{{item_id}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"43"},{"key":"Vary","value":"Cookie"},{"key":"Server","value":"Werkzeug/0.16.1 Python/3.7.3"},{"key":"Date","value":"Tue, 25 Feb 2020 09:48:27 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Item is deleted succesfully!\"\n}"}],"_postman_id":"51791deb-963a-4aa4-92f0-57ab1dc51f01"},{"name":"Check Item","id":"a3db94c7-823a-4e08-a869-773477c99433","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"url":"{{req_url}}/item/{{list_id}}/{{item_id}}/check","description":"<p>List ID and Item ID must be stated within the request URL. On success, this will toggle the item's completion status and update its completion date accordingly.</p>\n<p>If any of the ID provided does not exist or does not belong to any of the logged-in user's lists or items, the request will be ignored and will respond with an error code.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"a2acc961-28ba-4e33-9ff3-7762b3e9d38e","id":"a2acc961-28ba-4e33-9ff3-7762b3e9d38e","name":"Notive Flask API","type":"collection"}},"urlObject":{"path":["item","{{list_id}}","{{item_id}}","check"],"host":["{{req_url}}"],"query":[],"variable":[]}},"response":[{"id":"1a6ba600-2ee0-4183-8998-fb49d598ac2e","name":"Check Item Incomplete","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"url":"{{req_url}}/item/{{list_id}}/{{item_id}}/check"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"47"},{"key":"Vary","value":"Cookie"},{"key":"Server","value":"Werkzeug/0.16.1 Python/3.7.3"},{"key":"Date","value":"Tue, 25 Feb 2020 09:47:14 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Item is marked as not completed!\"\n}"},{"id":"ffb0053c-cbf6-4972-8d77-c470a175acfc","name":"Check Item Completed","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"url":"{{req_url}}/item/{{list_id}}/{{item_id}}/check"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"42"},{"key":"Vary","value":"Cookie"},{"key":"Server","value":"Werkzeug/0.16.1 Python/3.7.3"},{"key":"Date","value":"Tue, 25 Feb 2020 09:56:00 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Item is marked as complete!\"\n}"}],"_postman_id":"a3db94c7-823a-4e08-a869-773477c99433"}],"id":"5fede3b2-df98-4ece-8403-3ed2f01c5051","_postman_id":"5fede3b2-df98-4ece-8403-3ed2f01c5051","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"a2acc961-28ba-4e33-9ff3-7762b3e9d38e","id":"a2acc961-28ba-4e33-9ff3-7762b3e9d38e","name":"Notive Flask API","type":"collection"}}}],"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]}},"event":[{"listen":"prerequest","script":{"id":"eae45138-7b3f-45ad-ac91-db037b1fdddf","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"557746f4-2dd8-43cb-929f-c4616b29f9df","type":"text/javascript","exec":[""]}}],"variable":[{"id":"ac573cee-e702-47dd-b898-a7805c3db608","key":"Auth-Key","value":"","type":"string"}]}