{"info":{"_postman_id":"f294227a-ee79-43d5-b394-2f054ecba0fb","name":"to-do-go","description":"<html><head></head><body><h1 id=\"introduction\">Introduction</h1>\n<p>API for to do application</p>\n<h1 id=\"overview\">Overview</h1>\n<p>API made with golang</p>\n<h1 id=\"authentication\">Authentication</h1>\n<p>API protected with JWT,you should register then login,copy\nthe token to header as Authorization</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[{"content":"Introduction","slug":"introduction"},{"content":"Overview","slug":"overview"},{"content":"Authentication","slug":"authentication"}],"owner":"5995808","collectionId":"f294227a-ee79-43d5-b394-2f054ecba0fb","publishedId":"TWDdiYsS","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2021-02-28T16:25:58.000Z"},"item":[{"name":"User","item":[{"name":"/v1/api/user","id":"3a896bf4-8508-431e-8299-30ab184dedda","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\"username\":\"oze\",\"password\":\"kamumas\"}"},"url":"http://localhost:1997/v1/api/user","description":"<p>Creating New User</p>\n","urlObject":{"protocol":"http","port":"1997","path":["v1","api","user"],"host":["localhost"],"query":[{"disabled":true,"key":"Username","value":"asdasd"},{"disabled":true,"key":"Password","value":"asdasdasd"}],"variable":[]}},"response":[],"_postman_id":"3a896bf4-8508-431e-8299-30ab184dedda"},{"name":"/v1/api/user","id":"95ce4c24-85d7-4ae3-8ce0-78d949d3b7df","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJJZCI6MzQsImV4cCI6MTYxNDYxNzkxOCwiaXNzIjoiR29KV1RBdXRoIn0.wkaJNgngUTM8i3praNzzCHI11Y6jYagTgNiwVBdCxs4","type":"text"}],"url":"http://localhost:1997/v1/api/user","description":"<p>Get All User</p>\n","urlObject":{"protocol":"http","port":"1997","path":["v1","api","user"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"95ce4c24-85d7-4ae3-8ce0-78d949d3b7df"},{"name":"/v1/api/user/login","id":"9f587fa4-dcb1-48eb-bafb-f6a07408d70c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\"username\": \"oze\",\"password\": \"kamumas\"}"},"url":"http://localhost:1997/v1/api/user/login","description":"<p>Login Using Username And Password</p>\n","urlObject":{"protocol":"http","port":"1997","path":["v1","api","user","login"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"9f587fa4-dcb1-48eb-bafb-f6a07408d70c"}],"id":"d03fa733-6381-491d-94cf-d4ae76305902","_postman_id":"d03fa733-6381-491d-94cf-d4ae76305902","description":""},{"name":"Todo","item":[{"name":"/v1/api/todo","id":"a16e4895-e7da-42fe-89a3-0fbbb905f351","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJJZCI6MzEsImV4cCI6MTYxNDU5NDE0OSwiaXNzIjoiR29KV1RBdXRoIn0.pndhRBKN3-tIUZPOdv1HB6glzJkXOgricj25_o8v2Zk","type":"text"}],"url":"http://localhost:1997/v1/api/todo","description":"<p>Get All task</p>\n","urlObject":{"protocol":"http","port":"1997","path":["v1","api","todo"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"a16e4895-e7da-42fe-89a3-0fbbb905f351"},{"name":"/v1/api/todo/new","id":"5329b7bc-f05d-458e-8a3c-e0d5a6703956","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJJZCI6MzQsImV4cCI6MTYxNDYxNzkxOCwiaXNzIjoiR29KV1RBdXRoIn0.wkaJNgngUTM8i3praNzzCHI11Y6jYagTgNiwVBdCxs4","type":"text"}],"body":{"mode":"raw","raw":"{\"title\": \"Beli Mobil\",\"task\": \"Tesla\"}"},"url":"http://localhost:1997/v1/api/todo/new","description":"<p>Create New Task</p>\n","urlObject":{"protocol":"http","port":"1997","path":["v1","api","todo","new"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"5329b7bc-f05d-458e-8a3c-e0d5a6703956"},{"name":"/v1/api/todo/task?task_id=5","id":"da28c9af-7b57-4fa6-9870-65f87312585b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJJZCI6MzQsImV4cCI6MTYxNDYxNzQxMiwiaXNzIjoiR29KV1RBdXRoIn0.c3eSwrsKX9mM3acPwrCEQFEkLEzdVWVI5LgPpBTWe7o","type":"text"}],"url":"http://localhost:1997/v1/api/todo/task?task_id=5","description":"<p>Get task by task id</p>\n","urlObject":{"protocol":"http","port":"1997","path":["v1","api","todo","task"],"host":["localhost"],"query":[{"key":"task_id","value":"5"}],"variable":[]}},"response":[],"_postman_id":"da28c9af-7b57-4fa6-9870-65f87312585b"},{"name":"/v1/api/todo/status?task_status=Selesai","id":"217823d6-af4d-41a9-a3b1-74d119ab02e2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJJZCI6MzEsImV4cCI6MTYxNDU5NDE0OSwiaXNzIjoiR29KV1RBdXRoIn0.pndhRBKN3-tIUZPOdv1HB6glzJkXOgricj25_o8v2Zk","type":"text"}],"url":"http://localhost:1997/v1/api/todo/status?task_status=Selesai","description":"<p>Get Task by status</p>\n","urlObject":{"protocol":"http","port":"1997","path":["v1","api","todo","status"],"host":["localhost"],"query":[{"key":"task_status","value":"Selesai"}],"variable":[]}},"response":[],"_postman_id":"217823d6-af4d-41a9-a3b1-74d119ab02e2"},{"name":"/v1/api/todo/status/ongoing?task_id=5","id":"23e132c0-52b2-4c09-887d-eedfab1dbeb6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Authorization","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJJZCI6MzEsImV4cCI6MTYxNDU5NDE0OSwiaXNzIjoiR29KV1RBdXRoIn0.pndhRBKN3-tIUZPOdv1HB6glzJkXOgricj25_o8v2Zk","type":"text"}],"url":"http://localhost:1997/v1/api/todo/status/ongoing?task_id=5","description":"<p>change task to \"Belum\"</p>\n","urlObject":{"protocol":"http","port":"1997","path":["v1","api","todo","status","ongoing"],"host":["localhost"],"query":[{"key":"task_id","value":"5"}],"variable":[]}},"response":[],"_postman_id":"23e132c0-52b2-4c09-887d-eedfab1dbeb6"},{"name":"/v1/api/todo/status/finish?task_id=5","id":"695c8c2c-157a-4f9c-ac61-bd015c433584","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJJZCI6MzQsImV4cCI6MTYxNDYxNzQxMiwiaXNzIjoiR29KV1RBdXRoIn0.c3eSwrsKX9mM3acPwrCEQFEkLEzdVWVI5LgPpBTWe7o","type":"text"}],"url":"http://localhost:1997/v1/api/todo/status/finish?task_id=5","description":"<p>Change task to \"Selesai\"</p>\n","urlObject":{"protocol":"http","port":"1997","path":["v1","api","todo","status","finish"],"host":["localhost"],"query":[{"key":"task_id","value":"5"}],"variable":[]}},"response":[],"_postman_id":"695c8c2c-157a-4f9c-ac61-bd015c433584"},{"name":"/v1/api/todo/delete?task_id=4","id":"69b93c6c-d69b-4d7b-81c8-d09441c64a64","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJJZCI6MzQsImV4cCI6MTYxNDYxNzQxMiwiaXNzIjoiR29KV1RBdXRoIn0.c3eSwrsKX9mM3acPwrCEQFEkLEzdVWVI5LgPpBTWe7o","type":"text"}],"url":"http://localhost:1997/v1/api/todo/delete?task_id=4","description":"<p>Deleting tas</p>\n","urlObject":{"protocol":"http","port":"1997","path":["v1","api","todo","delete"],"host":["localhost"],"query":[{"key":"task_id","value":"4"}],"variable":[]}},"response":[],"_postman_id":"69b93c6c-d69b-4d7b-81c8-d09441c64a64"}],"id":"cac4dde5-f6c5-4b72-ab45-a2f3ad4ca714","_postman_id":"cac4dde5-f6c5-4b72-ab45-a2f3ad4ca714","description":""}],"event":[{"listen":"prerequest","script":{"id":"648ca912-24ca-4ffd-96c7-b3edc93c905d","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"faf8f776-66b6-4b7d-81ed-694de5cd0324","type":"text/javascript","exec":[""]}}]}