{"info":{"_postman_id":"1a18e26a-828a-4b02-b05a-84342aecd7a9","name":"Shotter","description":"<html><head></head><body><p>API endpoints for Shotter</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"8035044","collectionId":"1a18e26a-828a-4b02-b05a-84342aecd7a9","publishedId":"SzKZsvkq","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2020-02-29T23:23:28.000Z"},"item":[{"name":"Urls","item":[{"name":"Get All urls","id":"79e16347-a747-47d2-ac43-995749a15e60","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer  eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJteW93bmVyQGVtYWlsLmNvbSIsIklkIjoiMWRhZGM2NDItYjAwMy00ZjUyLTkyYTMtN2RiYzk5YTE0YTQzIiwiZXhwIjoxNTg1NDk0MDcwLCJpYXQiOjE1ODU0MDc2NzB9.e2Vibv7V_fh3i5-NYYKW4ByWZgaiylYMq-we1T7Ie4E","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"localhost:2019/urls","urlObject":{"path":["urls"],"host":["localhost:2019"],"query":[],"variable":[]}},"response":[{"id":"80dfa577-bed0-48c3-87df-dfc81d5867f2","name":"Success","originalRequest":{"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer  eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJteW93bmVyQGVtYWlsLmNvbSIsIklkIjoiMWRhZGM2NDItYjAwMy00ZjUyLTkyYTMtN2RiYzk5YTE0YTQzIiwiZXhwIjoxNTg1NDk0MDcwLCJpYXQiOjE1ODU0MDc2NzB9.e2Vibv7V_fh3i5-NYYKW4ByWZgaiylYMq-we1T7Ie4E","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"localhost:2019/urls"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Sat, 28 Mar 2020 15:07:16 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"directory\": \"projects\",\n        \"redirect\": \"https://ikeze.dev/projects\",\n        \"clicks\": 0,\n        \"description\": null,\n        \"image\": null,\n        \"title\": null,\n        \"createdAt\": \"2020-03-24T12:19:29.274153\",\n        \"updatedAt\": \"2020-03-24T12:19:29.274274\",\n        \"owner\": {\n            \"ownerid\": \"97bd7c4c-bbf6-4251-a2c6-7919bbfbbb5e\",\n            \"email\": \"test@email.com\",\n            \"name\": \"test\"\n        },\n        \"id\": \"3cba3416-d873-489a-a275-8fdb03d9a75f\"\n    },\n    {\n        \"directory\": \"github\",\n        \"redirect\": \"https://github.com\",\n        \"clicks\": 0,\n        \"description\": null,\n        \"image\": null,\n        \"title\": null,\n        \"createdAt\": \"2020-03-24T12:19:29.280726\",\n        \"updatedAt\": \"2020-03-24T12:19:29.280756\",\n        \"owner\": {\n            \"ownerid\": \"97bd7c4c-bbf6-4251-a2c6-7919bbfbbb5e\",\n            \"email\": \"test@email.com\",\n            \"name\": \"test\"\n        },\n        \"id\": \"a3f79668-e5b5-4255-84cf-450e9e681b46\"\n    },\n    {\n        \"directory\": \"iykekings\",\n        \"redirect\": \"https://github.com/iykekings\",\n        \"clicks\": 0,\n        \"description\": null,\n        \"image\": null,\n        \"title\": null,\n        \"createdAt\": \"2020-03-24T12:19:29.281758\",\n        \"updatedAt\": \"2020-03-24T12:19:29.281785\",\n        \"owner\": {\n            \"ownerid\": \"102bd47e-7eea-4b62-b6fe-493c2bbf1469\",\n            \"email\": \"test1@email.com\",\n            \"name\": \"test1\"\n        },\n        \"id\": \"c0388e27-2fd9-4ff3-aadc-da0c0e00fec7\"\n    },\n    {\n        \"directory\": \"matthardsman\",\n        \"redirect\": \"https://github.com/mattshardman\",\n        \"clicks\": 0,\n        \"description\": null,\n        \"image\": null,\n        \"title\": null,\n        \"createdAt\": \"2020-03-24T12:19:29.2827\",\n        \"updatedAt\": \"2020-03-24T12:19:29.282727\",\n        \"owner\": {\n            \"ownerid\": \"102bd47e-7eea-4b62-b6fe-493c2bbf1469\",\n            \"email\": \"test1@email.com\",\n            \"name\": \"test1\"\n        },\n        \"id\": \"08629468-7b8a-4fa3-b8f8-1cc477f11d09\"\n    },\n    {\n        \"directory\": \"lasjs\",\n        \"redirect\": \"https://www.npmjs.com/package/las-js\",\n        \"clicks\": 3,\n        \"description\": null,\n        \"image\": null,\n        \"title\": null,\n        \"createdAt\": \"2020-03-24T12:19:29.283846\",\n        \"updatedAt\": \"2020-03-28T16:04:28.130447\",\n        \"owner\": {\n            \"ownerid\": \"24b9ba2f-f2ba-4621-8559-28045dae0085\",\n            \"email\": \"test2@email.com\",\n            \"name\": \"test2\"\n        },\n        \"id\": \"814dddce-fd91-4251-811c-c1ac5f5461f3\"\n    }\n]"}],"_postman_id":"79e16347-a747-47d2-ac43-995749a15e60"},{"name":"Get url by Id","id":"ef799f6b-20ee-467e-983d-167a95b0f3ee","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer  eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJteW93bmVyQGVtYWlsLmNvbSIsIklkIjoiMWRhZGM2NDItYjAwMy00ZjUyLTkyYTMtN2RiYzk5YTE0YTQzIiwiZXhwIjoxNTg1NDk0MDcwLCJpYXQiOjE1ODU0MDc2NzB9.e2Vibv7V_fh3i5-NYYKW4ByWZgaiylYMq-we1T7Ie4E","type":"text"}],"url":"localhost:2019/urls/5b217cdd-e496-4eff-982c-f3c4812e1840","urlObject":{"path":["urls","5b217cdd-e496-4eff-982c-f3c4812e1840"],"host":["localhost:2019"],"query":[],"variable":[]}},"response":[{"id":"11361161-36d3-427f-8fbe-d14d415a552b","name":"Not Found","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer  eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJteW93bmVyQGVtYWlsLmNvbSIsIklkIjoiMWRhZGM2NDItYjAwMy00ZjUyLTkyYTMtN2RiYzk5YTE0YTQzIiwiZXhwIjoxNTg1NDk0MDcwLCJpYXQiOjE1ODU0MDc2NzB9.e2Vibv7V_fh3i5-NYYKW4ByWZgaiylYMq-we1T7Ie4E","type":"text"}],"url":"localhost:2019/urls/5b217cdd-e496-4eff-982c-f3c4812e1840"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Sat, 28 Mar 2020 17:46:05 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"timestamp\": \"2020-03-28T17:46:05.983+0000\",\n    \"status\": 404,\n    \"error\": \"Not Found\",\n    \"message\": \"Url not found: 5b217cdd-e496-4eff-982c-f3c4812e1840\",\n    \"path\": \"/urls/5b217cdd-e496-4eff-982c-f3c4812e1840\"\n}"},{"id":"39caa815-f5a2-45c6-ad08-2279d780629d","name":"Success","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer  eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJteW93bmVyQGVtYWlsLmNvbSIsIklkIjoiMWRhZGM2NDItYjAwMy00ZjUyLTkyYTMtN2RiYzk5YTE0YTQzIiwiZXhwIjoxNTg1NDk0MDcwLCJpYXQiOjE1ODU0MDc2NzB9.e2Vibv7V_fh3i5-NYYKW4ByWZgaiylYMq-we1T7Ie4E","type":"text"}],"url":"localhost:2019/urls/5b217cdd-e496-4eff-982c-f3c4812e1840"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Sat, 28 Mar 2020 15:14:12 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"directory\": \"ikeze\",\n    \"redirect\": \"https://ikeze.dev\",\n    \"clicks\": 0,\n    \"description\": \"This is my portfolio, including my projects, writings and a tiny\\n    bit of everything else\",\n    \"image\": \"https://ikeze.dev/site_thumbnail.jpeg\",\n    \"title\": \"Ikechukwu Eze\",\n    \"createdAt\": \"2020-03-28T16:09:12.627172\",\n    \"updatedAt\": \"2020-03-28T16:09:12.627391\",\n    \"owner\": {\n        \"ownerid\": \"a008c094-61d5-4e7d-80f1-8a45db1dbffe\",\n        \"email\": \"user@email.com\",\n        \"name\": \"myuser\"\n    },\n    \"id\": \"5b217cdd-e496-4eff-982c-f3c4812e1840\"\n}"}],"_postman_id":"ef799f6b-20ee-467e-983d-167a95b0f3ee"},{"name":"Delete Url","id":"b4c723c2-4d59-43d0-b37e-957e125d2e8c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Authorization","value":"Bearer  eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJteW93bmVyQGVtYWlsLmNvbSIsIklkIjoiMWRhZGM2NDItYjAwMy00ZjUyLTkyYTMtN2RiYzk5YTE0YTQzIiwiZXhwIjoxNTg1NDk0MDcwLCJpYXQiOjE1ODU0MDc2NzB9.e2Vibv7V_fh3i5-NYYKW4ByWZgaiylYMq-we1T7Ie4E","type":"text"}],"url":"localhost:2019/urls/5b217cdd-e496-4eff-982c-f3c4812e1840","urlObject":{"path":["urls","5b217cdd-e496-4eff-982c-f3c4812e1840"],"host":["localhost:2019"],"query":[],"variable":[]}},"response":[{"id":"404b95cc-7213-4971-a7e4-687d5fcb5db0","name":"Success","originalRequest":{"method":"DELETE","header":[{"key":"Authorization","value":"Bearer  eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJteW93bmVyQGVtYWlsLmNvbSIsIklkIjoiMWRhZGM2NDItYjAwMy00ZjUyLTkyYTMtN2RiYzk5YTE0YTQzIiwiZXhwIjoxNTg1NDk0MDcwLCJpYXQiOjE1ODU0MDc2NzB9.e2Vibv7V_fh3i5-NYYKW4ByWZgaiylYMq-we1T7Ie4E","type":"text"}],"url":"localhost:2019/urls/5b217cdd-e496-4eff-982c-f3c4812e1840"},"status":"OK","code":200,"_postman_previewlanguage":"plain","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"0"},{"key":"Date","value":"Sat, 28 Mar 2020 17:45:33 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":null},{"id":"63f6e84b-d847-41d2-9d4a-8be1f2b86119","name":"Invalid Id","originalRequest":{"method":"DELETE","header":[],"url":"localhost:2019/urls/5"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Mon, 24 Feb 2020 23:48:55 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"timestamp\": \"2020-02-24T23:48:55.502+0000\",\n    \"status\": 404,\n    \"error\": \"Not Found\",\n    \"message\": \"Url not found : 1\",\n    \"path\": \"/urls/1\"\n}"}],"_postman_id":"b4c723c2-4d59-43d0-b37e-957e125d2e8c"},{"name":"Add new url","id":"c2227ba5-513a-4d71-b3e8-098e2a0e8a91","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer  eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJteW93bmVyQGVtYWlsLmNvbSIsIklkIjoiMWRhZGM2NDItYjAwMy00ZjUyLTkyYTMtN2RiYzk5YTE0YTQzIiwiZXhwIjoxNTg1NDk0MDcwLCJpYXQiOjE1ODU0MDc2NzB9.e2Vibv7V_fh3i5-NYYKW4ByWZgaiylYMq-we1T7Ie4E","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"directory\": \"ikeze\",\n    \"redirect\": \"https://ikeze.dev\",\n    \"owner\": {\n        \"ownerid\": \"a008c094-61d5-4e7d-80f1-8a45db1dbffe\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"localhost:2019/urls","urlObject":{"path":["urls"],"host":["localhost:2019"],"query":[],"variable":[]}},"response":[{"id":"7e39b116-3b4c-4a39-b54e-9104b1de9fe9","name":"Duplicate","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer  eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJteW93bmVyQGVtYWlsLmNvbSIsIklkIjoiMWRhZGM2NDItYjAwMy00ZjUyLTkyYTMtN2RiYzk5YTE0YTQzIiwiZXhwIjoxNTg1NDk0MDcwLCJpYXQiOjE1ODU0MDc2NzB9.e2Vibv7V_fh3i5-NYYKW4ByWZgaiylYMq-we1T7Ie4E","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"directory\": \"ikeze\",\n    \"redirect\": \"https://ikeze.dev\",\n    \"owner\": {\n        \"ownerid\": \"a008c094-61d5-4e7d-80f1-8a45db1dbffe\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"localhost:2019/urls"},"status":"Conflict","code":409,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Sat, 28 Mar 2020 15:10:55 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"timestamp\": \"2020-03-28T15:10:55.717+0000\",\n    \"status\": 409,\n    \"error\": \"Conflict\",\n    \"message\": \"Url is a duplicate: ikeze\",\n    \"path\": \"/urls\"\n}"},{"id":"8041d627-a417-42b0-8142-6b5925a0517f","name":"Missing Fields","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer  eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJteW93bmVyQGVtYWlsLmNvbSIsIklkIjoiMWRhZGM2NDItYjAwMy00ZjUyLTkyYTMtN2RiYzk5YTE0YTQzIiwiZXhwIjoxNTg1NDk0MDcwLCJpYXQiOjE1ODU0MDc2NzB9.e2Vibv7V_fh3i5-NYYKW4ByWZgaiylYMq-we1T7Ie4E","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"directory\": \"\",\n    \"redirect\": \"\",\n    \"owner\": {\n        \"ownerid\": \"a008c094-61d5-4e7d-80f1-8a45db1dbffe\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"localhost:2019/urls"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Sat, 28 Mar 2020 15:12:22 GMT"},{"key":"Connection","value":"close"}],"cookie":[],"responseTime":null,"body":"{\n    \"timestamp\": \"2020-03-28T15:12:22.664+0000\",\n    \"status\": 400,\n    \"error\": \"Bad Request\",\n    \"message\": \"Please provide directory, redirect and/or owner fields\",\n    \"path\": \"/urls\"\n}"},{"id":"94c34b84-0958-41bf-a14f-776545fa36d0","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer  eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJteW93bmVyQGVtYWlsLmNvbSIsIklkIjoiMWRhZGM2NDItYjAwMy00ZjUyLTkyYTMtN2RiYzk5YTE0YTQzIiwiZXhwIjoxNTg1NDk0MDcwLCJpYXQiOjE1ODU0MDc2NzB9.e2Vibv7V_fh3i5-NYYKW4ByWZgaiylYMq-we1T7Ie4E","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"directory\": \"ikeze\",\n    \"redirect\": \"https://ikeze.dev\",\n    \"owner\": {\n        \"ownerid\": \"a008c094-61d5-4e7d-80f1-8a45db1dbffe\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"localhost:2019/urls"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"Location","value":"/urls"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Sat, 28 Mar 2020 15:09:12 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"directory\": \"ikeze\",\n    \"redirect\": \"https://ikeze.dev\",\n    \"clicks\": 0,\n    \"description\": \"This is my portfolio, including my projects, writings and a tiny\\n    bit of everything else\",\n    \"image\": \"https://ikeze.dev/site_thumbnail.jpeg\",\n    \"title\": \"Ikechukwu Eze\",\n    \"createdAt\": \"2020-03-28T16:09:12.627172\",\n    \"updatedAt\": \"2020-03-28T16:09:12.627391\",\n    \"owner\": {\n        \"ownerid\": \"a008c094-61d5-4e7d-80f1-8a45db1dbffe\",\n        \"email\": null,\n        \"name\": null\n    },\n    \"id\": \"5b217cdd-e496-4eff-982c-f3c4812e1840\"\n}"}],"_postman_id":"c2227ba5-513a-4d71-b3e8-098e2a0e8a91"},{"name":"Get owner's urls","id":"aecd43ed-a494-4daf-adfb-2ab6b24f9d8e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer  eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJteW93bmVyQGVtYWlsLmNvbSIsIklkIjoiMWRhZGM2NDItYjAwMy00ZjUyLTkyYTMtN2RiYzk5YTE0YTQzIiwiZXhwIjoxNTg1NDk0MDcwLCJpYXQiOjE1ODU0MDc2NzB9.e2Vibv7V_fh3i5-NYYKW4ByWZgaiylYMq-we1T7Ie4E","type":"text"}],"url":"localhost:2019/urls/97bd7c4c-bbf6-4251-a2c6-7919bbfbbb5e/owner","description":"<p>Fetch all urls by a particular owner</p>\n","urlObject":{"path":["urls","97bd7c4c-bbf6-4251-a2c6-7919bbfbbb5e","owner"],"host":["localhost:2019"],"query":[],"variable":[]}},"response":[{"id":"01dca777-fe6f-436c-9d2f-ce1cd5f1dae2","name":"Success","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer  eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJteW93bmVyQGVtYWlsLmNvbSIsIklkIjoiMWRhZGM2NDItYjAwMy00ZjUyLTkyYTMtN2RiYzk5YTE0YTQzIiwiZXhwIjoxNTg1NDk0MDcwLCJpYXQiOjE1ODU0MDc2NzB9.e2Vibv7V_fh3i5-NYYKW4ByWZgaiylYMq-we1T7Ie4E","type":"text"}],"url":"localhost:2019/urls/97bd7c4c-bbf6-4251-a2c6-7919bbfbbb5e/owner"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Sat, 28 Mar 2020 17:49:39 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"directory\": \"projects\",\n        \"redirect\": \"https://ikeze.dev/projects\",\n        \"clicks\": 0,\n        \"description\": null,\n        \"image\": null,\n        \"title\": null,\n        \"createdAt\": \"2020-03-24T12:19:29.274153\",\n        \"updatedAt\": \"2020-03-24T12:19:29.274274\",\n        \"owner\": {\n            \"ownerid\": \"97bd7c4c-bbf6-4251-a2c6-7919bbfbbb5e\",\n            \"email\": \"test@email.com\",\n            \"name\": \"test\"\n        },\n        \"id\": \"3cba3416-d873-489a-a275-8fdb03d9a75f\"\n    },\n    {\n        \"directory\": \"github\",\n        \"redirect\": \"https://github.com\",\n        \"clicks\": 0,\n        \"description\": null,\n        \"image\": null,\n        \"title\": null,\n        \"createdAt\": \"2020-03-24T12:19:29.280726\",\n        \"updatedAt\": \"2020-03-24T12:19:29.280756\",\n        \"owner\": {\n            \"ownerid\": \"97bd7c4c-bbf6-4251-a2c6-7919bbfbbb5e\",\n            \"email\": \"test@email.com\",\n            \"name\": \"test\"\n        },\n        \"id\": \"a3f79668-e5b5-4255-84cf-450e9e681b46\"\n    }\n]"},{"id":"0a7819e8-5dc0-431c-b6a8-d8917cee47fb","name":"Invalid Owner ID","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer  eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJteW93bmVyQGVtYWlsLmNvbSIsIklkIjoiMWRhZGM2NDItYjAwMy00ZjUyLTkyYTMtN2RiYzk5YTE0YTQzIiwiZXhwIjoxNTg1NDk0MDcwLCJpYXQiOjE1ODU0MDc2NzB9.e2Vibv7V_fh3i5-NYYKW4ByWZgaiylYMq-we1T7Ie4E","type":"text"}],"url":"localhost:2019/urls/97bd7c4c-bbf6-4251-a2c6-7919bbfbbbe5/owner"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Sat, 28 Mar 2020 17:50:29 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"[]"}],"_postman_id":"aecd43ed-a494-4daf-adfb-2ab6b24f9d8e"},{"name":"Get Url by directory","id":"efc8643e-300f-4e29-ae3e-0bd46981508d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJ0ZXN0QGVtYWlsLmNvbSIsImV4cCI6MTU4MzEwNDU4NSwiaWF0IjoxNTgzMDE4MTg1fQ.3S7ekMM9WBGPCRmBbxca2wBUsQbHQMQ9kPgDlruh0-s","type":"text"}],"url":"localhost:2019/urls/dir/testing0","urlObject":{"path":["urls","dir","testing0"],"host":["localhost:2019"],"query":[],"variable":[]}},"response":[{"id":"3df62d54-85ae-4ef4-b939-a3f623500abd","name":"404 - Not found","originalRequest":{"method":"GET","header":[],"url":"localhost:2019/urls/dir/testing90"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Mon, 24 Feb 2020 22:20:40 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"timestamp\": \"2020-02-24T22:20:40.402+0000\",\n    \"status\": 404,\n    \"error\": \"Not Found\",\n    \"message\": \"Url not found : testing90\",\n    \"path\": \"/urls/dir/testing90\"\n}"},{"id":"81d52405-2bb3-46dc-95cc-8909597ba409","name":"Success","originalRequest":{"method":"GET","header":[],"url":"localhost:2019/urls/dir/testing0"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Mon, 24 Feb 2020 22:20:11 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"directory\": \"testing0\",\n    \"redirect\": \"https://testing0\",\n    \"owner\": {\n        \"ownerid\": 1,\n        \"email\": \"test@email.com\",\n        \"name\": \"test\"\n    },\n    \"id\": 4\n}"}],"_postman_id":"efc8643e-300f-4e29-ae3e-0bd46981508d"},{"name":"Update Url","id":"e78bd6e3-10bd-439f-8f43-581ab0eec68e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer  eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJteW93bmVyQGVtYWlsLmNvbSIsIklkIjoiMWRhZGM2NDItYjAwMy00ZjUyLTkyYTMtN2RiYzk5YTE0YTQzIiwiZXhwIjoxNTg1NDk0MDcwLCJpYXQiOjE1ODU0MDc2NzB9.e2Vibv7V_fh3i5-NYYKW4ByWZgaiylYMq-we1T7Ie4E","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"directory\": \"lasjs\",\n    \"redirect\": \"https://nmpjs.com/package/las-js\",\n    \"description\": \"Updated and fresh description\"\n}","options":{"raw":{"language":"json"}}},"url":"localhost:2019/urls/814dddce-fd91-4251-811c-c1ac5f5461f3","description":"<p>directory and redirect fields must be provided</p>\n","urlObject":{"path":["urls","814dddce-fd91-4251-811c-c1ac5f5461f3"],"host":["localhost:2019"],"query":[],"variable":[]}},"response":[{"id":"2dd17bc1-ff8d-4fc8-bafb-f5b08d1c83ba","name":"Success","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer  eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJteW93bmVyQGVtYWlsLmNvbSIsIklkIjoiMWRhZGM2NDItYjAwMy00ZjUyLTkyYTMtN2RiYzk5YTE0YTQzIiwiZXhwIjoxNTg1NDk0MDcwLCJpYXQiOjE1ODU0MDc2NzB9.e2Vibv7V_fh3i5-NYYKW4ByWZgaiylYMq-we1T7Ie4E","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"directory\": \"lasjs\",\n    \"redirect\": \"https://nmpjs.com/package/las-js\",\n    \"description\": \"Updated and fresh description\"\n}","options":{"raw":{"language":"json"}}},"url":"localhost:2019/urls/814dddce-fd91-4251-811c-c1ac5f5461f3"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Sat, 28 Mar 2020 18:23:04 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"directory\": \"lasjs\",\n    \"redirect\": \"https://nmpjs.com/package/las-js\",\n    \"clicks\": 0,\n    \"description\": \"Updated and fresh description\",\n    \"image\": null,\n    \"title\": null,\n    \"createdAt\": null,\n    \"updatedAt\": \"2020-03-28T19:23:04.600291\",\n    \"owner\": null,\n    \"id\": \"814dddce-fd91-4251-811c-c1ac5f5461f3\"\n}"},{"id":"868922f1-e141-4c2f-88e3-43d668c41094","name":"Missing Required Fields","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer  eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJteW93bmVyQGVtYWlsLmNvbSIsIklkIjoiMWRhZGM2NDItYjAwMy00ZjUyLTkyYTMtN2RiYzk5YTE0YTQzIiwiZXhwIjoxNTg1NDk0MDcwLCJpYXQiOjE1ODU0MDc2NzB9.e2Vibv7V_fh3i5-NYYKW4ByWZgaiylYMq-we1T7Ie4E","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"directory\": \"lasjs\",\n    \"description\": \"Updated and fresh description\"\n}","options":{"raw":{"language":"json"}}},"url":"localhost:2019/urls/814dddce-fd91-4251-811c-c1ac5f5461f3"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Sat, 28 Mar 2020 18:24:36 GMT"},{"key":"Connection","value":"close"}],"cookie":[],"responseTime":null,"body":"{\n    \"timestamp\": \"2020-03-28T18:24:36.809+0000\",\n    \"status\": 400,\n    \"error\": \"Bad Request\",\n    \"message\": \"Please provide directory and redirect fields\",\n    \"path\": \"/urls/814dddce-fd91-4251-811c-c1ac5f5461f3\"\n}"},{"id":"f2f8e6ca-4aa9-4f53-a95c-9188ac9142bf","name":"Invalid Id","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer  eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJteW93bmVyQGVtYWlsLmNvbSIsIklkIjoiMWRhZGM2NDItYjAwMy00ZjUyLTkyYTMtN2RiYzk5YTE0YTQzIiwiZXhwIjoxNTg1NDk0MDcwLCJpYXQiOjE1ODU0MDc2NzB9.e2Vibv7V_fh3i5-NYYKW4ByWZgaiylYMq-we1T7Ie4E","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"directory\": \"lasjs\",\n    \"redirect\": \"https://nmpjs.com/package/las-js\",\n    \"description\": \"Updated and fresh description\"\n}","options":{"raw":{"language":"json"}}},"url":"localhost:2019/urls/814dddce-fd91-4251-811c-c1ac5f54613f"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Sat, 28 Mar 2020 18:25:45 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"timestamp\": \"2020-03-28T18:25:45.135+0000\",\n    \"status\": 404,\n    \"error\": \"Not Found\",\n    \"message\": \"Url not found: 814dddce-fd91-4251-811c-c1ac5f54613f\",\n    \"path\": \"/urls/814dddce-fd91-4251-811c-c1ac5f54613f\"\n}"}],"_postman_id":"e78bd6e3-10bd-439f-8f43-581ab0eec68e"},{"name":"Check if Url exists","id":"0794b09e-35bd-4b0b-8d30-86a242f3f475","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJteW93bmVyQGVtYWlsLmNvbSIsIklkIjoiMWRhZGM2NDItYjAwMy00ZjUyLTkyYTMtN2RiYzk5YTE0YTQzIiwiZXhwIjoxNTg1NDM2MzE2LCJpYXQiOjE1ODUzNDk5MTZ9.hgzRUH_xOoDksi_p7eg00nBhU9WA0YL1LJhSt4fErJE","type":"text"}],"url":"localhost:2019/urls/check/github","urlObject":{"path":["urls","check","github"],"host":["localhost:2019"],"query":[],"variable":[]}},"response":[{"id":"297f16ed-7a05-4838-b2aa-abe019841a7d","name":"Url already exist","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJ0ZXN0QGVtYWlsLmNvbSIsImV4cCI6MTU4MzA0OTgyNywiaWF0IjoxNTgzMDEzODI3fQ.CJXHrtakcFZEuMynNxkeWwmbjxdNeBUMxBi_Y-Y6D3M","type":"text"}],"url":"localhost:2019/urls/check/github"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Sat, 29 Feb 2020 22:11:01 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"state\": true\n}"},{"id":"5d9044af-2d85-4cde-bab6-3ffea2fd8650","name":"url doesn't exist in DB","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJ0ZXN0QGVtYWlsLmNvbSIsImV4cCI6MTU4MzA0OTgyNywiaWF0IjoxNTgzMDEzODI3fQ.CJXHrtakcFZEuMynNxkeWwmbjxdNeBUMxBi_Y-Y6D3M","type":"text"}],"url":"localhost:2019/urls/check/notthere"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Sat, 29 Feb 2020 22:09:19 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"state\": false\n}"}],"_postman_id":"0794b09e-35bd-4b0b-8d30-86a242f3f475"}],"id":"7be5fbed-f92b-49ef-b7d8-e8cb5f1656aa","_postman_id":"7be5fbed-f92b-49ef-b7d8-e8cb5f1656aa","description":""},{"name":"Owners and Authentication","item":[{"name":"login","id":"ad0d6aed-73f5-4693-96b0-506d5fc15404","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"username\": \"myowner@email.com\",\n     \"password\": \"mypassword\"\n}","options":{"raw":{"language":"json"}}},"url":"localhost:2019/owners/login","urlObject":{"path":["owners","login"],"host":["localhost:2019"],"query":[],"variable":[]}},"response":[{"id":"71036fde-4692-42d7-bfe5-cb65c3aaa2b3","name":"Wrong Credentials","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJ0ZXN0QGVtYWlsLmNvbSIsImV4cCI6MTU4Mjg0NTc3MSwiaWF0IjoxNTgyODA5NzcxfQ.cKiL5Ow5AwQX_jCha5c8cg6ygISkr-10BnlwIizfo-4","type":"text","disabled":true}],"body":{"mode":"raw","raw":"{\n\t\"username\": \"myowner@email.com\", \"password\": \"mywrongpassword\"\n}","options":{"raw":{"language":"json"}}},"url":"localhost:2019/owners/login"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Fri, 27 Mar 2020 11:56:28 GMT"},{"key":"Connection","value":"close"}],"cookie":[],"responseTime":null,"body":"{\n    \"timestamp\": \"2020-03-27T11:56:28.673+0000\",\n    \"status\": 400,\n    \"error\": \"Bad Request\",\n    \"message\": \"Wrong password or email. Make sure you have signed up\",\n    \"path\": \"/owners/login\"\n}"},{"id":"f49f0a56-b482-42c5-b629-b9529d16ae18","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJ0ZXN0QGVtYWlsLmNvbSIsImV4cCI6MTU4Mjg0NTc3MSwiaWF0IjoxNTgyODA5NzcxfQ.cKiL5Ow5AwQX_jCha5c8cg6ygISkr-10BnlwIizfo-4","type":"text","disabled":true}],"body":{"mode":"raw","raw":"{\n\t\"username\": \"test1@email.com\", \"password\": \"password1\"\n}","options":{"raw":{"language":"json"}}},"url":"localhost:2019/owners/login"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Fri, 28 Feb 2020 18:00:32 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"token\": \"eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJ0ZXN0MUBlbWFpbC5jb20iLCJleHAiOjE1ODI5NDg4MzIsImlhdCI6MTU4MjkxMjgzMn0.xdTjQRC_IFZJSggErrxzxHGSBiGifbw2oJrZeIb8ils\"\n}"}],"_postman_id":"ad0d6aed-73f5-4693-96b0-506d5fc15404"},{"name":"Create Owner","id":"7fd30db4-f793-4d97-98c4-9ebc03da8c21","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"email\": \"user@email.com\",\n     \"name\": \"myuser\",\n     \"password\": \"password\"\n}","options":{"raw":{"language":"json"}}},"url":"localhost:2019/owners/create","urlObject":{"path":["owners","create"],"host":["localhost:2019"],"query":[],"variable":[]}},"response":[{"id":"4309afc6-98ef-4e63-b223-12a463326161","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"email\": \"user@email.com\",\n     \"name\": \"myuser\",\n     \"password\": \"password\"\n}","options":{"raw":{"language":"json"}}},"url":"localhost:2019/owners/create"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"Location","value":"/owners/create"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Sat, 28 Mar 2020 14:52:41 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"ownerid\": \"a008c094-61d5-4e7d-80f1-8a45db1dbffe\",\n    \"email\": \"user@email.com\",\n    \"name\": \"myuser\",\n    \"password\": \"$2a$10$tuo/oxQX2e8Vle/YMlll4eia02uCELZb1JZn1Jqx2C/6mZgb3lOZS\",\n    \"urls\": []\n}"},{"id":"898e4f22-24ed-4a50-a376-ddd97a4d52dd","name":"Duplicate","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\n     \"email\": \"user@email.com\",\n     \"name\": \"myuser\",\n     \"password\": \"password\"\n\n}","options":{"raw":{"language":"json"}}},"url":"localhost:2019/owners/create"},"status":"Conflict","code":409,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Sat, 28 Mar 2020 14:56:59 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"timestamp\": \"2020-03-28T14:56:59.301+0000\",\n    \"status\": 409,\n    \"error\": \"Conflict\",\n    \"message\": \"Owner is a duplicate: user@email.com\",\n    \"path\": \"/owners/create\"\n}"},{"id":"be20fe27-973f-4205-aa21-bd508e0417f2","name":"Missing Fields","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\n     \"email\": \"\",\n     \"name\": \"myonwer\",\n     \"password\": \"\"\n\n}","options":{"raw":{"language":"json"}}},"url":"localhost:2019/owners/create"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Sat, 28 Mar 2020 14:55:17 GMT"},{"key":"Connection","value":"close"}],"cookie":[],"responseTime":null,"body":"{\n    \"timestamp\": \"2020-03-28T14:55:17.280+0000\",\n    \"status\": 400,\n    \"error\": \"Bad Request\",\n    \"message\": \"Please provide email, password field(s)\",\n    \"path\": \"/owners/create\"\n}"}],"_postman_id":"7fd30db4-f793-4d97-98c4-9ebc03da8c21"},{"name":"Check if Owner exists","id":"481ba554-5493-48a1-a91a-cd9ec0eef5fb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"localhost:2019/owners/check/test@email.com","urlObject":{"path":["owners","check","test@email.com"],"host":["localhost:2019"],"query":[],"variable":[]}},"response":[{"id":"1c725c8e-f0a3-4746-bec7-4b9ec2aa6ef6","name":"When there's an owner with email","originalRequest":{"method":"GET","header":[],"url":"localhost:2019/owners/check/test@email.com"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Disposition","value":"inline;filename=f.txt"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Sat, 29 Feb 2020 21:54:13 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"state\": true\n}"},{"id":"58587269-1d5b-4839-b17a-6dbfe4d64ca7","name":"When there's no owner","originalRequest":{"method":"GET","header":[],"url":"localhost:2019/owners/check/test@test.com"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Disposition","value":"inline;filename=f.txt"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Sat, 29 Feb 2020 21:55:20 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"state\": false\n}"}],"_postman_id":"481ba554-5493-48a1-a91a-cd9ec0eef5fb"},{"name":"Find Owner By Id","id":"f9f790e6-ea81-4fa0-bbca-8a0aba886507","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer  eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJteW93bmVyQGVtYWlsLmNvbSIsIklkIjoiMWRhZGM2NDItYjAwMy00ZjUyLTkyYTMtN2RiYzk5YTE0YTQzIiwiZXhwIjoxNTg1NDk0MDcwLCJpYXQiOjE1ODU0MDc2NzB9.e2Vibv7V_fh3i5-NYYKW4ByWZgaiylYMq-we1T7Ie4E","type":"text"}],"url":"localhost:2019/owners/a008c094-61d5-4e7d-80f1-8a45db1dbffe","description":"<p>NB: This needs bearer declared in autorization header</p>\n","urlObject":{"path":["owners","a008c094-61d5-4e7d-80f1-8a45db1dbffe"],"host":["localhost:2019"],"query":[],"variable":[]}},"response":[{"id":"4ea78a44-d1d5-4535-9bf2-095ec23ac3cb","name":"Success","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer  eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJteW93bmVyQGVtYWlsLmNvbSIsIklkIjoiMWRhZGM2NDItYjAwMy00ZjUyLTkyYTMtN2RiYzk5YTE0YTQzIiwiZXhwIjoxNTg1NDk0MDcwLCJpYXQiOjE1ODU0MDc2NzB9.e2Vibv7V_fh3i5-NYYKW4ByWZgaiylYMq-we1T7Ie4E","type":"text"}],"url":"localhost:2019/owners/a008c094-61d5-4e7d-80f1-8a45db1dbffe"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Sat, 28 Mar 2020 15:01:27 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"ownerid\": \"a008c094-61d5-4e7d-80f1-8a45db1dbffe\",\n    \"email\": \"user@email.com\",\n    \"name\": \"myuser\",\n    \"password\": \"$2a$10$tuo/oxQX2e8Vle/YMlll4eia02uCELZb1JZn1Jqx2C/6mZgb3lOZS\",\n    \"urls\": []\n}"},{"id":"f1a03072-0d42-4ddd-8331-fce03e19943b","name":"Invalid Id","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer  eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJteW93bmVyQGVtYWlsLmNvbSIsIklkIjoiMWRhZGM2NDItYjAwMy00ZjUyLTkyYTMtN2RiYzk5YTE0YTQzIiwiZXhwIjoxNTg1NDk0MDcwLCJpYXQiOjE1ODU0MDc2NzB9.e2Vibv7V_fh3i5-NYYKW4ByWZgaiylYMq-we1T7Ie4E","type":"text"}],"url":"localhost:2019/owners/a008c094-61d5-4e7d-80f1-8a45db1dbfef"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Sat, 28 Mar 2020 15:02:28 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"timestamp\": \"2020-03-28T15:02:28.071+0000\",\n    \"status\": 404,\n    \"error\": \"Not Found\",\n    \"message\": \"Owner not found: a008c094-61d5-4e7d-80f1-8a45db1dbfef\",\n    \"path\": \"/owners/a008c094-61d5-4e7d-80f1-8a45db1dbfef\"\n}"}],"_postman_id":"f9f790e6-ea81-4fa0-bbca-8a0aba886507"}],"id":"6db783e7-2cdf-458f-82e0-a9bca1c4656a","_postman_id":"6db783e7-2cdf-458f-82e0-a9bca1c4656a","description":""},{"name":"redirect","id":"85cccc86-eb61-4cc3-8e5f-bd53268130cd","protocolProfileBehavior":{"disableBodyPruning":true,"followRedirects":false},"request":{"method":"GET","header":[],"url":"localhost:2019/r/lasjs","description":"<p>Redirect to the long url</p>\n","urlObject":{"path":["r","lasjs"],"host":["localhost:2019"],"query":[],"variable":[]}},"response":[{"id":"e4e1f185-976e-4fcd-bbb9-1d376257b4c9","name":"Success","originalRequest":{"method":"GET","header":[],"url":"localhost:2019/r/lasjs"},"status":"Found","code":302,"_postman_previewlanguage":"plain","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Location","value":"https://www.npmjs.com/package/las-js"},{"key":"Content-Language","value":"en-GB"},{"key":"Content-Length","value":"0"},{"key":"Date","value":"Sat, 28 Mar 2020 15:04:28 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":null},{"id":"f6d3436b-ad3f-4d9b-a24e-465a2cd2ecd7","name":"No Url found - redirect to sh.ikeze.dev/404","originalRequest":{"method":"GET","header":[],"url":"localhost:2019/r/lasjs"},"status":"Found","code":302,"_postman_previewlanguage":"plain","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Location","value":"http://localhost:4200"},{"key":"Content-Language","value":"en-GB"},{"key":"Content-Length","value":"0"},{"key":"Date","value":"Sat, 04 Apr 2020 10:56:18 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":null}],"_postman_id":"85cccc86-eb61-4cc3-8e5f-bd53268130cd"}],"event":[{"listen":"prerequest","script":{"id":"c2509520-734a-43aa-9809-8e94d42e2117","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"cdc43a9e-6883-4c2a-b14a-a391f0ef0ce5","type":"text/javascript","exec":[""]}}],"variable":[{"key":"baseUrl","value":"localhost:2019"}]}