{"info":{"_postman_id":"1d6b3074-2d44-4ecd-b6c8-87a92386f757","name":"TODO","description":"<html><head></head><body><p>A collection of endpoints for a simple todo app.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"11633108","collectionId":"1d6b3074-2d44-4ecd-b6c8-87a92386f757","publishedId":"2s93zH2eWg","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2023-07-09T23:33:47.000Z"},"item":[{"name":"Auth","item":[{"name":"Register User","id":"3f09d320-6658-460a-a441-ef7f0ad7c11c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"User\",\r\n    \"role\": \"Admin\",\r\n    \"email\": \"user@email.com\",\r\n    \"password\": \"password\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:5000/auth/register","description":"<p>The endpoint to add or register a user.</p>\n","urlObject":{"protocol":"http","port":"5000","path":["auth","register"],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[],"_postman_id":"3f09d320-6658-460a-a441-ef7f0ad7c11c"},{"name":"Login User","id":"9ac19604-dd23-4f36-826b-6dda77acafb8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"user@email.com\",\r\n    \"password\": \"password\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:5000/auth/login","description":"<p>The endpoint to log in a user.</p>\n","urlObject":{"protocol":"http","port":"5000","path":["auth","login"],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[],"_postman_id":"9ac19604-dd23-4f36-826b-6dda77acafb8"},{"name":"Logout User","id":"294d7e75-34dd-4e5a-864d-fcea7c9b0183","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"url":"http://127.0.0.1:5000/auth/logout","description":"<p>The endpoint to log out a user.</p>\n","urlObject":{"protocol":"http","port":"5000","path":["auth","logout"],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[],"_postman_id":"294d7e75-34dd-4e5a-864d-fcea7c9b0183"},{"name":"Refresh Token","id":"8736a12c-a8a5-43a3-8c8a-44d4f365f601","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"url":"http://127.0.0.1:5000/auth/refresh","description":"<p>The endpoint to get a new access JSON Web Token for a user.</p>\n","urlObject":{"protocol":"http","port":"5000","path":["auth","refresh"],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[],"_postman_id":"8736a12c-a8a5-43a3-8c8a-44d4f365f601"}],"id":"c177ed58-5f37-4dd3-bf2c-467b29902e3b","description":"<p>All endpoints responsible for authentication and authorization of the users.</p>\n","_postman_id":"c177ed58-5f37-4dd3-bf2c-467b29902e3b"},{"name":"Api","item":[{"name":"Users","item":[{"name":"Get User","id":"958917c2-014f-43c9-8191-0651363e2871","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://127.0.0.1:5000/api/users/14","description":"<p>The endpoint to get data of a single user.</p>\n","urlObject":{"protocol":"http","port":"5000","path":["api","users","14"],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[],"_postman_id":"958917c2-014f-43c9-8191-0651363e2871"},{"name":"Get Users","id":"beea2abf-63c1-4f32-a6ef-f8a251642da2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://127.0.0.1:5000/api/users","description":"<p>The endpoint to get data of all the users. Can only be accessed by an admin.</p>\n","urlObject":{"protocol":"http","port":"5000","path":["api","users"],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[],"_postman_id":"beea2abf-63c1-4f32-a6ef-f8a251642da2"},{"name":"Update User","id":"97d0164f-dac1-4162-9344-584ff9fa6c2a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"User\",\r\n    \"role\": \"Admin\",\r\n    \"bio\": \"A user.\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:5000/api/users/14","description":"<p>The endpoint to update data of a single user.</p>\n","urlObject":{"protocol":"http","port":"5000","path":["api","users","14"],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[],"_postman_id":"97d0164f-dac1-4162-9344-584ff9fa6c2a"}],"id":"d2525515-becc-4112-8082-3b63d600189d","description":"<p>All endpoints responsible to serve data regarding users.</p>\n","_postman_id":"d2525515-becc-4112-8082-3b63d600189d"},{"name":"Projects","item":[{"name":"Get Projects","id":"8b87e0e2-136f-458e-9e5a-b9d41c639f70","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://127.0.0.1:5000/api/users/14/projects","description":"<p>The endpoint to get data of all the projects from a single user.</p>\n","urlObject":{"protocol":"http","port":"5000","path":["api","users","14","projects"],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[],"_postman_id":"8b87e0e2-136f-458e-9e5a-b9d41c639f70"},{"name":"Get Project","id":"23c58919-6686-4cba-822a-88b2782355a6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://127.0.0.1:5000/api/users/14/projects/10","description":"<p>The endpoint to get data of a single project from a single user.</p>\n","urlObject":{"protocol":"http","port":"5000","path":["api","users","14","projects","10"],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[],"_postman_id":"23c58919-6686-4cba-822a-88b2782355a6"},{"name":"Add Project","id":"ad44f428-9804-44f8-8959-0befb84114d9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"title\": \"Project #1\",\r\n    \"description\": \"Description for #1 project.\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:5000/api/users/14/projects","description":"<p>The endpoint to add a project.</p>\n","urlObject":{"protocol":"http","port":"5000","path":["api","users","14","projects"],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[],"_postman_id":"ad44f428-9804-44f8-8959-0befb84114d9"},{"name":"Update Project","id":"38cb0328-dac1-4d4e-96cf-326f48aa6882","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"title\": \"Project #1\",\r\n    \"description\": \"A new description for Project #1.\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:5000/api/users/14/projects/10","description":"<p>The endpoint to update data of a single project.</p>\n","urlObject":{"protocol":"http","port":"5000","path":["api","users","14","projects","10"],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[],"_postman_id":"38cb0328-dac1-4d4e-96cf-326f48aa6882"},{"name":"Delete Project","id":"57e9669b-f0e9-4b80-b39a-295675a76797","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"body":{"mode":"raw","raw":""},"url":"http://127.0.0.1:5000/api/users/14/projects/11","description":"<p>The endpoint to delete a project.</p>\n","urlObject":{"protocol":"http","port":"5000","path":["api","users","14","projects","11"],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[],"_postman_id":"57e9669b-f0e9-4b80-b39a-295675a76797"}],"id":"fa2416a6-8687-4513-baa2-4685ff861355","description":"<p>All endpoints responsible to serve data regarding projects of the users.</p>\n","_postman_id":"fa2416a6-8687-4513-baa2-4685ff861355"},{"name":"Todos","item":[{"name":"Get All Todos","id":"c46d2693-2425-4ce7-97da-7f869936aa5f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://127.0.0.1:5000/api/users/14/todos","description":"<p>The endpoint to get all the todos (unfinished tasks) from a single user.</p>\n","urlObject":{"protocol":"http","port":"5000","path":["api","users","14","todos"],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[],"_postman_id":"c46d2693-2425-4ce7-97da-7f869936aa5f"},{"name":"Get Todos by Project","id":"f60fca01-bc7d-4ab8-9108-f0a544405eed","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://127.0.0.1:5000/api/users/14/projects/10/todos","description":"<p>The endpoint to get all the todos from a single user based on which project it belongs to.</p>\n","urlObject":{"protocol":"http","port":"5000","path":["api","users","14","projects","10","todos"],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[],"_postman_id":"f60fca01-bc7d-4ab8-9108-f0a544405eed"},{"name":"Get Todo","id":"d7d43316-a59c-450f-bf18-10c11a25623f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://127.0.0.1:5000/api/todos/24","description":"<p>The endpoint to get a single todo from a single user.</p>\n","urlObject":{"protocol":"http","port":"5000","path":["api","todos","24"],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[],"_postman_id":"d7d43316-a59c-450f-bf18-10c11a25623f"},{"name":"Update Todo","id":"dc952b62-ea49-4780-b598-35c58ad9cdb7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"description\": \"Description for task #1\",\r\n    \"is_done\": true,\r\n    \"project_id\": 10,\r\n    \"title\": \"Task #1\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:5000/api/users/14/todos/38","description":"<p>The endpoint to update the data of a todo.</p>\n","urlObject":{"protocol":"http","port":"5000","path":["api","users","14","todos","38"],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[],"_postman_id":"dc952b62-ea49-4780-b598-35c58ad9cdb7"},{"name":"Delete Todo","id":"f60e3e9e-ea3d-4760-83cd-d325fa9e636d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"http://127.0.0.1:5000/api/users/14/todos/39","description":"<p>The endpoint to delete a todo.</p>\n","urlObject":{"protocol":"http","port":"5000","path":["api","users","14","todos","39"],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[],"_postman_id":"f60e3e9e-ea3d-4760-83cd-d325fa9e636d"},{"name":"Add Todo","id":"41d703be-b6f8-44ee-b985-79e0a4623357","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"title\": \"Task #1\",\r\n    \"description\": \"Description for task #1\",\r\n    \"project_id\": 10\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:5000/api/users/14/todos","description":"<p>The endpoint to add a todo.</p>\n","urlObject":{"protocol":"http","port":"5000","path":["api","users","14","todos"],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[],"_postman_id":"41d703be-b6f8-44ee-b985-79e0a4623357"}],"id":"3872c77e-f29b-4d2c-8d7f-b794eda153e8","_postman_id":"3872c77e-f29b-4d2c-8d7f-b794eda153e8","description":""},{"name":"Dones","item":[{"name":"Get All Dones","id":"38852635-3276-4c50-8315-3883001b1786","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://127.0.0.1:5000/api/users/14/dones","description":"<p>The endpoint to get all the dones (finished tasks) from a single user.</p>\n","urlObject":{"protocol":"http","port":"5000","path":["api","users","14","dones"],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[],"_postman_id":"38852635-3276-4c50-8315-3883001b1786"}],"id":"472198e7-754b-4a10-8cbb-aac3106c655a","_postman_id":"472198e7-754b-4a10-8cbb-aac3106c655a","description":""}],"id":"b349b729-7cc8-4ab9-afd6-d8f496822485","description":"<p>All endpoints responsible to serve data to the client side.</p>\n","_postman_id":"b349b729-7cc8-4ab9-afd6-d8f496822485"}]}