{"info":{"_postman_id":"f3bbbdd2-a5c2-47df-a333-7a16bf66c66e","name":"NoteApp","description":"<html><head></head><body><h2 id=\"note-app-api-collection\">Note APP API Collection</h2>\n<p>This collection contails sample requests for note-creating api</p>\n<p>It contains following requests</p>\n<ul>\n<li>Get all notes</li>\n<li>Create a note</li>\n<li>Retrive token</li>\n</ul>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"16524759","collectionId":"f3bbbdd2-a5c2-47df-a333-7a16bf66c66e","publishedId":"VUjLK6sr","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2022-08-05T01:23:57.000Z"},"item":[{"name":"Get All Users","id":"93711e1d-9e9d-4f10-a24c-4ca782b37334","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":"<value>"}]},"isInherited":false},"method":"GET","header":[],"body":{"mode":"formdata","formdata":[{"key":"title","value":"note2","type":"text"},{"key":"description","value":"note2","type":"text"}]},"url":"http://127.0.0.1:8000/all-notes/","description":"<p>This endpoint retrieves all the posts from the database.</p>\n","urlObject":{"protocol":"http","port":"8000","path":["all-notes",""],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[{"id":"609b8df9-d118-4f64-a832-abd9e0a73eb1","name":"Get All Users","originalRequest":{"method":"GET","header":[],"body":{"mode":"formdata","formdata":[{"key":"title","value":"note2","type":"text"},{"key":"description","value":"note2","type":"text"}]},"url":"http://127.0.0.1:8000/all-notes/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 05 Aug 2022 01:18:09 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.10.2"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept"},{"key":"Allow","value":"GET, HEAD, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"121"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"same-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"title\": \"note1\",\n        \"description\": \"note1\"\n    },\n    {\n        \"title\": \"note2\",\n        \"description\": \"note2\"\n    },\n    {\n        \"title\": \"note3\",\n        \"description\": \"note3\"\n    }\n]"}],"_postman_id":"93711e1d-9e9d-4f10-a24c-4ca782b37334"},{"name":"Create a note","id":"c08efdf0-e3db-4751-99e2-691e747faccb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":"<value>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"title","value":"note3","type":"text"},{"key":"description","value":"note3","type":"text"}]},"url":"http://127.0.0.1:8000/create-note/","description":"<p>This api creates a note on the database</p>\n","urlObject":{"protocol":"http","port":"8000","path":["create-note",""],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[{"id":"94b2d095-9881-4205-b7e9-ec80c5f1473d","name":"Create a note","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"title","value":"note3","type":"text"},{"key":"description","value":"note3","type":"text"}]},"url":"http://127.0.0.1:8000/create-note/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 05 Aug 2022 01:04:04 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.10.2"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept"},{"key":"Allow","value":"POST, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"39"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"same-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"title\": \"note3\",\n    \"description\": \"note3\"\n}"}],"_postman_id":"c08efdf0-e3db-4751-99e2-691e747faccb"},{"name":"Retrive token","id":"ea26d8fc-61cf-4f2b-8214-483d1e429f07","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"username","value":"admin","type":"text"},{"key":"password","value":"admin","type":"text"}]},"url":"http://127.0.0.1:8000/api/token/","description":"<p>Get user token by passing username and password of the user.</p>\n","urlObject":{"protocol":"http","port":"8000","path":["api","token",""],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[{"id":"8bc6b7fe-59d6-4545-9bbc-e8fa08f6d8a7","name":"Retrive token","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"username","value":"admin","type":"text"},{"key":"password","value":"admin","type":"text"}]},"url":"http://127.0.0.1:8000/api/token/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 05 Aug 2022 00:39:23 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.10.2"},{"key":"Content-Type","value":"application/json"},{"key":"Allow","value":"POST, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"52"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"same-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"token\": \"8e5460cc85277e9f8928eeab50b3f44441f8e3d9\"\n}"}],"_postman_id":"ea26d8fc-61cf-4f2b-8214-483d1e429f07"}]}