{"info":{"_postman_id":"251ffebf-faca-4ace-af1d-83dc12ceabdf","name":"Todo Application Endpoints","description":"<html><head></head><body><p>StartFragment</p>\n<p>The Todo Application Endpoints collection is a set of RESTful API endpoints designed for managing to-do lists. This collection includes four different HTTP methods: POST, PUT, DELETE, and GET, which enable users to create, update, delete, and retrieve to-do items respectively. These endpoints are designed to provide a flexible and easy-to-use interface for managing to-do lists, whether for personal or professional use. With the Todo Application Endpoints collection, users can easily create new to-do items, update existing ones, mark items as complete, and delete items that are no longer needed. This collection is suitable for developers who want to build to-do list applications or integrate to-do list functionality into existing applications.</p>\n<p><em><strong>Note</strong></em>: In order to use the endpoints within your React application, you need to go through the User Authentication process to either create or sign in with an existing account. Once done, you will be provided with a token (Bearer xxxx) in order to use in the Todo Item folder requests.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"19454348","collectionId":"251ffebf-faca-4ace-af1d-83dc12ceabdf","publishedId":"2s93XyTNZo","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2023-04-15T21:51:36.000Z"},"item":[{"name":"User Authentication","item":[{"name":"Sign up a user","id":"9de7faf0-69c1-4869-b72c-158d9b32ddbb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"internalizable@gmail.com\",\r\n    \"password\": \"TestPassword123\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://localhost:3080/user/signup","urlObject":{"path":["user","signup"],"host":["https://localhost:3080"],"query":[],"variable":[]}},"response":[{"id":"0e6a4941-925d-4801-8f97-f3352ac77450","name":"Sign up a user","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"internalizable@gmail.com\",\r\n    \"password\": \"TestPassword123\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://localhost:3080/user/signup"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null}],"_postman_id":"9de7faf0-69c1-4869-b72c-158d9b32ddbb"},{"name":"Login an existing user","id":"7f6bdb74-c260-4147-9c3c-fc000ef9c26d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"internalizable@gmail.com\",\r\n    \"password\": \"TestPassword123\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://localhost:3080/user/login","urlObject":{"path":["user","login"],"host":["https://localhost:3080"],"query":[],"variable":[]}},"response":[{"id":"7027020c-ee65-4fbb-b432-41959b85c561","name":"Sign up a user","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"internalizable@gmail.com\",\r\n    \"password\": \"TestPassword123\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://localhost:3080/user/signup"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null}],"_postman_id":"7f6bdb74-c260-4147-9c3c-fc000ef9c26d"}],"id":"7e5b3c3a-30bc-464f-9f6f-fc1dd1712563","_postman_id":"7e5b3c3a-30bc-464f-9f6f-fc1dd1712563","description":""},{"name":"Todo Item","item":[{"name":"Create a todo item","id":"4187102c-a28a-4317-bd05-9a84afe744fa","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"message\": \"Complete presentation for team meeting on Friday\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://localhost:3080/todo/create","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"ca3eeec4-30a9-4e48-8914-0c16dbf2b106","id":"ca3eeec4-30a9-4e48-8914-0c16dbf2b106","name":"Todo Item","type":"folder"}},"urlObject":{"path":["todo","create"],"host":["https://localhost:3080"],"query":[],"variable":[]}},"response":[{"id":"c0f617db-f3cd-48cb-888f-5efc97cc3e1f","name":"Create a todo item","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"message\": \"Complete presentation for team meeting on Friday\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://localhost:3000/todo/create"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"message\": \"Successfully created the required todo item.\",\n    \"data\": {\n        \"userId\": \"643bca55dd25ab961ffe3031\",\n        \"message\": \"Complete presentation for team meeting on Friday\",\n        \"completed\": false,\n        \"date\": \"1681640246492\",\n        \"id\": \"643bcb674dbd383d844e589d\"\n    }\n}"}],"_postman_id":"4187102c-a28a-4317-bd05-9a84afe744fa"},{"name":"Delete a todo item","id":"1ef7e4c0-d50f-4e1a-a0d7-aa55e98c05a9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"https://localhost:3080/todo/:itemId","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"ca3eeec4-30a9-4e48-8914-0c16dbf2b106","id":"ca3eeec4-30a9-4e48-8914-0c16dbf2b106","name":"Todo Item","type":"folder"}},"urlObject":{"path":["todo",":itemId"],"host":["https://localhost:3080"],"query":[],"variable":[{"description":{"content":"<p>The id of the todo item to delete.</p>\n","type":"text/plain"},"type":"any","value":"643bcb674dbd383d844e589d","key":"itemId"}]}},"response":[{"id":"e086effa-7b80-4fd2-aa11-18a5f2f679d7","name":"Delete a todo item","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"https://localhost:3080/:itemId","host":["https://localhost:3080"],"path":[":itemId"],"variable":[{"key":"itemId","value":"643bcb674dbd383d844e589d","description":"The id of the todo item to delete."}]}},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"message\": \"Successfully deleted the required todo item.\"\n}"}],"_postman_id":"1ef7e4c0-d50f-4e1a-a0d7-aa55e98c05a9"},{"name":"Update an existing todo item","id":"4052862a-80cd-459e-96a7-2c904542adbb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"completed\": true\r\n}","options":{"raw":{"language":"json"}}},"url":"https://localhost:3080/todo/:itemId","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"ca3eeec4-30a9-4e48-8914-0c16dbf2b106","id":"ca3eeec4-30a9-4e48-8914-0c16dbf2b106","name":"Todo Item","type":"folder"}},"urlObject":{"path":["todo",":itemId"],"host":["https://localhost:3080"],"query":[],"variable":[{"description":{"content":"<p>The id of the todo item to update.</p>\n","type":"text/plain"},"type":"any","value":"643bcbc44dbd383d844e58a2","key":"itemId"}]}},"response":[{"id":"b232e699-8161-41a2-aa95-5c43ad357943","name":"Update an existing todo item","originalRequest":{"method":"PUT","header":[],"url":{"raw":"https://localhost:3080/todo/:itemId","host":["https://localhost:3080"],"path":["todo",":itemId"],"variable":[{"key":"itemId","value":"643bcbc44dbd383d844e58a2","description":"The id of the todo item to update."}]}},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"message\": \"Successfully updated the required todo item.\",\n    \"data\": {\n        \"userId\": \"643bca55dd25ab961ffe3031\",\n        \"message\": \"Complete presentation for team meeting on Friday\",\n        \"completed\": true,\n        \"date\": \"1681640246492\",\n        \"id\": \"643bcbc44dbd383d844e58a2\"\n    }\n}"}],"_postman_id":"4052862a-80cd-459e-96a7-2c904542adbb"},{"name":"Get a paginated list of all todo items.","id":"7e5d8110-ea74-4f69-b6fa-55cbef4c518f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://localhost:3080/todo/?page=1&limit=10","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"ca3eeec4-30a9-4e48-8914-0c16dbf2b106","id":"ca3eeec4-30a9-4e48-8914-0c16dbf2b106","name":"Todo Item","type":"folder"}},"urlObject":{"path":["todo",""],"host":["https://localhost:3080"],"query":[{"description":{"content":"<p>The page number. It defaults to 1 if nothing is set.</p>\n","type":"text/plain"},"key":"page","value":"1"},{"description":{"content":"<p>The limit per page to return. If nothing is set, it default to 10.</p>\n","type":"text/plain"},"key":"limit","value":"10"}],"variable":[]}},"response":[{"id":"a65719ed-463c-4378-95ea-3bfb8cdc60c4","name":"Get a paginated list of all todo items.","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://localhost:3080/todo/?page=1&limit=10","host":["https://localhost:3080"],"path":["todo",""],"query":[{"key":"page","value":"1","description":"The page number. It defaults to 1 if nothing is set."},{"key":"limit","value":"10","description":"The limit per page to return. If nothing is set, it default to 10."}]}},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"message\": \"Found the requested todos from the selected page\",\n    \"data\": {\n        \"page\": 1,\n        \"limit\": 10,\n        \"totalPages\": 1,\n        \"todos\": [\n            {\n                \"userId\": \"643bca55dd25ab961ffe3031\",\n                \"message\": \"Complete presentation for team meeting on Friday\",\n                \"completed\": true,\n                \"date\": \"1681640246492\",\n                \"id\": \"643bcbc44dbd383d844e58a2\"\n            }\n        ]\n    }\n}"}],"_postman_id":"7e5d8110-ea74-4f69-b6fa-55cbef4c518f"}],"id":"ca3eeec4-30a9-4e48-8914-0c16dbf2b106","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"event":[{"listen":"prerequest","script":{"id":"0a71abe5-98bb-4ef8-b2fd-0f1f9144d3b5","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"41b764a5-a564-4a50-bd9f-538ab1ec80fc","type":"text/javascript","exec":[""]}}],"_postman_id":"ca3eeec4-30a9-4e48-8914-0c16dbf2b106","description":""}],"event":[{"listen":"prerequest","script":{"id":"1093ba73-99dc-47a5-80bc-98ec134b3c72","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"127d1626-95ae-4b1f-b919-4128e3ad2f30","type":"text/javascript","exec":[""]}}],"variable":[{"key":"backend_url","value":"https://localhost:3080","type":"string"}]}