{"info":{"_postman_id":"94aec915-1a70-44c9-867f-cf0279e1258e","name":"Todo Api","description":"<html><head></head><body><p>This is a simple JWT token-based todo API. Todo crud requires a JWT token. Make sure to put a random key in the .env file.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"27177179","collectionId":"94aec915-1a70-44c9-867f-cf0279e1258e","publishedId":"2s946o4pZb","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2023-07-25T12:06:47.000Z"},"item":[{"name":"auth","item":[{"name":"register","id":"6279730e-4847-4337-8536-5bda4a1ae1c9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"firstName\": \"John\",\r\n    \"lastName\": \"Doe\",\r\n    \"email\": \"john@doe.com\",\r\n    \"mobile\": \"0123456789\",\r\n    \"password\": \"password\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/api/registration","urlObject":{"protocol":"http","port":"8000","path":["api","registration"],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[],"_postman_id":"6279730e-4847-4337-8536-5bda4a1ae1c9"},{"name":"login","id":"914a2ada-625e-423c-9f8e-bfc580a115ca","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"john@doe.com\",\r\n    \"password\": \"password\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/api/login","description":"<p>After successfully logging in, put your token in the base folder (Todo Api) variables section. This is an easier process to perform your action. Just put the token variable in the header section for all</p>\n<p>to-do actions.</p>\n","urlObject":{"protocol":"http","port":"8000","path":["api","login"],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[],"_postman_id":"914a2ada-625e-423c-9f8e-bfc580a115ca"}],"id":"566d34ef-b154-4e63-950a-444fbe29638d","description":"<p>Registration and Login can be managed from the auth folder</p>\n","_postman_id":"566d34ef-b154-4e63-950a-444fbe29638d"},{"name":"todo create","id":"101c208f-21a3-45f3-a76d-9282a91d1493","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"token","value":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJsYXJhdmVsLXRva2VuIiwiaWF0IjoxNzIzMDEyMzkzLCJleHAiOjE3MjMwMTU5OTMsInVzZXJFbWFpbCI6ImpvaG5AZG9lLmNvbSIsInVzZXJJRCI6MX0.0yroO8vRe00Zr-0iM_Zxs1YzKCqGSHyPiEZAwTWlKog","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"title\": \"Demo\",\r\n    \"description\": \"Demo content\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/api/todo","description":"<p>After logging in, put the token you got in the header section</p>\n","urlObject":{"protocol":"http","port":"8000","path":["api","todo"],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[],"_postman_id":"101c208f-21a3-45f3-a76d-9282a91d1493"},{"name":"todo update","id":"0f831bee-2ca9-42f0-a024-fe649efdc515","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"token","value":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJsYXJhdmVsLXRva2VuIiwiaWF0IjoxNzIzMDEyMzkzLCJleHAiOjE3MjMwMTU5OTMsInVzZXJFbWFpbCI6ImpvaG5AZG9lLmNvbSIsInVzZXJJRCI6MX0.0yroO8vRe00Zr-0iM_Zxs1YzKCqGSHyPiEZAwTWlKog","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"title\": \"Demo updated\",\r\n    \"description\": \"Demo content updated\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/api/todo/:id","description":"<p>In the Path section, put the ID of the record you want to update</p>\n","urlObject":{"protocol":"http","port":"8000","path":["api","todo",":id"],"host":["127","0","0","1"],"query":[],"variable":[{"type":"any","value":"1","key":"id"}]}},"response":[],"_postman_id":"0f831bee-2ca9-42f0-a024-fe649efdc515"},{"name":"all todo","id":"8c367696-543c-4633-b9b8-0588c66aeb84","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"token","value":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJsYXJhdmVsLXRva2VuIiwiaWF0IjoxNzIzMDEyMzkzLCJleHAiOjE3MjMwMTU5OTMsInVzZXJFbWFpbCI6ImpvaG5AZG9lLmNvbSIsInVzZXJJRCI6MX0.0yroO8vRe00Zr-0iM_Zxs1YzKCqGSHyPiEZAwTWlKog","type":"text"}],"url":"http://127.0.0.1:8000/api/todo","urlObject":{"protocol":"http","port":"8000","path":["api","todo"],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[],"_postman_id":"8c367696-543c-4633-b9b8-0588c66aeb84"},{"name":"todo delete","id":"82352117-8842-499e-a8f3-cdcad3145e5f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"token","value":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJsYXJhdmVsLXRva2VuIiwiaWF0IjoxNzIzMDEyMzkzLCJleHAiOjE3MjMwMTU5OTMsInVzZXJFbWFpbCI6ImpvaG5AZG9lLmNvbSIsInVzZXJJRCI6MX0.0yroO8vRe00Zr-0iM_Zxs1YzKCqGSHyPiEZAwTWlKog","type":"text"}],"url":"http://127.0.0.1:8000/api/todo/:id","description":"<p>In the Path section, put the ID of the record you want to delete</p>\n","urlObject":{"protocol":"http","port":"8000","path":["api","todo",":id"],"host":["127","0","0","1"],"query":[],"variable":[{"type":"any","value":"1","key":"id"}]}},"response":[],"_postman_id":"82352117-8842-499e-a8f3-cdcad3145e5f"}],"event":[{"listen":"prerequest","script":{"id":"e9034a5b-1e44-4d3e-9010-e4abb7bf7277","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"11eaae06-ae31-43ee-9405-6a0cac9186e0","type":"text/javascript","exec":[""]}}],"variable":[{"key":"token","value":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJsYXJhdmVsLXRva2VuIiwiaWF0IjoxNzIzMDEyMzkzLCJleHAiOjE3MjMwMTU5OTMsInVzZXJFbWFpbCI6ImpvaG5AZG9lLmNvbSIsInVzZXJJRCI6MX0.0yroO8vRe00Zr-0iM_Zxs1YzKCqGSHyPiEZAwTWlKog","type":"string"}]}