{"info":{"_postman_id":"63820a28-9ed0-4489-80ec-1d97710d66e2","name":"Todo List","description":"<html><head></head><body><p>This is a <em>REST API</em> created to manage a Todo List application. This API is responsable to authenticate users that try to access it and to <strong>c</strong>reate, <strong>r</strong>ead, <strong>u</strong>pdate and <strong>d</strong>elete (<strong>CRUD</strong>) <em>tasks</em> and <em>users</em> from a database.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"20099081","collectionId":"63820a28-9ed0-4489-80ec-1d97710d66e2","publishedId":"2s7YfGDcum","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"e05320"},"publishDate":"2022-09-15T03:39:58.000Z"},"item":[{"name":"Users","item":[{"name":"/users","id":"e9b2dc30-26c7-4283-8152-242908b3f57e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"email\": \"new@email.com\",\r\n  \"password\": \"abcdef\",\r\n  \"name\": \"New User\"\r\n}","options":{"raw":{"language":"json"}}},"url":"localhost:3010/users","description":"<p>This endpoint creates a new user in the database. To complete this action, you must provide the following fields on the request body:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>Type</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>email</td>\n<td>string (valid email format)</td>\n</tr>\n<tr>\n<td>password</td>\n<td>string (at least 6 characters)</td>\n</tr>\n<tr>\n<td>name</td>\n<td>string (at least 2 characters)</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["users"],"host":["localhost:3010"],"query":[],"variable":[]}},"response":[],"_postman_id":"e9b2dc30-26c7-4283-8152-242908b3f57e"},{"name":"/users/login","id":"cfd760dc-41fd-48f1-96ff-9d63fea5f79c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"email\": \"first@email.com\",\r\n  \"password\": \"123456\"\r\n}","options":{"raw":{"language":"json"}}},"url":"localhost:3010/users/login","description":"<p>This endpoint gives a user an access token to use the tasks services. To recieve the token, you must provide the following fields on the request body:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>Type</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>email</td>\n<td>string (valid email format)</td>\n</tr>\n<tr>\n<td>password</td>\n<td>string (at least 6 characters)</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["users","login"],"host":["localhost:3010"],"query":[],"variable":[]}},"response":[],"_postman_id":"cfd760dc-41fd-48f1-96ff-9d63fea5f79c"}],"id":"ae17de2e-4874-4677-ad1e-d176622085a0","description":"<p>This is an entity managed by the API that has the following properties:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Property</strong></th>\n<th><strong>Type</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td>integer</td>\n</tr>\n<tr>\n<td>name</td>\n<td>string</td>\n</tr>\n<tr>\n<td>email</td>\n<td>string</td>\n</tr>\n<tr>\n<td>password</td>\n<td>string</td>\n</tr>\n</tbody>\n</table>\n</div>","_postman_id":"ae17de2e-4874-4677-ad1e-d176622085a0"},{"name":"Tasks","item":[{"name":"/tasks","id":"5da9f4e2-fdcc-4533-a602-18b174e5322e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[{"key":"Authorization","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJwYXlsb2FkIjp7InVzZXJJZCI6MX0sImlhdCI6MTY2MzIwMzY4NiwiZXhwIjoxNjYzMjkwMDg2fQ.ViS53Ogb3Fa9wNfqJ7ytnxb-4fnnxGbXL-rzuR0kDgg","type":"text"}],"url":"localhost:3010/tasks","description":"<p>This endpoint reads all your tasks stored in the database. To complete this action, you must be authorized.</p>\n<p>If you do not have your access token yet, get it by sending a POST request to /users/login as explained in this documentation.</p>\n<p>Once you have your access token, send it in the Authorization key of the request headers to read your tasks.</p>\n","urlObject":{"path":["tasks"],"host":["localhost:3010"],"query":[],"variable":[]}},"response":[],"_postman_id":"5da9f4e2-fdcc-4533-a602-18b174e5322e"},{"name":"/tasks","id":"e19413de-6903-4924-8ab5-9e6f6c866ab5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJwYXlsb2FkIjp7InVzZXJJZCI6MX0sImlhdCI6MTY2MzIwMzY4NiwiZXhwIjoxNjYzMjkwMDg2fQ.ViS53Ogb3Fa9wNfqJ7ytnxb-4fnnxGbXL-rzuR0kDgg","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"name\": \"New task\"\r\n}","options":{"raw":{"language":"json"}}},"url":"localhost:3010/tasks","description":"<p>This endpoint creates a new task in the database. To complete this action, you must be authorized.</p>\n<p>If you do not have your access token yet, get it by sending a POST request to /users/login as explained in this documentation.</p>\n<p>Once you have your access token, send it in the Authorization key of the request headers.</p>\n<p>With the token set on the headers, you must provied the following field in the request body to create a new task:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>Type</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>name</td>\n<td>string</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["tasks"],"host":["localhost:3010"],"query":[],"variable":[]}},"response":[],"_postman_id":"e19413de-6903-4924-8ab5-9e6f6c866ab5"},{"name":"/tasks/:id","id":"f19052b7-610d-47c5-841b-8166ad33a1fc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Authorization","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJwYXlsb2FkIjp7InVzZXJJZCI6MX0sImlhdCI6MTY2MzIwMzY4NiwiZXhwIjoxNjYzMjkwMDg2fQ.ViS53Ogb3Fa9wNfqJ7ytnxb-4fnnxGbXL-rzuR0kDgg","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"name\": \"Updated task\",\r\n  \"status\": \"Done\"\r\n}","options":{"raw":{"language":"json"}}},"url":"localhost:3010/tasks/5","description":"<p>This endpoint updates a task by its id in the database. To complete this action, you must be authorized.</p>\n<p>If you do not have your access token yet, get it by sending a POST request to /users/login as explained in this documentation.</p>\n<p>Once you have your access token, send it in the Authorization key of the request headers.</p>\n<p>With the token set on the headers, you must provied the following fields in the request body to update a task:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>Type</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>name</td>\n<td>string</td>\n</tr>\n<tr>\n<td>status</td>\n<td>string ('Pending', 'In progress' or 'Done')</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["tasks","5"],"host":["localhost:3010"],"query":[],"variable":[]}},"response":[],"_postman_id":"f19052b7-610d-47c5-841b-8166ad33a1fc"},{"name":"/tasks/:id","id":"ebd4a3d7-9242-4a4f-883d-9466a456a2d6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Authorization","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJwYXlsb2FkIjp7InVzZXJJZCI6MX0sImlhdCI6MTY2MzIwMzY4NiwiZXhwIjoxNjYzMjkwMDg2fQ.ViS53Ogb3Fa9wNfqJ7ytnxb-4fnnxGbXL-rzuR0kDgg","type":"text"}],"url":"localhost:3010/tasks/4","description":"<p>This endpoint deletes a task by its id in the database. To complete this action, you must be authorized.</p>\n<p>If you do not have your access token yet, get it by sending a POST request to /users/login as explained in this documentation.</p>\n<p>Once you have your access token, send it in the Authorization key of the request headers to delete a task.</p>\n","urlObject":{"path":["tasks","4"],"host":["localhost:3010"],"query":[],"variable":[]}},"response":[],"_postman_id":"ebd4a3d7-9242-4a4f-883d-9466a456a2d6"}],"id":"bd239a72-f312-4696-9cc2-782255829602","description":"<p>This is an entity managed by the API that has the following properties:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Property</strong></th>\n<th><strong>Type</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td>integer</td>\n</tr>\n<tr>\n<td>name</td>\n<td>string</td>\n</tr>\n<tr>\n<td>status</td>\n<td>string</td>\n</tr>\n<tr>\n<td>userId</td>\n<td>integer</td>\n</tr>\n<tr>\n<td>createdAt</td>\n<td>date</td>\n</tr>\n</tbody>\n</table>\n</div>","_postman_id":"bd239a72-f312-4696-9cc2-782255829602"}],"event":[{"listen":"prerequest","script":{"id":"bb81bbf8-3f4a-4e2e-b5db-f6395d560dcd","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"25eb00c7-8e1b-42fc-863c-1497117c9d56","type":"text/javascript","exec":[""]}}],"variable":[{"key":"base-url","value":"localhost:3010"},{"key":"token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJwYXlsb2FkIjp7InVzZXJJZCI6MX0sImlhdCI6MTY2MzIwMzY4NiwiZXhwIjoxNjYzMjkwMDg2fQ.ViS53Ogb3Fa9wNfqJ7ytnxb-4fnnxGbXL-rzuR0kDgg"}]}