{"info":{"_postman_id":"b08ebdfc-a36e-4aae-8bec-ceb7d8baef3d","name":"Notes API","description":"<html><head></head><body><p>All API endpoints and request description.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"15329989","collectionId":"b08ebdfc-a36e-4aae-8bec-ceb7d8baef3d","publishedId":"UVCCdiWt","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2021-11-18T08:00:20.000Z"},"item":[{"name":"Auth Routes","item":[{"name":"Register user","id":"713cb0ae-821b-4c90-b02c-ff67bfbed882","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"Sample User\",\r\n    \"email\": \"sample@gmail.com\",\r\n    \"password\": \"123456\"  \r\n}","options":{"raw":{"language":"json"}}},"url":"https://todolistnotesapp.herokuapp.com/api/users/register","urlObject":{"protocol":"https","path":["api","users","register"],"host":["todolistnotesapp","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"713cb0ae-821b-4c90-b02c-ff67bfbed882"},{"name":"User login","id":"af7f44b2-b4b8-46bd-883b-3e6cd4a77767","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"test@example.com\",\r\n    \"password\": \"123456\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://todolistnotesapp.herokuapp.com/api/users/login","urlObject":{"protocol":"https","path":["api","users","login"],"host":["todolistnotesapp","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"af7f44b2-b4b8-46bd-883b-3e6cd4a77767"},{"name":"Update profile","id":"395c82b5-0d3e-4dfe-af67-d1845695eacc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\":\"Change Name\",\r\n    \"email\": \"change@example.com\",\r\n    \"pic\": \"changeurl\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://todolistnotesapp.herokuapp.com/api/users/profile","urlObject":{"protocol":"https","path":["api","users","profile"],"host":["todolistnotesapp","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"395c82b5-0d3e-4dfe-af67-d1845695eacc"}],"id":"8c80751d-e459-4457-9223-c2cc88966b8a","_postman_id":"8c80751d-e459-4457-9223-c2cc88966b8a","description":""},{"name":"Notes Routes","item":[{"name":"List all notes","id":"28cf6f0e-70c5-4fb4-933d-8c3a85f975fb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"https://todolistnotesapp.herokuapp.com/api/notes","description":"<h3 id=\"get-all-notes-for-a-particular-user\">Get all notes for a particular user</h3>\n<p>Bearer token required, protected.</p>\n","urlObject":{"protocol":"https","path":["api","notes"],"host":["todolistnotesapp","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"28cf6f0e-70c5-4fb4-933d-8c3a85f975fb"},{"name":"Create note","id":"35f1006d-00d1-4282-8798-ccfca3cd26bd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"title\": \"Check time hello\",\r\n    \"content\": \"check second\",\r\n    \"category\": \"time\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://todolistnotesapp.herokuapp.com/api/notes/create","description":"<h3 id=\"create-a-new-note-for-a-user\">Create a new note for a user</h3>\n<p>title, content, category</p>\n<h4 id=\"bearer-token-required-protected\"><strong>Bearer token required, protected.</strong></h4>\n","urlObject":{"protocol":"https","path":["api","notes","create"],"host":["todolistnotesapp","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"35f1006d-00d1-4282-8798-ccfca3cd26bd"},{"name":"Get Single note","id":"6bc5292d-9fe8-4679-8859-208fb245ab44","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[],"url":"https://todolistnotesapp.herokuapp.com/api/notes/:id","description":"<h3 id=\"find-a-single-note-by-an-id\">Find a single note by an ID</h3>\n<p>/api/notes/:id</p>\n","urlObject":{"protocol":"https","path":["api","notes",":id"],"host":["todolistnotesapp","herokuapp","com"],"query":[],"variable":[{"type":"any","value":null,"key":"id"}]}},"response":[],"_postman_id":"6bc5292d-9fe8-4679-8859-208fb245ab44"},{"name":"Edit a note","id":"cf1cf26c-e68f-47d3-bcc4-179af5f0c3a5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"title\": \"samp change note 3\",\r\n    \"content\": \"samp second\",\r\n    \"category\": \"s2\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://todolistnotesapp.herokuapp.com/api/notes/:id","description":"<h3 id=\"update-a-note-for-only-user-access\">Update a note for only user access.</h3>\n<p>/api/notes/:id</p>\n<h4 id=\"protected\">Protected</h4>\n","urlObject":{"protocol":"https","path":["api","notes",":id"],"host":["todolistnotesapp","herokuapp","com"],"query":[],"variable":[{"type":"any","value":null,"key":"id"}]}},"response":[],"_postman_id":"cf1cf26c-e68f-47d3-bcc4-179af5f0c3a5"},{"name":"Delete a note","id":"3997c7d4-5589-47b4-bfac-5b1931ae22a5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"DELETE","header":[],"url":"https://todolistnotesapp.herokuapp.com/api/notes/:id","description":"<h3 id=\"delete-a-note-for-particular-user-access\">Delete a note for particular user access</h3>\n<p>/api/notes/:id</p>\n<h4 id=\"protected\">Protected</h4>\n","urlObject":{"protocol":"https","path":["api","notes",":id"],"host":["todolistnotesapp","herokuapp","com"],"query":[],"variable":[{"type":"any","value":null,"key":"id"}]}},"response":[],"_postman_id":"3997c7d4-5589-47b4-bfac-5b1931ae22a5"}],"id":"2c40348e-d349-4757-b069-eee88710b613","_postman_id":"2c40348e-d349-4757-b069-eee88710b613","description":""}]}