{"info":{"_postman_id":"94994372-e08e-45a4-923d-372e6362e191","name":"Thirdfort","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"5708033","collectionId":"94994372-e08e-45a4-923d-372e6362e191","publishedId":"TVKEXcxH","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2020-09-24T12:53:44.000Z"},"item":[{"name":"Register","id":"2f2079e8-175b-4199-aca3-5da86789813c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"kaneywaney11@hotmail.co.uk\",\r\n    \"password\": \"12345\"\r\n}"},"url":"localhost:8080/register","description":"<p>Send an email and password in body as json and you will be registered as a user.</p>\n","urlObject":{"port":"8080","path":["register"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"2f2079e8-175b-4199-aca3-5da86789813c"},{"name":"Login","id":"a5bf0ec0-b1cd-4d2e-a493-fea6d71b84d0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\" : \"kaneywaney11@hotmail.co.uk\",\r\n    \"password\" : \"12345\"\r\n}"},"url":"localhost:8080/login","description":"<p>Send your registered email and password in the body as json and you will get back an authentication token plus a user id which will be needed for every other request to verify the user.</p>\n","urlObject":{"port":"8080","path":["login"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"a5bf0ec0-b1cd-4d2e-a493-fea6d71b84d0"},{"name":"Create Note","id":"58800070-3301-488b-9e1c-67dfab49c99f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"X-Auth-Token","type":"text","value":"4b216049d0ca9ba886c93e2a1bc3d8d3c6a5a80131626963e71d34c487579cac"},{"key":"X-User-Id","type":"text","value":"5f6b62282e81cfc2958a487e"}],"body":{"mode":"raw","raw":"{\r\n    \"content\": \"This is a note. 4 hello\"\r\n}"},"url":"localhost:8080/notes","description":"<p>Send the content of a note in the body.</p>\n<p>Put the authentication token from /login into X-Auth-Token.\nPuth the user id from /login into X-User-Id</p>\n","urlObject":{"port":"8080","path":["notes"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"58800070-3301-488b-9e1c-67dfab49c99f"},{"name":"Update Note","id":"214c8f47-de92-4452-91e1-feced5e8ad48","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"X-Auth-Token","value":"4b216049d0ca9ba886c93e2a1bc3d8d3c6a5a80131626963e71d34c487579cac","type":"text"},{"key":"X-User-Id","value":"5f6b62282e81cfc2958a487e","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"content\": \"This is an updated note.\"\r\n}"},"url":"localhost:8080/notes/5f6b9933e6603c61b1487e59","description":"<p>Send the updated content of a note in the body in the same manner as create note.</p>\n<p>In the paramater /notes/:id/ put the id of the note you wish to update.</p>\n<p>Put the authentication token from /login into X-Auth-Token.\nPuth the user id from /login into X-User-Id</p>\n","urlObject":{"port":"8080","path":["notes","5f6b9933e6603c61b1487e59"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"214c8f47-de92-4452-91e1-feced5e8ad48"},{"name":"Delete Note","id":"2c65cc73-b5c5-4edd-97a9-9cac763de7e5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"X-Auth-Token","value":"4b216049d0ca9ba886c93e2a1bc3d8d3c6a5a80131626963e71d34c487579cac","type":"text"},{"key":"X-User-Id","value":"5f6b62282e81cfc2958a487e","type":"text"}],"url":"localhost:8080/notes/5f6b89dbd5e9612d0d86788a","description":"<p>In the paramater /notes/:id/ put the id of the note you wish to delete.</p>\n<p>Put the authentication token from /login into X-Auth-Token.\nPuth the user id from /login into X-User-Id</p>\n","urlObject":{"port":"8080","path":["notes","5f6b89dbd5e9612d0d86788a"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"2c65cc73-b5c5-4edd-97a9-9cac763de7e5"},{"name":"Get Non Archived Notes","id":"27180a05-69c7-4da2-af11-fd26e3eaee22","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-Auth-Token","value":"4b216049d0ca9ba886c93e2a1bc3d8d3c6a5a80131626963e71d34c487579cac","type":"text"},{"key":"X-User-Id","value":"5f6b62282e81cfc2958a487e","type":"text"}],"url":"localhost:8080/notes?archived=false","description":"<p>Have a query string of the form /notes?archived=false.\nThis will return all non archived notes for the requesting user.</p>\n<p>Put the authentication token from /login into X-Auth-Token.\nPuth the user id from /login into X-User-Id</p>\n","urlObject":{"port":"8080","path":["notes"],"host":["localhost"],"query":[{"key":"archived","value":"false"}],"variable":[]}},"response":[],"_postman_id":"27180a05-69c7-4da2-af11-fd26e3eaee22"},{"name":"Get Archived Notes","id":"7bae208d-c323-4ea2-aef9-f3cf05a1bb4f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-Auth-Token","type":"text","value":"4b216049d0ca9ba886c93e2a1bc3d8d3c6a5a80131626963e71d34c487579cac"},{"key":"X-User-Id","type":"text","value":"5f6b62282e81cfc2958a487e"}],"url":"localhost:8080/notes?archived=true","description":"<p>Have a query string of the form /notes?archived=true.\nThis will return all archived notes for the requesting user.</p>\n<p>Put the authentication token from /login into X-Auth-Token.\nPuth the user id from /login into X-User-Id</p>\n","urlObject":{"port":"8080","path":["notes"],"host":["localhost"],"query":[{"key":"archived","value":"true"}],"variable":[]}},"response":[],"_postman_id":"7bae208d-c323-4ea2-aef9-f3cf05a1bb4f"},{"name":"Archive Note","id":"d38340a7-c891-4530-85f7-059dec2d8ea3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"X-Auth-Token","value":"4b216049d0ca9ba886c93e2a1bc3d8d3c6a5a80131626963e71d34c487579cac","type":"text"},{"key":"X-User-Id","value":"5f6b62282e81cfc2958a487e","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"archived\": true \r\n}"},"url":"localhost:8080/notes/5f6bc6bc69438a65a981b718/archive","description":"<p>The route is of the form /notes/:id/archive.</p>\n<p>To archive a note the payload of the body must contain \"archived\" : true</p>\n<p>Put the authentication token from /login into X-Auth-Token.\nPuth the user id from /login into X-User-Id</p>\n","urlObject":{"port":"8080","path":["notes","5f6bc6bc69438a65a981b718","archive"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"d38340a7-c891-4530-85f7-059dec2d8ea3"},{"name":"Unarchive Note","id":"c1ac287b-abf7-40ba-82ab-cd5d8d88cf3a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"X-Auth-Token","type":"text","value":"4b216049d0ca9ba886c93e2a1bc3d8d3c6a5a80131626963e71d34c487579cac"},{"key":"X-User-Id","type":"text","value":"5f6b62282e81cfc2958a487e"}],"body":{"mode":"raw","raw":"{\r\n    \"archived\": false \r\n}"},"url":"localhost:8080/notes/5f6bb9f2246ac983629f1cf1/archive","description":"<p>The route is of the form /notes/:id/archive.</p>\n<p>To archive a note the payload of the body must contain \"archived\" : false</p>\n<p>Put the authentication token from /login into X-Auth-Token.\nPuth the user id from /login into X-User-Id</p>\n","urlObject":{"port":"8080","path":["notes","5f6bb9f2246ac983629f1cf1","archive"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"c1ac287b-abf7-40ba-82ab-cd5d8d88cf3a"}]}