{"info":{"_postman_id":"1c9be1ed-e36c-4995-b412-fca1b3b2a8bb","name":"life-note api","description":"<html><head></head><body><p>this API is made to handle processes for a typical project planner, it includes endpoint for creating, deleting and updating projects and todos, it also include authentication, creation and modifications of Users</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"13215640","collectionId":"1c9be1ed-e36c-4995-b412-fca1b3b2a8bb","publishedId":"TzXzCws2","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2021-05-29T06:47:06.000Z"},"item":[{"name":"get - projects","id":"1c39485b-cac0-4f0d-becb-1a166183105f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{token}}"}],"advancedConfig":[{"key":"headerPrefix","value":"<header-prefix>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"title\":\"the testing project, user 2\",\n    \"details\":\"aburrido seriamente convesterach\"\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/projects/all","description":"<p>NOTE: Token must be provided in authorization header </p>\n<h3 id=\"get\">GET</h3>\n<ul>\n<li>this gets all the projects that are stored by that user</li>\n<li>no parameters needed</li>\n</ul>\n<h3 id=\"post\">POST</h3>\n<ul>\n<li>sending post request to this route adds a new project</li>\n<li>when sending post request to this route, certain parameters are required</li>\n<li>required parameter --&gt; \"title\" &amp;&amp; \"details\"</li>\n<li>in this format<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n    \"title\": \"Name of New Project\",\n    \"details\": \"More Info On The Project\"\n}\n</code></pre></li>\n</ul>\n","urlObject":{"protocol":"http","port":"8000","path":["projects","all"],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[],"_postman_id":"1c39485b-cac0-4f0d-becb-1a166183105f"},{"name":"modify -- Projects","id":"504fd64d-7a31-4a8c-b7d9-19152193d1e4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"update\":[\"title\", \"details\"],\n    \"title\":\"Create OOF website\",\n    \"details\":\"add that css animation idea you have, and create authentication\",\n    \"time\":\"\"\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/projects/modify/4","description":"<p>NOTE: Token must be provided in authorization header</p>\n<h3 id=\"update\">update</h3>\n<ul>\n<li>sending \"PUT\" requests to this route updates the given project</li>\n<li>in this format</li>\n</ul>\n<p>   <code>    {       \"update\":[\"title\", \"details\"],       \"title\":\"the uprising\",       \"details\":\"this is the begining of the uprising\"     }    </code></p>\n<ul>\n<li>required parameter is \"update\"</li>\n<li>accepted parameters are [\"title\", \"details\"]</li>\n</ul>\n<h2 id=\"delete\">delete</h2>\n<ul>\n<li>sending \"DELETE\" request to this route, deletes the project specified by id in url</li>\n<li>no data is required</li>\n</ul>\n","urlObject":{"protocol":"http","port":"8000","path":["projects","modify","4"],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[],"_postman_id":"504fd64d-7a31-4a8c-b7d9-19152193d1e4"},{"name":"get -- todos","id":"51d61401-187f-49b1-8a57-6b4069db23fd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{token}}"}],"advancedConfig":[{"key":"headerPrefix","value":"<header-prefix>"}]},"isInherited":false},"method":"GET","header":[],"body":{"mode":"raw","raw":"{\n    \"title\": \"goto the doctor\",\n    \"body\": \"i need to go to the doctor for my eyes\",\n    \"done\":\"False\",\n    \"pause\":\"False\"\n}","options":{"raw":{"language":"json"}}},"url":"127.0.0.1:8000/todos/all","description":"<p>NOTE: Token must be provided in authorization header</p>\n<h3 id=\"get\">GET</h3>\n<ul>\n<li>this gets all the Todos that are stored by that user</li>\n<li>no parameters needed</li>\n</ul>\n<h3 id=\"post\">POST</h3>\n<ul>\n<li>sending post request to this route adds a new Todo</li>\n<li>when sending post request to this route, certain parameters are required</li>\n<li>required parameter --&gt; \"title\" , \"body\", \"done\" and \"pause\"</li>\n<li>in this format<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n    \"title\": \"Name of New Todo\",\n    \"body\": \"More Info On The Todo\",\n    \"done\": \"true or false\",\n    \"pause\": \"true or false\"\n}\n</code></pre></li>\n</ul>\n","urlObject":{"port":"8000","path":["todos","all"],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[],"_postman_id":"51d61401-187f-49b1-8a57-6b4069db23fd"},{"name":"modify -- todo","id":"1893c969-175c-4c3c-8031-50739d48093d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{new_token}}"}],"advancedConfig":[{"key":"headerPrefix","value":"<header-prefix>"}]},"isInherited":false},"method":"DELETE","header":[],"body":{"mode":"raw","raw":"{\n    \"update\": [\"title\", \"body\", \"pause\"],\n    \"title\":\"go and chop foof\",\n    \"body\":\"i am hungry na\",\n    \"pause\":\"True\"\n}","options":{"raw":{"language":"json"}}},"url":"127.0.0.1:8000/todos/modify/1","description":"<p>NOTE: Token must be provided in authorization header</p>\n<h3 id=\"update\">UPDATE</h3>\n<ul>\n<li>sending \"PUT\" requests to this route updates the given Todo</li>\n<li>in this format</li>\n</ul>\n<p>   <code>    {       \"update\":[\"title\", \"body\", \"false\"],       \"title\":\"the uprising\",       \"body\":\"this is the begining of the uprising\",       \"pause\": \"false\"     }    </code></p>\n<ul>\n<li>required parameter is \"update\"</li>\n<li>accepted parameters are [\"title\", \"body\", \"done\", \"pause\"]</li>\n</ul>\n<h2 id=\"delete\">DELETE</h2>\n<ul>\n<li>sending \"DELETE\" request to this route, deletes the Todo specified by id in url</li>\n<li>no data is required</li>\n</ul>\n","urlObject":{"port":"8000","path":["todos","modify","1"],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[],"_postman_id":"1893c969-175c-4c3c-8031-50739d48093d"},{"name":"get token","id":"7bab3aa3-a6ba-4596-8437-51157ce39858","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{token}}"}],"advancedConfig":[{"key":"headerPrefix","value":"<header-prefix>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"username\":\"pledge\",\n    \"password\":\"test\"\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/auth/token","description":"<h3 id=\"post\">POST</h3>\n<ul>\n<li>sending a post request to this route with the username and password, if validated returns authentication token.</li>\n<li>details are sent in this format</li>\n</ul>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n    \"username\": \"users's username\",\n    \"password\": \"user's password\"\n}\n</code></pre>","urlObject":{"protocol":"http","port":"8000","path":["auth","token"],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[],"_postman_id":"7bab3aa3-a6ba-4596-8437-51157ce39858"},{"name":"register new user","id":"e90f10fa-61e5-4770-8645-287318b28473","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"email\":\"themaifn@gmail.com\",\n    \"password\":\"mainna\"\n}","options":{"raw":{"language":"json"}}},"url":"127.0.0.1:8000/user/auth/register","description":"<h1 id=\"post\">POST</h1>\n<p> Sending a post request to this route with email and password field, creates a new user.</p>\n<ul>\n<li>details are sent in this format</li>\n</ul>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n    \"email\": \"user's email\",\n    \"password\": \"password you want to use\"\n}\n</code></pre>","urlObject":{"port":"8000","path":["user","auth","register"],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[],"_postman_id":"e90f10fa-61e5-4770-8645-287318b28473"},{"name":"get user details","id":"21922d7d-f725-4b8d-bba2-4545c5c9afd7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{token_second}}"}],"advancedConfig":[{"key":"headerPrefix","value":"<header-prefix>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"token\":\"241818fec7815a80baaed8ba6348167a76634ed2\"\n    }","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/user/auth/details","description":"<p>NOTE: Token must be provided in authorization header</p>\n<h2 id=\"post\">POST</h2>\n<ul>\n<li>sending post request to this url with an authorization header of user </li>\n<li>returns the details of the user associated with that token</li>\n</ul>\n","urlObject":{"protocol":"http","port":"8000","path":["user","auth","details"],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[],"_postman_id":"21922d7d-f725-4b8d-bba2-4545c5c9afd7"}],"event":[{"listen":"prerequest","script":{"id":"430fe94f-61e9-4abc-9724-509607998c20","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"cdf28d02-0656-460c-a6c7-dc19fa9b57ea","type":"text/javascript","exec":[""]}}]}