{"info":{"_postman_id":"9a796cf8-50ac-4c71-9cdd-77a1ab575bef","name":"Task & track backend api","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"16917110","collectionId":"9a796cf8-50ac-4c71-9cdd-77a1ab575bef","publishedId":"U16ewTvn","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2021-09-03T21:03:46.000Z"},"item":[{"name":"api/v1/signup","id":"1644cad3-7bf3-460d-beea-b4a0771ab29c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n\t\"user\":\r\n\t{\r\n\t\t\"username\": \"sailormoon\",\r\n\t\t\"email\": \"sailormoon@test.com\",\r\n\t\t\"password\": \"123456789\"\r\n\t}\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/api/v1/signup","urlObject":{"protocol":"http","port":"3001","path":["api","v1","signup"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"082c01be-b9ff-404e-a008-b69fb787da98","name":"POST /api/v1/signup","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n\t\"user\":\r\n\t{\r\n\t\t\"username\": \"sailormoon\",\r\n\t\t\"email\": \"sailormoon@test.com\",\r\n\t\t\"password\": \"123456789\"\r\n\t}\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/api/v1/signup"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/vnd.api+json; charset=utf-8"},{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIxOCIsInNjcCI6InVzZXIiLCJhdWQiOm51bGwsImlhdCI6MTYzMDcwMTU0NCwiZXhwIjoxNjMwNzg3OTQ0LCJqdGkiOiJkNDlmMmZlOS02YTM3LTQ2MWItOTY3My00OTUwMTFhNDcyNTYifQ.1QTdtziFhUTjXRD3J3GxsT7YxRREgFpNkHMp02j86K4"},{"key":"ETag","value":"W/\"30bf6cb9e2f4154e75a5e0c7250ef476\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"c5bc9092-f9f7-4d02-bc17-2a04472bbcdd"},{"key":"X-Runtime","value":"0.359499"},{"key":"Vary","value":"Origin"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"id\": \"18\",\n        \"type\": \"users\",\n        \"attributes\": {\n            \"email\": \"sailormoon@test.com\",\n            \"username\": \"sailormoon\",\n            \"id\": 18\n        },\n        \"relationships\": {\n            \"tasks\": {\n                \"meta\": {\n                    \"included\": false\n                }\n            }\n        },\n        \"meta\": {\n            \"admin\": false\n        }\n    },\n    \"jsonapi\": {\n        \"version\": \"1.0\"\n    }\n}"}],"_postman_id":"1644cad3-7bf3-460d-beea-b4a0771ab29c"},{"name":"/api/v1/logout","id":"b3d8571a-2173-400b-9eba-12bee74969df","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"DELETE","header":[],"url":"http://localhost:3001/api/v1/logout","urlObject":{"protocol":"http","port":"3001","path":["api","v1","logout"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"4cdb1b0b-281a-4096-8931-a1e6b332a789","name":"DELETE /api/v1/logout","originalRequest":{"method":"DELETE","header":[],"url":"http://localhost:3001/api/v1/logout"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"5bc98f5bdb7cc4ec4189c672f4b48a80\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"c2ce8d89-6abb-4608-9492-4d32a3cf6baa"},{"key":"X-Runtime","value":"0.035243"},{"key":"Vary","value":"Origin"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Sayonara! You are logged out. See you soon!\",\n    \"title\": \"Logout_success\"\n}"}],"_postman_id":"b3d8571a-2173-400b-9eba-12bee74969df"},{"name":"/api/v1/login","id":"b8ec61e5-6e90-4b34-bfed-78a824736cf7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n\t\"user\":\r\n\t{\r\n\t\t\"username\": \"zelda\",\r\n\t\t\"email\": \"zelda@test.com\",\r\n\t\t\"password\": \"123456789\"\r\n\t}\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/api/v1/login","urlObject":{"protocol":"http","port":"3001","path":["api","v1","login"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"ccc03568-48d6-4d3b-b0b4-2fccd7280906","name":"POST /api/v1/login","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n\t\"user\":\r\n\t{\r\n\t\t\"username\": \"zelda\",\r\n\t\t\"email\": \"zelda@test.com\",\r\n\t\t\"password\": \"123456789\"\r\n\t}\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/api/v1/login"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/vnd.api+json; charset=utf-8"},{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIxMCIsInNjcCI6InVzZXIiLCJhdWQiOm51bGwsImlhdCI6MTYzMDcwMTc5OCwiZXhwIjoxNjMwNzg4MTk4LCJqdGkiOiI1Y2EwOWIyNC05Yjc5LTQwNjMtOTMyMy0xYTczYjIxZjdkNzAifQ.vd-sF7z1bNz5xX2G90hFKPZucb_5kIxYh3OzEeoL0B8"},{"key":"ETag","value":"W/\"c60296fb427c714bec6548c7a874c08a\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"dc819d68-9ed8-46fe-84e6-39f3c08b4a41"},{"key":"X-Runtime","value":"0.204982"},{"key":"Vary","value":"Origin"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"id\": \"10\",\n        \"type\": \"users\",\n        \"attributes\": {\n            \"email\": \"zelda@test.com\",\n            \"username\": \"zelda\",\n            \"id\": 10\n        },\n        \"relationships\": {\n            \"tasks\": {\n                \"meta\": {\n                    \"included\": false\n                }\n            }\n        },\n        \"meta\": {\n            \"admin\": false\n        }\n    },\n    \"jsonapi\": {\n        \"version\": \"1.0\"\n    }\n}"}],"_postman_id":"b8ec61e5-6e90-4b34-bfed-78a824736cf7"},{"name":"/api/v1/users/10","id":"033035fb-fdb2-4c9d-b892-0a31a64c8f87","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:3001/api/v1/users/10","urlObject":{"protocol":"http","port":"3001","path":["api","v1","users","10"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"20cf62f0-a1aa-4f74-bcdc-4db327cfa429","name":"GET /api/v1/users/10","originalRequest":{"method":"GET","header":[],"url":"http://localhost:3001/api/v1/users/10"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/vnd.api+json; charset=utf-8"},{"key":"ETag","value":"W/\"ac3034f3be10aaf4ac41c230fe186136\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"e3bbab22-9e4a-44a6-8d09-b93563f1f4af"},{"key":"X-Runtime","value":"0.100184"},{"key":"Vary","value":"Origin"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"id\": \"10\",\n        \"type\": \"users\",\n        \"attributes\": {\n            \"email\": \"zelda@test.com\",\n            \"username\": \"zelda\",\n            \"id\": 10\n        },\n        \"relationships\": {\n            \"tasks\": {\n                \"data\": {\n                    \"type\": \"tasks\",\n                    \"id\": \"34\"\n                }\n            }\n        },\n        \"meta\": {\n            \"admin\": false\n        }\n    },\n    \"included\": [\n        {\n            \"id\": \"34\",\n            \"type\": \"tasks\",\n            \"attributes\": {\n                \"id\": 34,\n                \"name\": \"retinol\",\n                \"priority\": 1,\n                \"goal\": 2,\n                \"unit\": \"per day\",\n                \"created-at\": \"2021-09-02T14:12:49.575Z\",\n                \"routine\": \"skin-care\",\n                \"routine-id\": 4,\n                \"author-id\": 10,\n                \"icon\": \"fas fa-smile-beam\",\n                \"measurements-count\": 0,\n                \"measurements-total\": 0\n            },\n            \"relationships\": {\n                \"user\": {\n                    \"meta\": {\n                        \"included\": false\n                    }\n                },\n                \"routine\": {\n                    \"meta\": {\n                        \"included\": false\n                    }\n                },\n                \"mesurements\": {\n                    \"meta\": {\n                        \"included\": false\n                    }\n                }\n            },\n            \"meta\": {\n                \"routine\": {\n                    \"id\": 4,\n                    \"name\": \"skin-care\",\n                    \"icon\": \"fas fa-smile-beam\",\n                    \"priority\": 1,\n                    \"created_at\": \"2021-08-30T19:10:34.803Z\",\n                    \"updated_at\": \"2021-08-30T19:10:34.803Z\"\n                }\n            }\n        }\n    ],\n    \"jsonapi\": {\n        \"version\": \"1.0\"\n    }\n}"}],"_postman_id":"033035fb-fdb2-4c9d-b892-0a31a64c8f87"},{"name":"/api/v1/routines","id":"4b32e0c4-890e-408f-9f2b-2775ab9c7627","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n\t\"routine\":\r\n\t{\r\n\t\t\"name\": \"workout\",\r\n        \"icon\": \"CgGym\",\r\n        \"priority\": 3\r\n\t}\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/v1/routines","urlObject":{"protocol":"http","port":"3000","path":["api","v1","routines"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"4b32e0c4-890e-408f-9f2b-2775ab9c7627"},{"name":"/api/v1/routines","id":"d2ef3b73-3a3e-4fc4-a278-0814baf38445","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:3001/api/v1/routines","urlObject":{"protocol":"http","port":"3001","path":["api","v1","routines"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"a32a7a4e-94e1-42d3-bb7f-d35b123d2ba3","name":"GET /api/v1/routines","originalRequest":{"method":"GET","header":[],"url":"http://localhost:3001/api/v1/routines"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/vnd.api+json; charset=utf-8"},{"key":"ETag","value":"W/\"5170d8231200cbc138ea7b156021c699\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"4a88691a-fcb7-4a1d-8479-2dfe859eb4b8"},{"key":"X-Runtime","value":"0.052022"},{"key":"Vary","value":"Origin"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": [\n        {\n            \"id\": \"4\",\n            \"type\": \"routines\",\n            \"attributes\": {\n                \"id\": 4,\n                \"name\": \"skin-care\",\n                \"icon\": \"fas fa-smile-beam\",\n                \"priority\": 1,\n                \"created-at\": \"2021-08-30T19:10:34.803Z\"\n            },\n            \"relationships\": {\n                \"tasks\": {\n                    \"meta\": {\n                        \"included\": false\n                    }\n                }\n            },\n            \"meta\": {\n                \"count\": 9\n            }\n        },\n        {\n            \"id\": \"5\",\n            \"type\": \"routines\",\n            \"attributes\": {\n                \"id\": 5,\n                \"name\": \"brain-workout\",\n                \"icon\": \"fas fa-chess\",\n                \"priority\": 1,\n                \"created-at\": \"2021-08-30T21:50:08.749Z\"\n            },\n            \"relationships\": {\n                \"tasks\": {\n                    \"meta\": {\n                        \"included\": false\n                    }\n                }\n            },\n            \"meta\": {\n                \"count\": 9\n            }\n        },\n        {\n            \"id\": \"6\",\n            \"type\": \"routines\",\n            \"attributes\": {\n                \"id\": 6,\n                \"name\": \"Diet\",\n                \"icon\": \"fas fa-utensils\",\n                \"priority\": 2,\n                \"created-at\": \"2021-08-30T23:58:15.878Z\"\n            },\n            \"relationships\": {\n                \"tasks\": {\n                    \"meta\": {\n                        \"included\": false\n                    }\n                }\n            },\n            \"meta\": {\n                \"count\": 9\n            }\n        },\n        {\n            \"id\": \"7\",\n            \"type\": \"routines\",\n            \"attributes\": {\n                \"id\": 7,\n                \"name\": \"Sleep\",\n                \"icon\": \"fas fa-bed\",\n                \"priority\": 1,\n                \"created-at\": \"2021-09-01T18:34:16.732Z\"\n            },\n            \"relationships\": {\n                \"tasks\": {\n                    \"meta\": {\n                        \"included\": false\n                    }\n                }\n            },\n            \"meta\": {\n                \"count\": 9\n            }\n        }\n    ],\n    \"jsonapi\": {\n        \"version\": \"1.0\"\n    }\n}"}],"_postman_id":"d2ef3b73-3a3e-4fc4-a278-0814baf38445"},{"name":"/api/v1/routines/4","id":"8f29053f-fd5d-4fd9-b0c7-a0c4be690ab6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:3001/api/v1/routines/4","urlObject":{"protocol":"http","port":"3001","path":["api","v1","routines","4"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"b7a519c9-d890-4735-a3db-124cfe4a58d3","name":"GET /api/v1/routines/4","originalRequest":{"method":"GET","header":[],"url":"http://localhost:3001/api/v1/routines/4"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/vnd.api+json; charset=utf-8"},{"key":"ETag","value":"W/\"29630afd54fb86c541c199a6169d5d86\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"bf9a5851-b2f0-4795-b155-92a867d662f4"},{"key":"X-Runtime","value":"0.045127"},{"key":"Vary","value":"Origin"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": [\n        {\n            \"id\": \"34\",\n            \"type\": \"tasks\",\n            \"attributes\": {\n                \"id\": 34,\n                \"name\": \"retinol\",\n                \"priority\": 1,\n                \"goal\": 2,\n                \"unit\": \"per day\",\n                \"created-at\": \"2021-09-02T14:12:49.575Z\",\n                \"routine\": \"skin-care\",\n                \"routine-id\": 4,\n                \"author-id\": 10,\n                \"icon\": \"fas fa-smile-beam\",\n                \"measurements-count\": 0,\n                \"measurements-total\": 0\n            },\n            \"relationships\": {\n                \"user\": {\n                    \"meta\": {\n                        \"included\": false\n                    }\n                },\n                \"routine\": {\n                    \"meta\": {\n                        \"included\": false\n                    }\n                },\n                \"mesurements\": {\n                    \"meta\": {\n                        \"included\": false\n                    }\n                }\n            },\n            \"meta\": {\n                \"routine\": {\n                    \"id\": 4,\n                    \"name\": \"skin-care\",\n                    \"icon\": \"fas fa-smile-beam\",\n                    \"priority\": 1,\n                    \"created_at\": \"2021-08-30T19:10:34.803Z\",\n                    \"updated_at\": \"2021-08-30T19:10:34.803Z\"\n                }\n            }\n        },\n        {\n            \"id\": \"30\",\n            \"type\": \"tasks\",\n            \"attributes\": {\n                \"id\": 30,\n                \"name\": \"vitamin c serum\",\n                \"priority\": 2,\n                \"goal\": 2,\n                \"unit\": \"per day\",\n                \"created-at\": \"2021-09-01T18:30:35.473Z\",\n                \"routine\": \"skin-care\",\n                \"routine-id\": 4,\n                \"author-id\": 10,\n                \"icon\": \"fas fa-smile-beam\",\n                \"measurements-count\": 1,\n                \"measurements-total\": 1\n            },\n            \"relationships\": {\n                \"user\": {\n                    \"meta\": {\n                        \"included\": false\n                    }\n                },\n                \"routine\": {\n                    \"meta\": {\n                        \"included\": false\n                    }\n                },\n                \"mesurements\": {\n                    \"meta\": {\n                        \"included\": false\n                    }\n                }\n            },\n            \"meta\": {\n                \"routine\": {\n                    \"id\": 4,\n                    \"name\": \"skin-care\",\n                    \"icon\": \"fas fa-smile-beam\",\n                    \"priority\": 1,\n                    \"created_at\": \"2021-08-30T19:10:34.803Z\",\n                    \"updated_at\": \"2021-08-30T19:10:34.803Z\"\n                }\n            }\n        }\n    ],\n    \"jsonapi\": {\n        \"version\": \"1.0\"\n    }\n}"}],"_postman_id":"8f29053f-fd5d-4fd9-b0c7-a0c4be690ab6"},{"name":"/api/v1/tasks","id":"65e719b8-37b6-46a5-b5de-de6d443ecbe5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n\t\"task\":\r\n\t{\r\n\t\t\"name\": \"yoga\",\r\n\t\t\"priority\": 2,\r\n\t\t\"unit\": \"hour\",\r\n        \"goal\": 1,\r\n        \"routine_id\": 4\r\n\t}\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/api/v1/tasks","urlObject":{"protocol":"http","port":"3001","path":["api","v1","tasks"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"a364220c-7620-462f-86b8-55a394fc1881","name":"POST /api/v1/tasks","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n\t\"task\":\r\n\t{\r\n\t\t\"name\": \"yoga\",\r\n\t\t\"priority\": 2,\r\n\t\t\"unit\": \"hour\",\r\n        \"goal\": 1,\r\n        \"routine_id\": 4\r\n\t}\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/api/v1/tasks"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/vnd.api+json; charset=utf-8"},{"key":"ETag","value":"W/\"b522c61b1c81dc90e05a654c51847d3c\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"6c4bcbf7-c206-4c5e-a468-242eebc862f4"},{"key":"X-Runtime","value":"0.075475"},{"key":"Vary","value":"Origin"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"id\": \"40\",\n        \"type\": \"tasks\",\n        \"attributes\": {\n            \"id\": 40,\n            \"name\": \"yoga\",\n            \"priority\": 2,\n            \"goal\": 1,\n            \"unit\": \"hour\",\n            \"created-at\": \"2021-09-03T20:50:52.387Z\",\n            \"routine\": \"skin-care\",\n            \"routine-id\": 4,\n            \"author-id\": 10,\n            \"icon\": \"fas fa-smile-beam\",\n            \"measurements-count\": 0,\n            \"measurements-total\": 0\n        },\n        \"relationships\": {\n            \"user\": {\n                \"meta\": {\n                    \"included\": false\n                }\n            },\n            \"routine\": {\n                \"meta\": {\n                    \"included\": false\n                }\n            },\n            \"mesurements\": {\n                \"meta\": {\n                    \"included\": false\n                }\n            }\n        },\n        \"meta\": {\n            \"routine\": {\n                \"id\": 4,\n                \"name\": \"skin-care\",\n                \"icon\": \"fas fa-smile-beam\",\n                \"priority\": 1,\n                \"created_at\": \"2021-08-30T19:10:34.803Z\",\n                \"updated_at\": \"2021-08-30T19:10:34.803Z\"\n            }\n        }\n    },\n    \"jsonapi\": {\n        \"version\": \"1.0\"\n    }\n}"}],"_postman_id":"65e719b8-37b6-46a5-b5de-de6d443ecbe5"},{"name":"/api/v1/tasks/33","id":"a3e2783d-f423-4ceb-9019-1271c4627a85","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:3001/api/v1/tasks/33","urlObject":{"protocol":"http","port":"3001","path":["api","v1","tasks","33"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"e478fd64-5cb2-4271-95d7-5326c786222e","name":"GET /api/v1/tasks/33","originalRequest":{"method":"GET","header":[],"url":"http://localhost:3001/api/v1/tasks/33"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/vnd.api+json; charset=utf-8"},{"key":"ETag","value":"W/\"735d6d61bc9695d5cb2415ef8e9d2a89\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"9e427812-7ca1-4940-96f3-9cff9da29f3b"},{"key":"X-Runtime","value":"0.025862"},{"key":"Vary","value":"Origin"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"id\": \"33\",\n        \"type\": \"tasks\",\n        \"attributes\": {\n            \"id\": 33,\n            \"name\": \"go game\",\n            \"priority\": 5,\n            \"goal\": 60,\n            \"unit\": \"min\",\n            \"created-at\": \"2021-09-02T14:11:32.779Z\",\n            \"routine\": \"brain-workout\",\n            \"routine-id\": 5,\n            \"author-id\": 10,\n            \"icon\": \"fas fa-chess\",\n            \"measurements-count\": 2,\n            \"measurements-total\": 31\n        },\n        \"relationships\": {\n            \"user\": {\n                \"meta\": {\n                    \"included\": false\n                }\n            },\n            \"routine\": {\n                \"meta\": {\n                    \"included\": false\n                }\n            },\n            \"mesurements\": {\n                \"data\": [\n                    {\n                        \"type\": \"Mesurements\",\n                        \"id\": \"15\"\n                    },\n                    {\n                        \"type\": \"Mesurements\",\n                        \"id\": \"16\"\n                    }\n                ]\n            }\n        },\n        \"meta\": {\n            \"routine\": {\n                \"id\": 5,\n                \"name\": \"brain-workout\",\n                \"icon\": \"fas fa-chess\",\n                \"priority\": 1,\n                \"created_at\": \"2021-08-30T21:50:08.749Z\",\n                \"updated_at\": \"2021-08-30T21:50:08.749Z\"\n            }\n        }\n    },\n    \"included\": [\n        {\n            \"id\": \"15\",\n            \"type\": \"Mesurements\",\n            \"attributes\": {\n                \"id\": 15,\n                \"quantity\": 8,\n                \"created-at\": \"2021-09-02T18:36:13.885Z\",\n                \"task-id\": 33,\n                \"task-name\": \"go game\",\n                \"task-icon\": \"fas fa-chess\",\n                \"unity\": \"min\"\n            },\n            \"relationships\": {\n                \"task\": {\n                    \"meta\": {\n                        \"included\": false\n                    }\n                }\n            }\n        },\n        {\n            \"id\": \"16\",\n            \"type\": \"Mesurements\",\n            \"attributes\": {\n                \"id\": 16,\n                \"quantity\": 23,\n                \"created-at\": \"2021-09-02T22:01:29.448Z\",\n                \"task-id\": 33,\n                \"task-name\": \"go game\",\n                \"task-icon\": \"fas fa-chess\",\n                \"unity\": \"min\"\n            },\n            \"relationships\": {\n                \"task\": {\n                    \"meta\": {\n                        \"included\": false\n                    }\n                }\n            }\n        }\n    ],\n    \"jsonapi\": {\n        \"version\": \"1.0\"\n    }\n}"}],"_postman_id":"a3e2783d-f423-4ceb-9019-1271c4627a85"},{"name":"api/v1/tasks","id":"9ecfc75c-2270-42f1-8792-4f434a436ce3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:3001/api/v1/tasks","urlObject":{"protocol":"http","port":"3001","path":["api","v1","tasks"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"6b538781-66c3-425b-ad4f-b4900a18139a","name":"GET api/v1/tasks","originalRequest":{"method":"GET","header":[],"url":"http://localhost:3001/api/v1/tasks"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/vnd.api+json; charset=utf-8"},{"key":"ETag","value":"W/\"cf5d1d5a6f7b9519c67ade8a94ebb8eb\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"9b1fc41b-ef63-4c5b-8598-3dd59e0d59d3"},{"key":"X-Runtime","value":"0.104270"},{"key":"Vary","value":"Origin"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": [\n        {\n            \"id\": \"34\",\n            \"type\": \"tasks\",\n            \"attributes\": {\n                \"id\": 34,\n                \"name\": \"retinol\",\n                \"priority\": 1,\n                \"goal\": 2,\n                \"unit\": \"per day\",\n                \"created-at\": \"2021-09-02T14:12:49.575Z\",\n                \"routine\": \"skin-care\",\n                \"routine-id\": 4,\n                \"author-id\": 10,\n                \"icon\": \"fas fa-smile-beam\",\n                \"measurements-count\": 0,\n                \"measurements-total\": 0\n            },\n            \"relationships\": {\n                \"user\": {\n                    \"meta\": {\n                        \"included\": false\n                    }\n                },\n                \"routine\": {\n                    \"meta\": {\n                        \"included\": false\n                    }\n                },\n                \"mesurements\": {\n                    \"meta\": {\n                        \"included\": false\n                    }\n                }\n            },\n            \"meta\": {\n                \"routine\": {\n                    \"id\": 4,\n                    \"name\": \"skin-care\",\n                    \"icon\": \"fas fa-smile-beam\",\n                    \"priority\": 1,\n                    \"created_at\": \"2021-08-30T19:10:34.803Z\",\n                    \"updated_at\": \"2021-08-30T19:10:34.803Z\"\n                }\n            }\n        },\n        {\n            \"id\": \"39\",\n            \"type\": \"tasks\",\n            \"attributes\": {\n                \"id\": 39,\n                \"name\": \"Night sleep\",\n                \"priority\": 1,\n                \"goal\": 8,\n                \"unit\": \"hour/day\",\n                \"created-at\": \"2021-09-02T21:37:04.904Z\",\n                \"routine\": \"Sleep\",\n                \"routine-id\": 7,\n                \"author-id\": 10,\n                \"icon\": \"fas fa-bed\",\n                \"measurements-count\": 0,\n                \"measurements-total\": 0\n            },\n            \"relationships\": {\n                \"user\": {\n                    \"meta\": {\n                        \"included\": false\n                    }\n                },\n                \"routine\": {\n                    \"meta\": {\n                        \"included\": false\n                    }\n                },\n                \"mesurements\": {\n                    \"meta\": {\n                        \"included\": false\n                    }\n                }\n            },\n            \"meta\": {\n                \"routine\": {\n                    \"id\": 7,\n                    \"name\": \"Sleep\",\n                    \"icon\": \"fas fa-bed\",\n                    \"priority\": 1,\n                    \"created_at\": \"2021-09-01T18:34:16.732Z\",\n                    \"updated_at\": \"2021-09-01T18:34:16.732Z\"\n                }\n            }\n        },\n        {\n            \"id\": \"30\",\n            \"type\": \"tasks\",\n            \"attributes\": {\n                \"id\": 30,\n                \"name\": \"vitamin c serum\",\n                \"priority\": 2,\n                \"goal\": 2,\n                \"unit\": \"per day\",\n                \"created-at\": \"2021-09-01T18:30:35.473Z\",\n                \"routine\": \"skin-care\",\n                \"routine-id\": 4,\n                \"author-id\": 10,\n                \"icon\": \"fas fa-smile-beam\",\n                \"measurements-count\": 1,\n                \"measurements-total\": 1\n            },\n            \"relationships\": {\n                \"user\": {\n                    \"meta\": {\n                        \"included\": false\n                    }\n                },\n                \"routine\": {\n                    \"meta\": {\n                        \"included\": false\n                    }\n                },\n                \"mesurements\": {\n                    \"meta\": {\n                        \"included\": false\n                    }\n                }\n            },\n            \"meta\": {\n                \"routine\": {\n                    \"id\": 4,\n                    \"name\": \"skin-care\",\n                    \"icon\": \"fas fa-smile-beam\",\n                    \"priority\": 1,\n                    \"created_at\": \"2021-08-30T19:10:34.803Z\",\n                    \"updated_at\": \"2021-08-30T19:10:34.803Z\"\n                }\n            }\n        },\n        {\n            \"id\": \"40\",\n            \"type\": \"tasks\",\n            \"attributes\": {\n                \"id\": 40,\n                \"name\": \"yoga\",\n                \"priority\": 2,\n                \"goal\": 1,\n                \"unit\": \"hour\",\n                \"created-at\": \"2021-09-03T20:50:52.387Z\",\n                \"routine\": \"skin-care\",\n                \"routine-id\": 4,\n                \"author-id\": 10,\n                \"icon\": \"fas fa-smile-beam\",\n                \"measurements-count\": 0,\n                \"measurements-total\": 0\n            },\n            \"relationships\": {\n                \"user\": {\n                    \"meta\": {\n                        \"included\": false\n                    }\n                },\n                \"routine\": {\n                    \"meta\": {\n                        \"included\": false\n                    }\n                },\n                \"mesurements\": {\n                    \"meta\": {\n                        \"included\": false\n                    }\n                }\n            },\n            \"meta\": {\n                \"routine\": {\n                    \"id\": 4,\n                    \"name\": \"skin-care\",\n                    \"icon\": \"fas fa-smile-beam\",\n                    \"priority\": 1,\n                    \"created_at\": \"2021-08-30T19:10:34.803Z\",\n                    \"updated_at\": \"2021-08-30T19:10:34.803Z\"\n                }\n            }\n        },\n        {\n            \"id\": \"36\",\n            \"type\": \"tasks\",\n            \"attributes\": {\n                \"id\": 36,\n                \"name\": \"chia pudding\",\n                \"priority\": 3,\n                \"goal\": 2,\n                \"unit\": \"bol per day\",\n                \"created-at\": \"2021-09-02T14:14:04.181Z\",\n                \"routine\": \"Diet\",\n                \"routine-id\": 6,\n                \"author-id\": 10,\n                \"icon\": \"fas fa-utensils\",\n                \"measurements-count\": 0,\n                \"measurements-total\": 0\n            },\n            \"relationships\": {\n                \"user\": {\n                    \"meta\": {\n                        \"included\": false\n                    }\n                },\n                \"routine\": {\n                    \"meta\": {\n                        \"included\": false\n                    }\n                },\n                \"mesurements\": {\n                    \"meta\": {\n                        \"included\": false\n                    }\n                }\n            },\n            \"meta\": {\n                \"routine\": {\n                    \"id\": 6,\n                    \"name\": \"Diet\",\n                    \"icon\": \"fas fa-utensils\",\n                    \"priority\": 2,\n                    \"created_at\": \"2021-08-30T23:58:15.878Z\",\n                    \"updated_at\": \"2021-08-30T23:58:15.878Z\"\n                }\n            }\n        },\n        {\n            \"id\": \"33\",\n            \"type\": \"tasks\",\n            \"attributes\": {\n                \"id\": 33,\n                \"name\": \"go game\",\n                \"priority\": 5,\n                \"goal\": 60,\n                \"unit\": \"min\",\n                \"created-at\": \"2021-09-02T14:11:32.779Z\",\n                \"routine\": \"brain-workout\",\n                \"routine-id\": 5,\n                \"author-id\": 10,\n                \"icon\": \"fas fa-chess\",\n                \"measurements-count\": 2,\n                \"measurements-total\": 31\n            },\n            \"relationships\": {\n                \"user\": {\n                    \"meta\": {\n                        \"included\": false\n                    }\n                },\n                \"routine\": {\n                    \"meta\": {\n                        \"included\": false\n                    }\n                },\n                \"mesurements\": {\n                    \"meta\": {\n                        \"included\": false\n                    }\n                }\n            },\n            \"meta\": {\n                \"routine\": {\n                    \"id\": 5,\n                    \"name\": \"brain-workout\",\n                    \"icon\": \"fas fa-chess\",\n                    \"priority\": 1,\n                    \"created_at\": \"2021-08-30T21:50:08.749Z\",\n                    \"updated_at\": \"2021-08-30T21:50:08.749Z\"\n                }\n            }\n        }\n    ],\n    \"jsonapi\": {\n        \"version\": \"1.0\"\n    }\n}"}],"_postman_id":"9ecfc75c-2270-42f1-8792-4f434a436ce3"},{"name":"api/v1/allroutines","id":"578085d9-e607-43fc-824b-94c332f91648","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:3001/api/v1/allroutines","urlObject":{"protocol":"http","port":"3001","path":["api","v1","allroutines"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"163dc625-929f-4ecd-a1ff-3bb90f7ba6e7","name":"GET api/v1/allroutines","originalRequest":{"method":"GET","header":[],"url":"http://localhost:3001/api/v1/allroutines"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"fd9c509e2f3095c70e3a772b3fd86fa5\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"e44161c4-1a63-4491-b1fd-fd046603dca0"},{"key":"X-Runtime","value":"0.017028"},{"key":"Vary","value":"Origin"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 4,\n        \"name\": \"skin-care\",\n        \"icon\": \"fas fa-smile-beam\"\n    },\n    {\n        \"id\": 5,\n        \"name\": \"brain-workout\",\n        \"icon\": \"fas fa-chess\"\n    },\n    {\n        \"id\": 7,\n        \"name\": \"Sleep\",\n        \"icon\": \"fas fa-bed\"\n    },\n    {\n        \"id\": 9,\n        \"name\": \" hygiene\",\n        \"icon\": \"fas fa-bath\"\n    },\n    {\n        \"id\": 12,\n        \"name\": \"supplementation\",\n        \"icon\": \"fas fa-pills\"\n    },\n    {\n        \"id\": 6,\n        \"name\": \"Diet\",\n        \"icon\": \"fas fa-utensils\"\n    },\n    {\n        \"id\": 13,\n        \"name\": \"workout\",\n        \"icon\": \"fas fa-swimmer\"\n    },\n    {\n        \"id\": 10,\n        \"name\": \"Pet\",\n        \"icon\": \"fas fa-paw\"\n    },\n    {\n        \"id\": 11,\n        \"name\": \"Learn Language\",\n        \"icon\": \"fab fa-zhihu\"\n    }\n]"}],"_postman_id":"578085d9-e607-43fc-824b-94c332f91648"},{"name":"api/v1/mesurements","id":"a47f1def-6a34-436e-9fe2-eb9a315759cc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"mesurement\": {\r\n        \"quantity\": 30,\r\n        \"task_id\": 40\r\n    }\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001 /api/v1/mesurements","urlObject":{"protocol":"http","port":"3001 ","path":["api","v1","mesurements"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"e3d292fe-e841-49b4-955a-995a42d58d52","name":"POST api/v1/mesurements","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"mesurement\": {\r\n        \"quantity\": 30,\r\n        \"task_id\": 40\r\n    }\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001 /api/v1/mesurements"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/vnd.api+json; charset=utf-8"},{"key":"ETag","value":"W/\"3f529db2171354690aa8a551a53663f3\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"12d63023-3773-4e1c-89d1-b1b63647ef38"},{"key":"X-Runtime","value":"0.066624"},{"key":"Vary","value":"Origin"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"id\": \"17\",\n        \"type\": \"Mesurements\",\n        \"attributes\": {\n            \"id\": 17,\n            \"quantity\": 30,\n            \"created-at\": \"2021-09-03T20:56:39.897Z\",\n            \"task-id\": 40,\n            \"task-name\": \"yoga\",\n            \"task-icon\": \"fas fa-smile-beam\",\n            \"unity\": \"hour\"\n        },\n        \"relationships\": {\n            \"task\": {\n                \"meta\": {\n                    \"included\": false\n                }\n            }\n        }\n    },\n    \"jsonapi\": {\n        \"version\": \"1.0\"\n    }\n}"}],"_postman_id":"a47f1def-6a34-436e-9fe2-eb9a315759cc"}]}