{"info":{"_postman_id":"c86ea999-eb08-4a8b-b9b3-f4c76d816d26","name":"playground-api","description":"<html><head></head><body><p>This is the Playgroundtech Open API for creating job applications.<br>It supports a full \"CRUD\" API which gives the user the possibility to be creative while applying for a position at Playgroundtech, but at the same time, full control of their own data.<br>Playgroundtech is also supplying a terraform provider to use for creating a job application.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"13126653","collectionId":"c86ea999-eb08-4a8b-b9b3-f4c76d816d26","publishedId":"TzRUA6d5","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2021-05-11T19:16:04.000Z"},"item":[{"name":"Create User","id":"085e95ea-83b7-47eb-a220-230d9fb77b43","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"email\": \"martin@email.com\", \n    \"password\": \"password\"\n}","options":{"raw":{"language":"json"}}},"url":"https://jobapi.aws.playgroundtech.cloud/v1/users","description":"<p>Create a user.<br />Email needs to be unique.\nPassword need to be at least 6 characters.</p>\n","urlObject":{"path":["v1","users"],"host":["https://jobapi.aws.playgroundtech.cloud"],"query":[],"variable":[]}},"response":[{"id":"5707ac59-a2c6-480b-8811-336ca8ffaf14","name":"Create User","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"email\": \"email@email.com\", \n    \"password\": \"password\"\n}","options":{"raw":{"language":"json"}}},"url":"localhost:8888/api/v1/users"},"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"},{"key":"Access-Control-Allow-Methods","value":"POST, OPTIONS, GET, PUT, PATCH, DELETE"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Wed, 12 May 2021 12:16:38 GMT"},{"key":"Content-Length","value":"130"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 5,\n    \"email\": \"email@email.com\",\n    \"created_at\": \"2021-05-12T14:16:38.266589+02:00\",\n    \"updated_at\": \"2021-05-12T14:16:38.266589+02:00\"\n}"}],"_postman_id":"085e95ea-83b7-47eb-a220-230d9fb77b43"},{"name":"Login","id":"d4bb2927-31de-4453-87fc-dd323f0f4947","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"email\": \"email@email.com\", \n  \"password\": \"password\"\n}","options":{"raw":{"language":"json"}}},"url":"https://jobapi.aws.playgroundtech.cloud/v1/login","description":"<p>Used to log in a user.<br />Email and Password is required.</p>\n","urlObject":{"path":["v1","login"],"host":["https://jobapi.aws.playgroundtech.cloud"],"query":[],"variable":[]}},"response":[{"id":"b7325d32-316a-4544-883c-d7e949dd3971","name":"Login","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"email\": \"email@email.com\", \n  \"password\": \"password\"\n}","options":{"raw":{"language":"json"}}},"url":"localhost:8888/api/v1/login"},"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"},{"key":"Access-Control-Allow-Methods","value":"POST, OPTIONS, GET, PUT, PATCH, DELETE"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Tue, 11 May 2021 17:35:18 GMT"},{"key":"Content-Length","value":"161"}],"cookie":[],"responseTime":null,"body":"{\n    \"email\": \"email@email.com\",\n    \"id\": 1,\n    \"token\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdXRob3JpemVkIjp0cnVlLCJpZCI6MX0.CUlsaOqKpV5GqvYh-d7ra_nFEzPL6GDvIicwmhphiAc\"\n}"}],"_postman_id":"d4bb2927-31de-4453-87fc-dd323f0f4947"},{"name":"Get User","id":"21ec3565-3aa8-40ec-b5d4-1b3a52a7a156","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"https://jobapi.aws.playgroundtech.cloud/v1/users/:id","description":"<p>Get a specific user.<br />Authorization: Bearer token required.</p>\n","urlObject":{"path":["v1","users",":id"],"host":["https://jobapi.aws.playgroundtech.cloud"],"query":[],"variable":[{"type":"any","value":"3","key":"id"}]}},"response":[{"id":"f3204a09-cacc-44e6-bcf2-b2072e90785e","name":"Get User","originalRequest":{"method":"GET","header":[],"url":{"raw":"localhost:8888/api/v1/users/:id","host":["localhost:8888"],"path":["api","v1","users",":id"],"variable":[{"key":"id","value":"5"}]}},"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"},{"key":"Access-Control-Allow-Methods","value":"POST, OPTIONS, GET, PUT, PATCH, DELETE"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Wed, 12 May 2021 12:17:17 GMT"},{"key":"Content-Length","value":"130"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 5,\n    \"email\": \"email@email.com\",\n    \"created_at\": \"2021-05-12T14:16:38.266589+02:00\",\n    \"updated_at\": \"2021-05-12T14:16:38.266589+02:00\"\n}"}],"_postman_id":"21ec3565-3aa8-40ec-b5d4-1b3a52a7a156"},{"name":"Delete User&Application","id":"6625db1d-06fb-4668-9ffb-af94cc9331c2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"DELETE","header":[],"url":"https://jobapi.aws.playgroundtech.cloud/v1/users/:id","description":"<p>Deletes a user and eventual applications.<br />Authorization: Bearer token required.</p>\n","urlObject":{"path":["v1","users",":id"],"host":["https://jobapi.aws.playgroundtech.cloud"],"query":[],"variable":[{"type":"any","value":"1","key":"id"}]}},"response":[{"id":"14b9252a-8e43-4f0c-a1d0-9b74e1663a23","name":"Delete User&Application","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"localhost:8888/api/v1/users/:id","host":["localhost:8888"],"path":["api","v1","users",":id"],"variable":[{"key":"id","value":"3"}]}},"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"},{"key":"Access-Control-Allow-Methods","value":"POST, OPTIONS, GET, PUT, PATCH, DELETE"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Tue, 11 May 2021 19:12:43 GMT"},{"key":"Content-Length","value":"40"}],"cookie":[],"responseTime":null,"body":"{\n    \"response\": \"user deleted\",\n    \"status\": 200\n}"}],"_postman_id":"6625db1d-06fb-4668-9ffb-af94cc9331c2"},{"name":"Create Application","id":"2e069262-b2a1-4708-a747-e21db90bb4b9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"phone_number\": \"1234567\", \n    \"email\": \"email@email.com\", \n    \"linkedin\": \"linkedin.com\", \n    \"github\": \"github.com\", \n    \"homepage\": \"www.homepage.com\"\n}","options":{"raw":{"language":"json"}}},"url":"https://jobapi.aws.playgroundtech.cloud/v1/application","description":"<p>Creates a new application to playgroundtech.<br />Authorization: Bearer token required.</p>\n","urlObject":{"path":["v1","application"],"host":["https://jobapi.aws.playgroundtech.cloud"],"query":[],"variable":[]}},"response":[{"id":"17084ac7-d06a-4119-8894-d6ba93d3b593","name":"Create Application","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"phone_number\": \"1234567\", \n    \"email\": \"email@email.com\", \n    \"linkedin\": \"linkedin.com\", \n    \"github\": \"github.com\", \n    \"homepage\": \"www.homepage.com\"\n}","options":{"raw":{"language":"json"}}},"url":"localhost:8888/api/v1/application"},"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"},{"key":"Access-Control-Allow-Methods","value":"POST, OPTIONS, GET, PUT, PATCH, DELETE"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Wed, 12 May 2021 12:17:45 GMT"},{"key":"Content-Length","value":"256"}],"cookie":[],"responseTime":null,"body":"{\n    \"applicant_id\": 18,\n    \"user_id\": 5,\n    \"phone_number\": \"1234567\",\n    \"email\": \"email@email.com\",\n    \"linkedin\": \"linkedin.com\",\n    \"github\": \"github.com\",\n    \"homepage\": \"www.homepage.com\",\n    \"created_at\": \"2021-05-12T14:17:45.035652+02:00\",\n    \"updated_at\": \"2021-05-12T14:17:45.035652+02:00\"\n}"}],"_postman_id":"2e069262-b2a1-4708-a747-e21db90bb4b9"},{"name":"Get Application","id":"01e1726e-5816-409a-938b-4295b17ac2d4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"https://jobapi.aws.playgroundtech.cloud/v1/application/:id","description":"<p>Gets an application for playgroundtech.<br />Authorization: Bearer token required.</p>\n","urlObject":{"path":["v1","application",":id"],"host":["https://jobapi.aws.playgroundtech.cloud"],"query":[],"variable":[{"type":"any","value":"18","key":"id"}]}},"response":[{"id":"fcd10768-58cb-4039-9746-ff9c31957b07","name":"Get Application","originalRequest":{"method":"GET","header":[],"url":{"raw":"localhost:8888}/api/v1/application/:id","host":["localhost:8888}"],"path":["api","v1","application",":id"],"variable":[{"key":"id","value":"18"}]}},"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"},{"key":"Access-Control-Allow-Methods","value":"POST, OPTIONS, GET, PUT, PATCH, DELETE"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Wed, 12 May 2021 12:19:15 GMT"},{"key":"Content-Length","value":"256"}],"cookie":[],"responseTime":null,"body":"{\n    \"applicant_id\": 18,\n    \"user_id\": 5,\n    \"phone_number\": \"1234567\",\n    \"email\": \"email@email.com\",\n    \"linkedin\": \"linkedin.com\",\n    \"github\": \"github.com\",\n    \"homepage\": \"www.homepage.com\",\n    \"created_at\": \"2021-05-12T14:17:45.035652+02:00\",\n    \"updated_at\": \"2021-05-12T14:17:45.035652+02:00\"\n}"}],"_postman_id":"01e1726e-5816-409a-938b-4295b17ac2d4"},{"name":"Update Application","id":"20752944-fdb2-40f1-a0ca-7d8a258533f1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"phone_number\": \"12345\", \n    \"email\": \"email@email.com\", \n    \"linkedin\": \"linkedin.com\", \n    \"github\": \"github.com\", \n    \"homepage\": \"www.homepage.com\"\n}","options":{"raw":{"language":"json"}}},"url":"https://jobapi.aws.playgroundtech.cloud/v1/application/:id","description":"<p>Updates an application to playgroundtech.\nAuthorization: Bearer token required.</p>\n","urlObject":{"path":["v1","application",":id"],"host":["https://jobapi.aws.playgroundtech.cloud"],"query":[],"variable":[{"type":"any","value":"18","key":"id"}]}},"response":[{"id":"f18a2e2e-1216-4cb1-86bc-dbf1d2ff9141","name":"Update Application","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"phone_number\": \"12345\", \n    \"email\": \"email@email.com\", \n    \"linkedin\": \"linkedin.com\", \n    \"github\": \"github.com\", \n    \"homepage\": \"www.homepage.com\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"localhost:8888}/api/v1/application/:id","host":["localhost:8888}"],"path":["api","v1","application",":id"],"variable":[{"key":"id","value":"18"}]}},"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"},{"key":"Access-Control-Allow-Methods","value":"POST, OPTIONS, GET, PUT, PATCH, DELETE"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Wed, 12 May 2021 12:20:08 GMT"},{"key":"Content-Length","value":"230"}],"cookie":[],"responseTime":null,"body":"{\n    \"applicant_id\": 18,\n    \"user_id\": 5,\n    \"phone_number\": \"12345\",\n    \"email\": \"email@email.com\",\n    \"linkedin\": \"linkedin.com\",\n    \"github\": \"github.com\",\n    \"homepage\": \"www.homepage.com\",\n    \"created_at\": \"0001-01-01T00:00:00Z\",\n    \"updated_at\": \"0001-01-01T00:00:00Z\"\n}"}],"_postman_id":"20752944-fdb2-40f1-a0ca-7d8a258533f1"},{"name":"Delete Application","id":"f2803aa2-0f6e-4757-9e0e-90b6bee40e2a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"DELETE","header":[],"url":"https://jobapi.aws.playgroundtech.cloud/v1/application/:id","description":"<p>Deletes an application to playgroundtech.<br />Authorization: Bearer token required.</p>\n","urlObject":{"path":["v1","application",":id"],"host":["https://jobapi.aws.playgroundtech.cloud"],"query":[],"variable":[{"type":"any","value":"1","key":"id"}]}},"response":[{"id":"57aa8983-eb2a-4d77-8085-45fb28eb9e3d","name":"Delete Application","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"localhost:8888/api/v1/application/:id","host":["localhost:8888"],"path":["api","v1","application",":id"],"variable":[{"key":"id","value":"1"}]}},"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"},{"key":"Access-Control-Allow-Methods","value":"POST, OPTIONS, GET, PUT, PATCH, DELETE"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Tue, 11 May 2021 19:08:39 GMT"},{"key":"Content-Length","value":"35"}],"cookie":[],"responseTime":null,"body":"{\n    \"response\": \"deleted\",\n    \"status\": 200\n}"}],"_postman_id":"f2803aa2-0f6e-4757-9e0e-90b6bee40e2a"},{"name":"ping","id":"1d96a574-5200-4dfc-abf6-e0c6d9aa0226","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://jobapi.aws.playgroundtech.cloud/v1/ping","urlObject":{"path":["v1","ping"],"host":["https://jobapi.aws.playgroundtech.cloud"],"query":[],"variable":[]}},"response":[],"_postman_id":"1d96a574-5200-4dfc-abf6-e0c6d9aa0226"}],"event":[{"listen":"prerequest","script":{"id":"5f3695d6-9b62-4d90-8b9c-6e654b31e1c9","type":"text/javascript","requests":{},"exec":[""]}},{"listen":"test","script":{"id":"4eb2b19f-98c9-44b2-963f-b4073907be03","type":"text/javascript","requests":{},"exec":[""]}}],"variable":[{"key":"baseURL","value":"https://jobapi.aws.playgroundtech.cloud"},{"key":"exampleURL","value":"localhost:8888"}]}