{"info":{"_postman_id":"5d9c86ad-1744-4d70-98d7-3d5b09d6d8c2","name":"API-todo-lists","description":"<html><head></head><body><h1 id=\"get-started-here\">🚀 Get started here</h1>\n<p>This template guides you through CRUD operations (GET, POST, PUT, DELETE), variables, and tests.</p>\n<h2 id=\"🔖-how-to-use-this-template\">🔖 <strong>How to use this template</strong></h2>\n<h4 id=\"step-1-send-requests\"><strong>Step 1: Send requests</strong></h4>\n<p>RESTful APIs allow you to perform CRUD operations using the POST, GET, PUT, and DELETE HTTP methods.</p>\n<p>This collection contains each of these <a href=\"https://learning.postman.com/docs/sending-requests/requests/\">request</a> types. Open each request and click \"Send\" to see what happens.</p>\n<h4 id=\"step-2-view-responses\"><strong>Step 2: View responses</strong></h4>\n<p>Observe the response tab for status code (200 OK), response time, and size.</p>\n<h4 id=\"step-3-send-new-body-data\"><strong>Step 3: Send new Body data</strong></h4>\n<p>Update or add new data in \"Body\" in the POST request. Typically, Body data is also used in PUT request.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n    \"name\": \"Add your name in the body\"\n}\n\n</code></pre><h4 id=\"step-4-update-the-variable\"><strong>Step 4: Update the variable</strong></h4>\n<p>Variables enable you to store and reuse values in Postman. We have created a <a href=\"https://learning.postman.com/docs/sending-requests/variables/\">variable</a> called <code>base_url</code> with the sample request <a href=\"https://postman-api-learner.glitch.me\">https://postman-api-learner.glitch.me</a>. Replace it with your API endpoint to customize this collection.</p>\n<h4 id=\"step-5-add-tests-in-the-scripts-tab\"><strong>Step 5: Add tests in the \"Scripts\" tab</strong></h4>\n<p>Adding tests to your requests can help you confirm that your API is working as expected. You can write test scripts in JavaScript and view the output in the \"Test Results\" tab.</p>\n<img src=\"https://content.pstmn.io/fa30ea0a-373d-4545-a668-e7b283cca343/aW1hZ2UucG5n\" alt=\"\" height=\"1530\" width=\"2162\">\n\n<h2 id=\"💪-pro-tips\">💪 Pro tips</h2>\n<ul>\n<li><p>Use folders to group related requests and organize the collection.</p>\n</li>\n<li><p>Add more <a href=\"https://learning.postman.com/docs/writing-scripts/intro-to-scripts/\">scripts</a> to verify if the API works as expected and execute workflows.</p>\n</li>\n</ul>\n<h2 id=\"💡related-templates\">💡Related templates</h2>\n<p><a href=\"https://go.postman.co/redirect/workspace?type=personal&amp;collectionTemplateId=e9a37a28-055b-49cd-8c7e-97494a21eb54&amp;sourceTemplateId=ddb19591-3097-41cf-82af-c84273e56719\">API testing basics</a><br><a href=\"https://go.postman.co/redirect/workspace?type=personal&amp;collectionTemplateId=e9c28f47-1253-44af-a2f3-20dce4da1f18&amp;sourceTemplateId=ddb19591-3097-41cf-82af-c84273e56719\">API documentation</a><br><a href=\"https://go.postman.co/redirect/workspace?type=personal&amp;collectionTemplateId=31a9a6ed-4cdf-4ced-984c-d12c9aec1c27&amp;sourceTemplateId=ddb19591-3097-41cf-82af-c84273e56719\">Authorization methods</a></p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[{"content":"🚀 Get started here","slug":"get-started-here"}],"owner":"32045638","collectionId":"5d9c86ad-1744-4d70-98d7-3d5b09d6d8c2","publishedId":"2sAXjQ19wi","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2024-09-05T03:25:49.000Z"},"item":[{"name":"Authenticate","item":[{"name":"register","id":"e74e611d-39d9-49d9-ba98-6be00b83e7af","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\"fullName\":\"test\",\"email\": \"test011@gmail.com\",\"studentId\": 1,\"password\":\n\"123456\",\"confirmPassword\" : \"123456\" }","options":{"raw":{"language":"json"}}},"url":"http://139.5.146.186/api/auth/register","urlObject":{"protocol":"http","path":["api","auth","register"],"host":["139","5","146","186"],"query":[],"variable":[]}},"response":[],"_postman_id":"e74e611d-39d9-49d9-ba98-6be00b83e7af"},{"name":"login","id":"5e940cdd-c401-4232-b68c-fc9399438e04","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\"email\": \"test011@gmail.com\",\"password\":\n\"123456\" }","options":{"raw":{"language":"json"}}},"url":"http://139.5.146.186/api/auth/login","urlObject":{"protocol":"http","path":["api","auth","login"],"host":["139","5","146","186"],"query":[],"variable":[]}},"response":[],"_postman_id":"5e940cdd-c401-4232-b68c-fc9399438e04"},{"name":"me","id":"617a874d-cfb1-43a2-be15-d42f3af3e195","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://139.5.146.186/api/auth/me","urlObject":{"protocol":"http","path":["api","auth","me"],"host":["139","5","146","186"],"query":[],"variable":[]}},"response":[],"_postman_id":"617a874d-cfb1-43a2-be15-d42f3af3e195"}],"id":"3e134ad0-475f-4292-8054-338c360f556f","_postman_id":"3e134ad0-475f-4292-8054-338c360f556f","description":""},{"name":"api/v1/todo","item":[{"name":"create-todo","id":"461426b0-8f0d-431e-b0ab-768c81da9cf2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\"title\":\"title1\"}","options":{"raw":{"language":"json"}}},"url":"http://139.5.146.186/api/v1/todo?userId=1","urlObject":{"protocol":"http","path":["api","v1","todo"],"host":["139","5","146","186"],"query":[{"key":"userId","value":"1"}],"variable":[]}},"response":[],"_postman_id":"461426b0-8f0d-431e-b0ab-768c81da9cf2"},{"name":"get-all-todo","id":"eb8ff09d-eb08-40f0-bbd3-5ec86f57ae16","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://139.5.146.186/api/v1/todo?userId=1","urlObject":{"protocol":"http","path":["api","v1","todo"],"host":["139","5","146","186"],"query":[{"key":"userId","value":"1"}],"variable":[]}},"response":[],"_postman_id":"eb8ff09d-eb08-40f0-bbd3-5ec86f57ae16"},{"name":"get-todo-by-id","id":"0cbb5201-ae19-433d-ad34-811cc105d33a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://139.5.146.186/api/v1/todo/2","urlObject":{"protocol":"http","path":["api","v1","todo","2"],"host":["139","5","146","186"],"query":[],"variable":[]}},"response":[],"_postman_id":"0cbb5201-ae19-433d-ad34-811cc105d33a"},{"name":"update-todo-by-id","id":"26428d4c-92d0-4291-b924-b5679b3f5905","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\"title\":\"title1\",\"status\": true}","options":{"raw":{"language":"json"}}},"url":"http://139.5.146.186/api/v1/todo/2","urlObject":{"protocol":"http","path":["api","v1","todo","2"],"host":["139","5","146","186"],"query":[],"variable":[]}},"response":[],"_postman_id":"26428d4c-92d0-4291-b924-b5679b3f5905"},{"name":"delete-todo-by-id","id":"fb983b68-d9f7-47d3-bd56-3d3d4b8a230c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"http://139.5.146.186/api/v1/todo/2","urlObject":{"protocol":"http","path":["api","v1","todo","2"],"host":["139","5","146","186"],"query":[],"variable":[]}},"response":[],"_postman_id":"fb983b68-d9f7-47d3-bd56-3d3d4b8a230c"}],"id":"5ee4b526-ad96-46a1-8f3e-81475e3e709d","_postman_id":"5ee4b526-ad96-46a1-8f3e-81475e3e709d","description":""},{"name":"api/v2/todo-protect","item":[{"name":"create-todo-protect","id":"44f34b7f-7a92-4128-890a-6328ca0aaf3e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\"title\":\"title1\"}","options":{"raw":{"language":"json"}}},"url":"http://139.5.146.186/api/v2/todo-protect","urlObject":{"protocol":"http","path":["api","v2","todo-protect"],"host":["139","5","146","186"],"query":[],"variable":[]}},"response":[],"_postman_id":"44f34b7f-7a92-4128-890a-6328ca0aaf3e"},{"name":"get-all-todo-protect","id":"b068c65e-c1ac-4b35-aa73-cc1207774371","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"http://139.5.146.186/api/v2/todo-protect","urlObject":{"protocol":"http","path":["api","v2","todo-protect"],"host":["139","5","146","186"],"query":[],"variable":[]}},"response":[],"_postman_id":"b068c65e-c1ac-4b35-aa73-cc1207774371"},{"name":"update-todo-by-id-protect","id":"b2ad2fb5-f8d8-47b0-a7ce-14489248f387","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\"title\":\"title1\",\"status\": true}","options":{"raw":{"language":"json"}}},"url":"http://139.5.146.186/api/v2/todo-protect/1","urlObject":{"protocol":"http","path":["api","v2","todo-protect","1"],"host":["139","5","146","186"],"query":[],"variable":[]}},"response":[],"_postman_id":"b2ad2fb5-f8d8-47b0-a7ce-14489248f387"},{"name":"delete-todo-by-id-protect","id":"30164308-3d91-49bc-8517-8571eabe0cb5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"DELETE","header":[],"url":"http://139.5.146.186/api/v2/todo-protect/1","urlObject":{"protocol":"http","path":["api","v2","todo-protect","1"],"host":["139","5","146","186"],"query":[],"variable":[]}},"response":[],"_postman_id":"30164308-3d91-49bc-8517-8571eabe0cb5"}],"id":"06f32db0-f8c7-4db7-8543-f747758611ec","_postman_id":"06f32db0-f8c7-4db7-8543-f747758611ec","description":""},{"name":"api/v3/movies","item":[{"name":"create-movie","id":"a022bb57-1326-499d-a885-61b09d9da140","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\"title\":\"tile\",\"movieName\":\"test1\",\"movieImg\":\"testurl\"}","options":{"raw":{"language":"json"}}},"url":"http://139.5.146.186/api/v3/movies","urlObject":{"protocol":"http","path":["api","v3","movies"],"host":["139","5","146","186"],"query":[],"variable":[]}},"response":[],"_postman_id":"a022bb57-1326-499d-a885-61b09d9da140"},{"name":"get-all-movie","id":"6bbc6af0-8aee-494f-aa6d-eb870689357b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"body":{"mode":"raw","raw":"{\"title\":\"tile\",\"movieName\":\"test1\",\"movieImg\":\"testurl\"}","options":{"raw":{"language":"json"}}},"url":"http://139.5.146.186/api/v3/movies","urlObject":{"protocol":"http","path":["api","v3","movies"],"host":["139","5","146","186"],"query":[],"variable":[]}},"response":[],"_postman_id":"6bbc6af0-8aee-494f-aa6d-eb870689357b"},{"name":"get-movie-by-id","id":"311c1add-a38b-49af-a1a9-5512690a765f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"body":{"mode":"raw","raw":"{\"title\":\"tile\",\"movieName\":\"test1\",\"movieImg\":\"testurl\"}","options":{"raw":{"language":"json"}}},"url":"http://139.5.146.186/api/v3/movies/1","urlObject":{"protocol":"http","path":["api","v3","movies","1"],"host":["139","5","146","186"],"query":[],"variable":[]}},"response":[],"_postman_id":"311c1add-a38b-49af-a1a9-5512690a765f"},{"name":"update-movie-by-id","id":"8d95d4ea-12e8-4d7e-8c35-c390ff9fccb7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\"title\":\"tile\",\"status\":true}\n","options":{"raw":{"language":"json"}}},"url":"http://139.5.146.186/api/v3/movies/2","urlObject":{"protocol":"http","path":["api","v3","movies","2"],"host":["139","5","146","186"],"query":[],"variable":[]}},"response":[],"_postman_id":"8d95d4ea-12e8-4d7e-8c35-c390ff9fccb7"},{"name":"delete-movie-by-id","id":"af2ffaf5-b929-478a-b996-f40c8a29a2eb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"DELETE","header":[],"body":{"mode":"raw","raw":"{\"title\":\"tile\",\"movieName\":\"test1\",\"movieImg\":\"testurl\"}","options":{"raw":{"language":"json"}}},"url":"http://139.5.146.1863/api/v3/movies/1","urlObject":{"protocol":"http","path":["api","v3","movies","1"],"host":["139","5","146","1863"],"query":[],"variable":[]}},"response":[],"_postman_id":"af2ffaf5-b929-478a-b996-f40c8a29a2eb"}],"id":"27b86ce0-bf79-47b6-a01b-a638993529a5","_postman_id":"27b86ce0-bf79-47b6-a01b-a638993529a5","description":""}],"event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":[""]}},{"listen":"test","script":{"type":"text/javascript","exec":[""]}}],"variable":[{"id":"530bbdd9-38d3-441e-92dc-61f171c18dc2","key":"id","value":"1"},{"id":"57b5ecc1-1ffd-4eb5-a9a4-fa78c5251c5d","key":"base_url","value":"https://postman-rest-api-learner.glitch.me/"}]}