{"info":{"_postman_id":"c3c87de8-aea8-4e4e-bf42-6023e8e54683","name":"Firebase Example Go API","description":"<html><head></head><body><p>An example GoApi using Firebase Auth.</p>\n<p><em>For demo purposes an additional Project interface has been included.</em></p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"5420516","collectionId":"c3c87de8-aea8-4e4e-bf42-6023e8e54683","publishedId":"UVkmQGdv","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2022-02-21T15:00:18.000Z"},"item":[{"name":"User","item":[{"name":"Sync/Create user","id":"2781c877-329e-4691-a7d1-cd406b6d67cc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":""},"url":"http://localhost:5001/api/v1/user/sync","description":"<p>The primary endpoint to verify your Auth token from Firebase and check the user is permitted to access our Go application.</p>\n<p>If the user is not permitted, we remove them from the Firebase auth system as a precaution.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"c3c87de8-aea8-4e4e-bf42-6023e8e54683","id":"c3c87de8-aea8-4e4e-bf42-6023e8e54683","name":"Firebase Example Go API","type":"collection"}},"urlObject":{"protocol":"http","port":"5001","path":["api","v1","user","sync"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"f7f7ff5d-17f8-46d9-b190-97df12d45b64","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer development","type":"text"}],"body":{"mode":"raw","raw":""},"url":"http://localhost:5001/api/v1/sync"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Allow-Headers","value":"Content-Type, Content-Length, Accept-Encoding, X-CSRF-Token, Authorization, accept, origin, Cache-Control, X-Requested-With, access-control-allow-origin, Access-Control-Allow-Origin, token, Token, app"},{"key":"Access-Control-Allow-Methods","value":"POST, OPTIONS, GET, PUT"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Wed, 02 Feb 2022 23:48:18 GMT"},{"key":"Content-Length","value":"929"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"\", // User already exists/User registered\n    \"user\": {\n        \"uuid\": \"development\",\n        \"first_name\": \"Dev\",\n        \"last_name\": \"User\",\n        \"email\": \"dev@reddico.co.uk\",\n        \"role\": 2,\n        \"createdAt\": null,\n        \"updatedAt\": null,\n        \"deletedAt\": null,\n        \"options\": null,\n        \"organization\": {\n            \"id\": 1,\n            \"name\": \"Reddico\",\n            \"slug\": \"reddico\",\n            \"apps\": [\n                {\n                    \"id\": 2,\n                    \"title\": \"Rank Tracker\",\n                    \"colour\": \"#67C23A\",\n                    \"url\": \"https://rankings.lacuna.tools\",\n                    \"short_desc\": \"Monitor your search performance and identify opportunities\",\n                    \"description\": \"\",\n                    \"image\": \"\",\n                    \"category\": \"seo\",\n                    \"key\": \"rt\"\n                },\n                {\n                    \"id\": 4,\n                    \"title\": \"Keyword Doctor\",\n                    \"colour\": \"#F56C6C\",\n                    \"url\": \"https://lacuna.reddico.io\",\n                    \"short_desc\": \"Perform detailed keyword research and discovery reports\",\n                    \"description\": \"\",\n                    \"image\": \"\",\n                    \"category\": \"seo\",\n                    \"key\": \"kd\"\n                }\n            ],\n            \"created\": null\n        }\n    }\n}"}],"_postman_id":"2781c877-329e-4691-a7d1-cd406b6d67cc"},{"name":"Create new user","id":"e2413e12-0605-43a1-a7d1-de69be7e763d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"first_name\": \"Peter\",\n  \"last_name\": \"Parker\",\n  \"email\": \"user@domain.com\"\n}"},"url":"http://localhost:5001/api/v1/user/create","description":"<p>Registers a new user. Admin only.</p>\n<p>Optionally pass \"role\".</p>\n<p>1 = admin</p>\n<p>2 = default</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"c3c87de8-aea8-4e4e-bf42-6023e8e54683","id":"c3c87de8-aea8-4e4e-bf42-6023e8e54683","name":"Firebase Example Go API","type":"collection"}},"urlObject":{"protocol":"http","port":"5001","path":["api","v1","user","create"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"54394062-98c3-4421-98ae-58cf56e77da0","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer development","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"first_name\": \"Peter\",\n  \"last_name\": \"Parker\",\n  \"email\": \"user@domain.com\"\n}"},"url":"http://localhost:5001/api/v1/user/create"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Allow-Headers","value":"Content-Type, Content-Length, Accept-Encoding, X-CSRF-Token, Authorization, accept, origin, Cache-Control, X-Requested-With, access-control-allow-origin, Access-Control-Allow-Origin, token, Token, app"},{"key":"Access-Control-Allow-Methods","value":"POST, OPTIONS, GET, PUT"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Mon, 21 Feb 2022 12:36:48 GMT"},{"key":"Content-Length","value":"53"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"User created\",\n    \"status\": \"OK\",\n    \"user_id\": 14\n}"},{"id":"02db0745-b09c-4871-8d71-b495feafa26c","name":"Email taken","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer development","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"first_name\": \"Peter\",\n  \"last_name\": \"Parker\",\n  \"email\": \"user@domain.com\"\n}"},"url":"http://localhost:5001/api/v1/user/create"},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Allow-Headers","value":"Content-Type, Content-Length, Accept-Encoding, X-CSRF-Token, Authorization, accept, origin, Cache-Control, X-Requested-With, access-control-allow-origin, Access-Control-Allow-Origin, token, Token, app"},{"key":"Access-Control-Allow-Methods","value":"POST, OPTIONS, GET, PUT"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Mon, 21 Feb 2022 14:23:12 GMT"},{"key":"Content-Length","value":"81"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": \"email already in use\",\n    \"message\": \"Something went wrong registering user\"\n}"}],"_postman_id":"e2413e12-0605-43a1-a7d1-de69be7e763d"},{"name":"List users","id":"46ab93ba-99f8-4e33-8231-fd091945374b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":""},"url":"http://localhost:5001/api/v1/user/list","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"c3c87de8-aea8-4e4e-bf42-6023e8e54683","id":"c3c87de8-aea8-4e4e-bf42-6023e8e54683","name":"Firebase Example Go API","type":"collection"}},"urlObject":{"protocol":"http","port":"5001","path":["api","v1","user","list"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"75e649b7-38df-484c-a39d-a7282f33aa0c","name":"Success","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer development","type":"text"}],"body":{"mode":"raw","raw":""},"url":"http://localhost:5001/api/v1/user/list"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Allow-Headers","value":"Content-Type, Content-Length, Accept-Encoding, X-CSRF-Token, Authorization, accept, origin, Cache-Control, X-Requested-With, access-control-allow-origin, Access-Control-Allow-Origin, token, Token, app"},{"key":"Access-Control-Allow-Methods","value":"POST, OPTIONS, GET, PUT"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Mon, 21 Feb 2022 14:25:38 GMT"},{"key":"Content-Length","value":"919"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"OK\",\n    \"users\": [\n        {\n            \"id\": 14,\n            \"role\": 2,\n            \"uuid\": \"\",\n            \"Title\": \"\",\n            \"first_name\": \"Roger\",\n            \"last_name\": \"Rabbit\",\n            \"email\": \"roger@example.comx\",\n            \"picture\": \"\",\n            \"created_at\": 0,\n            \"updated_at\": 0,\n            \"deleted_at\": 0\n        },\n        {\n            \"id\": 4,\n            \"role\": 1,\n            \"uuid\": \"development\",\n            \"Title\": \"\",\n            \"first_name\": \"ReddicoDev\",\n            \"last_name\": \"API\",\n            \"email\": \"dev@reddico.co.uk\",\n            \"picture\": \"\",\n            \"created_at\": 0,\n            \"updated_at\": 0,\n            \"deleted_at\": 0\n        },\n        {\n            \"id\": 15,\n            \"role\": 2,\n            \"uuid\": \"\",\n            \"Title\": \"\",\n            \"first_name\": \"Peter\",\n            \"last_name\": \"Parker\",\n            \"email\": \"user@domain.com\",\n            \"picture\": \"\",\n            \"created_at\": 0,\n            \"updated_at\": 0,\n            \"deleted_at\": 0\n        },\n        {\n            \"id\": 10,\n            \"role\": 1,\n            \"uuid\": \"\",\n            \"Title\": \"\",\n            \"first_name\": \"Jackoo\",\n            \"last_name\": \"Callllooo\",\n            \"email\": \"sjmc11@gmail.com\",\n            \"picture\": \"\",\n            \"created_at\": 0,\n            \"updated_at\": 0,\n            \"deleted_at\": 0\n        },\n        {\n            \"id\": 5,\n            \"role\": 2,\n            \"uuid\": \"YgfSqhSXJnZfYKMIdEkxtAhpgvi2\",\n            \"Title\": \"\",\n            \"first_name\": \"ReddicoDev\",\n            \"last_name\": \"API\",\n            \"email\": \"jack.callow@reddico.co.uk\",\n            \"picture\": \"\",\n            \"created_at\": 0,\n            \"updated_at\": 0,\n            \"deleted_at\": 0\n        }\n    ]\n}"}],"_postman_id":"46ab93ba-99f8-4e33-8231-fd091945374b"},{"name":"Update user profile","id":"b2623ef8-9b84-454b-8a88-3c91d5c96fbd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"first_name\": \"Sarah\",\n  \"last_name\": \"Jane\"\n}"},"url":"http://localhost:5001/api/v1/user/update","description":"<p>Supports title, first_name, last_name &amp; role.</p>\n<p>Optionally pass \"user_id\" to modify another users data.</p>\n<p>Only admins can modify other users information.</p>\n<p>Cannot modify an email address.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"c3c87de8-aea8-4e4e-bf42-6023e8e54683","id":"c3c87de8-aea8-4e4e-bf42-6023e8e54683","name":"Firebase Example Go API","type":"collection"}},"urlObject":{"protocol":"http","port":"5001","path":["api","v1","user","update"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"967e1bfe-ff3d-413f-bd7b-5953e7ec0fde","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer development","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"user_id\": 4,\n  \"first_name\": \"ReddicoDev\",\n  \"last_name\": \"API\"\n}"},"url":"http://localhost:5001/api/v1/user/update"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Allow-Headers","value":"Content-Type, Content-Length, Accept-Encoding, X-CSRF-Token, Authorization, accept, origin, Cache-Control, X-Requested-With, access-control-allow-origin, Access-Control-Allow-Origin, token, Token, app"},{"key":"Access-Control-Allow-Methods","value":"POST, OPTIONS, GET, PUT"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Mon, 21 Feb 2022 12:37:45 GMT"},{"key":"Content-Length","value":"52"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"User information updated\",\n    \"status\": \"OK\"\n}"},{"id":"760ac6f8-68cd-4c86-a80a-7b61073e16a5","name":"Update own profile","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"first_name\": \"ReddicoDev\",\n  \"last_name\": \"API\"\n}"},"url":"http://localhost:5001/api/v1/user/update"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Allow-Headers","value":"Content-Type, Content-Length, Accept-Encoding, X-CSRF-Token, Authorization, accept, origin, Cache-Control, X-Requested-With, access-control-allow-origin, Access-Control-Allow-Origin, token, Token, app"},{"key":"Access-Control-Allow-Methods","value":"POST, OPTIONS, GET, PUT"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Mon, 21 Feb 2022 15:05:48 GMT"},{"key":"Content-Length","value":"52"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"User information updated\",\n    \"status\": \"OK\"\n}"}],"_postman_id":"b2623ef8-9b84-454b-8a88-3c91d5c96fbd"},{"name":"Disable user account","id":"697fa27e-f2d5-4e4b-b86e-1cbd61436dff","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"user_id\": 23\n}"},"url":"http://localhost:5001/api/v1/user/disable","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"c3c87de8-aea8-4e4e-bf42-6023e8e54683","id":"c3c87de8-aea8-4e4e-bf42-6023e8e54683","name":"Firebase Example Go API","type":"collection"}},"urlObject":{"protocol":"http","port":"5001","path":["api","v1","user","disable"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"1e9a1009-ffec-4015-b6d6-c0c7e872e992","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer development","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"user_id\": 10\n}"},"url":"http://localhost:5001/api/v1/user/disable"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Allow-Headers","value":"Content-Type, Content-Length, Accept-Encoding, X-CSRF-Token, Authorization, accept, origin, Cache-Control, X-Requested-With, access-control-allow-origin, Access-Control-Allow-Origin, token, Token, app"},{"key":"Access-Control-Allow-Methods","value":"POST, OPTIONS, GET, PUT"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Mon, 21 Feb 2022 14:24:01 GMT"},{"key":"Content-Length","value":"240"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"User account disabled\",\n    \"user\": {\n        \"id\": 10,\n        \"role\": 1,\n        \"uuid\": \"\",\n        \"Title\": \"\",\n        \"first_name\": \"Peter\",\n        \"last_name\": \"Parker\",\n        \"email\": \"user@example.com\",\n        \"picture\": \"\",\n        \"created_at\": 1645444234,\n        \"updated_at\": 1645453286,\n        \"deleted_at\": 1645453441\n    }\n}"}],"_postman_id":"697fa27e-f2d5-4e4b-b86e-1cbd61436dff"},{"name":"Re-enable user account","id":"f5973916-38ed-4eb7-bc43-c00ad2c74d8f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"user_id\": 10\n}"},"url":"http://localhost:5001/api/v1/user/enable","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"c3c87de8-aea8-4e4e-bf42-6023e8e54683","id":"c3c87de8-aea8-4e4e-bf42-6023e8e54683","name":"Firebase Example Go API","type":"collection"}},"urlObject":{"protocol":"http","port":"5001","path":["api","v1","user","enable"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"619e5dd7-3f3e-4cdf-85d2-082c8b8d7637","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer development","type":"text"},{"key":"app","value":"sso","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"user_id\": 10\n}"},"url":"http://localhost:5001/api/v1/user/enable"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Allow-Headers","value":"Content-Type, Content-Length, Accept-Encoding, X-CSRF-Token, Authorization, accept, origin, Cache-Control, X-Requested-With, access-control-allow-origin, Access-Control-Allow-Origin, token, Token, app"},{"key":"Access-Control-Allow-Methods","value":"POST, OPTIONS, GET, PUT"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Mon, 21 Feb 2022 14:24:14 GMT"},{"key":"Content-Length","value":"239"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"User account enabled\",\n    \"user\": {\n        \"id\": 10,\n        \"role\": 1,\n        \"uuid\": \"\",\n        \"Title\": \"\",\n        \"first_name\": \"Peter\",\n        \"last_name\": \"Parker\",\n        \"email\": \"user@example.com\",\n        \"picture\": \"\",\n        \"created_at\": 1645444234,\n        \"updated_at\": 1645453441,\n        \"deleted_at\": 1645453441\n    }\n}"}],"_postman_id":"f5973916-38ed-4eb7-bc43-c00ad2c74d8f"}],"id":"7793b9f6-1201-4f92-8c00-1f83585181d3","description":"<p>The user endpoints provide the basic functionality to verify and interact with the Firebase Example Go App.</p>\n","_postman_id":"7793b9f6-1201-4f92-8c00-1f83585181d3","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"c3c87de8-aea8-4e4e-bf42-6023e8e54683","id":"c3c87de8-aea8-4e4e-bf42-6023e8e54683","name":"Firebase Example Go API","type":"collection"}}},{"name":"Project","item":[{"name":"Create project","id":"950cb8cb-c2e8-4378-9b5f-9c9523eeb879","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer development","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"title\": \"My project created through the API\"\n}"},"url":"http://localhost:5001/api/v1/projects/create","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"c3c87de8-aea8-4e4e-bf42-6023e8e54683","id":"c3c87de8-aea8-4e4e-bf42-6023e8e54683","name":"Firebase Example Go API","type":"collection"}},"urlObject":{"protocol":"http","port":"5001","path":["api","v1","projects","create"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"192c4ab3-cb9f-4e01-8212-cf92b83cbc2c","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer development","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"title\": \"My project created through the API\"\n}"},"url":"http://localhost:5001/api/v1/projects/create"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Allow-Headers","value":"Content-Type, Content-Length, Accept-Encoding, X-CSRF-Token, Authorization, accept, origin, Cache-Control, X-Requested-With, access-control-allow-origin, Access-Control-Allow-Origin, token, Token, app"},{"key":"Access-Control-Allow-Methods","value":"POST, OPTIONS, GET, PUT"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Mon, 21 Feb 2022 14:37:39 GMT"},{"key":"Content-Length","value":"43"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Project created\",\n    \"status\": \"OK\"\n}"}],"_postman_id":"950cb8cb-c2e8-4378-9b5f-9c9523eeb879"},{"name":"List projects","id":"9f36c2ed-7d2c-4e7e-8436-9ac6d6d94671","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer development","type":"text"}],"url":"http://localhost:5001/api/v1/projects/list","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"c3c87de8-aea8-4e4e-bf42-6023e8e54683","id":"c3c87de8-aea8-4e4e-bf42-6023e8e54683","name":"Firebase Example Go API","type":"collection"}},"urlObject":{"protocol":"http","port":"5001","path":["api","v1","projects","list"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"1dd66414-d1eb-41f5-827b-77d31cb985fa","name":"Success","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer development","type":"text"}],"url":"http://localhost:5001/api/v1/projects/list"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Allow-Headers","value":"Content-Type, Content-Length, Accept-Encoding, X-CSRF-Token, Authorization, accept, origin, Cache-Control, X-Requested-With, access-control-allow-origin, Access-Control-Allow-Origin, token, Token, app"},{"key":"Access-Control-Allow-Methods","value":"POST, OPTIONS, GET, PUT"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Mon, 21 Feb 2022 14:48:27 GMT"},{"key":"Content-Length","value":"162"}],"cookie":[],"responseTime":null,"body":"{\n    \"projects\": [\n        {\n            \"id\": 7,\n            \"title\": \"My project created through the API\",\n            \"slug\": \"my-project-created-through-the-api\",\n            \"created\": 1645454336,\n            \"created_by\": 4\n        }\n    ],\n    \"status\": \"OK\"\n}"}],"_postman_id":"9f36c2ed-7d2c-4e7e-8436-9ac6d6d94671"},{"name":"Delete project","id":"a528c4f6-e355-4d10-a774-71634dd07489","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer development","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"project_id\": 10\n}"},"url":"http://localhost:5001/api/v1/projects/delete","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"c3c87de8-aea8-4e4e-bf42-6023e8e54683","id":"c3c87de8-aea8-4e4e-bf42-6023e8e54683","name":"Firebase Example Go API","type":"collection"}},"urlObject":{"protocol":"http","port":"5001","path":["api","v1","projects","delete"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"0230a22d-de95-42b5-9f14-ceae9d92a85e","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer development","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"project_id\": 8\n}"},"url":"http://localhost:5001/api/v1/projects/delete"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Allow-Headers","value":"Content-Type, Content-Length, Accept-Encoding, X-CSRF-Token, Authorization, accept, origin, Cache-Control, X-Requested-With, access-control-allow-origin, Access-Control-Allow-Origin, token, Token, app"},{"key":"Access-Control-Allow-Methods","value":"POST, OPTIONS, GET, PUT"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Mon, 21 Feb 2022 14:55:14 GMT"},{"key":"Content-Length","value":"28"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"Project deleted\"\n}"}],"_postman_id":"a528c4f6-e355-4d10-a774-71634dd07489"}],"id":"136917ab-8218-435a-b18d-0832379be29b","description":"<p>Projects are an example of additional functionality that can be added to the Firebase Example Go App.</p>\n","_postman_id":"136917ab-8218-435a-b18d-0832379be29b","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"c3c87de8-aea8-4e4e-bf42-6023e8e54683","id":"c3c87de8-aea8-4e4e-bf42-6023e8e54683","name":"Firebase Example Go API","type":"collection"}}}],"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]}},"event":[{"listen":"prerequest","script":{"id":"cdb66bf8-8f76-44ba-9034-71f23d10441a","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"53c75384-2d5f-46a5-b9dc-fbc04a739d0f","type":"text/javascript","exec":[""]}}]}