{"info":{"_postman_id":"cc66adf7-069b-4984-aa24-df79897589c4","name":"Lobby REST API","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"7503489","collectionId":"cc66adf7-069b-4984-aa24-df79897589c4","publishedId":"SWLiamS7","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2020-01-13T20:23:27.000Z"},"item":[{"name":"ping","id":"a7f66931-44fc-41ec-83e2-32695361680a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"seq\": 123\n}"},"url":"http://localhost:9000/lobby_api/ping","urlObject":{"protocol":"http","port":"9000","path":["lobby_api","ping"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"79008e8c-b308-4707-b0d1-6684cb6d4f6c","name":"ping","originalRequest":{"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"seq\": 123\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:9000/lobby_api/ping"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"akka-http/10.1.11"},{"key":"Date","value":"Mon, 13 Jan 2020 20:26:59 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"28"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"pong\",\n    \"seq\": 123\n}"}],"_postman_id":"a7f66931-44fc-41ec-83e2-32695361680a"},{"name":"add table","id":"a41ccbd7-caea-4611-a3d3-8d6998d1ac82","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Basic YWRtaW46YWRtaW4=","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"after_id\": 1,\n    \"table\": {\n        \"id\": 3,\n        \"name\": \"table - Foo Fighters\",\n        \"participants\": 4\n    }\n}"},"url":"http://localhost:9000/lobby_api/tables","urlObject":{"protocol":"http","port":"9000","path":["lobby_api","tables"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"472c4c41-1208-48f9-856b-48df2441ef80","name":"add table","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Basic YWRtaW46YWRtaW4=","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"after_id\": 1,\n    \"table\": {\n        \"id\": 3,\n        \"name\": \"table - Foo Fighters\",\n        \"participants\": 4\n    }\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:9000/lobby_api/tables"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"akka-http/10.1.11"},{"key":"Date","value":"Mon, 13 Jan 2020 20:30:52 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"102"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"table_added\",\n    \"after_id\": 1,\n    \"table\": {\n        \"id\": 3,\n        \"name\": \"table - Foo Fighters\",\n        \"participants\": 4\n    }\n}"},{"id":"56590d5c-1e8d-4501-8f03-45c3e3b4a798","name":"add table error","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Basic YWRtaW46YWRtaW4=","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"after_id\": 1,\n    \"table\": {\n        \"id\": 3,\n        \"name\": \"table - Foo Fighters\",\n        \"participants\": 4\n    }\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:9000/lobby_api/tables"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"akka-http/10.1.11"},{"key":"Date","value":"Mon, 13 Jan 2020 20:31:59 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"65"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"adding_failed\",\n    \"id\": 3,\n    \"error\": \"table already exists\"\n}"}],"_postman_id":"a41ccbd7-caea-4611-a3d3-8d6998d1ac82"},{"name":"get tables","id":"05b60420-1dd2-49ef-83eb-23e50b43e667","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Basic YWRtaW46YWRtaW4=","type":"text"}],"url":"http://localhost:9000/lobby_api/tables","urlObject":{"protocol":"http","port":"9000","path":["lobby_api","tables"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"e106a75f-42bc-474d-9931-7939ea8144ed","name":"get tables","originalRequest":{"method":"GET","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Basic YWRtaW46YWRtaW4=","type":"text"}],"url":"http://localhost:9000/lobby_api/tables"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"akka-http/10.1.11"},{"key":"Date","value":"Mon, 13 Jan 2020 20:33:22 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"185"}],"cookie":[],"responseTime":null,"body":"{\n    \"tables\": [\n        {\n            \"id\": 3,\n            \"name\": \"table - Foo Fighters\",\n            \"participants\": 4\n        },\n        {\n            \"id\": 5,\n            \"name\": \"table - Foo Fighters 2\",\n            \"participants\": 7\n        },\n        {\n            \"id\": 7,\n            \"name\": \"table - Foo Fighters 3\",\n            \"participants\": 10\n        }\n    ]\n}"}],"_postman_id":"05b60420-1dd2-49ef-83eb-23e50b43e667"},{"name":"update table","id":"82acef45-e6d1-49bb-84a8-86d2f4abacae","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Basic YWRtaW46YWRtaW4=","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"table\": {\n        \"id\": 1,\n        \"name\": \"table - Foo Fighters\",\n        \"participants\": 4\n    }\n}"},"url":"http://localhost:9000/lobby_api/tables","urlObject":{"protocol":"http","port":"9000","path":["lobby_api","tables"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"1b723a62-1126-46d0-ac04-e2414b06efa2","name":"update table error","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Basic YWRtaW46YWRtaW4=","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"table\": {\n        \"id\": 1,\n        \"name\": \"table - Foo Fighters\",\n        \"participants\": 4\n    }\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:9000/lobby_api/tables"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"akka-http/10.1.11"},{"key":"Date","value":"Mon, 13 Jan 2020 20:35:10 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"65"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"update_failed\",\n    \"id\": 1,\n    \"error\": \"table does not exist\"\n}"},{"id":"2b678952-a477-4d2e-a8ff-50e41ff59180","name":"update table","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Basic YWRtaW46YWRtaW4=","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"table\": {\n        \"id\": 3,\n        \"name\": \"table - Foo Fighters\",\n        \"participants\": 4\n    }\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:9000/lobby_api/tables"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"akka-http/10.1.11"},{"key":"Date","value":"Mon, 13 Jan 2020 20:34:58 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"91"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"table_updated\",\n    \"table\": {\n        \"id\": 3,\n        \"name\": \"table - Foo Fighters\",\n        \"participants\": 4\n    }\n}"}],"_postman_id":"82acef45-e6d1-49bb-84a8-86d2f4abacae"},{"name":"remove table","id":"5097f7be-d01a-4a8c-94ec-bce8a5fb484d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Authorization","value":"Basic YWRtaW46YWRtaW4=","type":"text"}],"url":"http://localhost:9000/lobby_api/tables/3","urlObject":{"protocol":"http","port":"9000","path":["lobby_api","tables","3"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"2cae9c6a-40c2-4860-af8c-027d84586a25","name":"remove table error","originalRequest":{"method":"DELETE","header":[{"key":"Authorization","value":"Basic YWRtaW46YWRtaW4=","type":"text"}],"url":"http://localhost:9000/lobby_api/tables/3"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"akka-http/10.1.11"},{"key":"Date","value":"Mon, 13 Jan 2020 20:35:33 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"66"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"removal_failed\",\n    \"id\": 3,\n    \"error\": \"table does not exist\"\n}"},{"id":"90c0839d-f0f9-467b-8d89-2675cfbfaf04","name":"remove table","originalRequest":{"method":"DELETE","header":[{"key":"Authorization","value":"Basic YWRtaW46YWRtaW4=","type":"text"}],"url":"http://localhost:9000/lobby_api/tables/3"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"akka-http/10.1.11"},{"key":"Date","value":"Mon, 13 Jan 2020 20:35:25 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"34"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"table_removed\",\n    \"id\": 3\n}"}],"_postman_id":"5097f7be-d01a-4a8c-94ec-bce8a5fb484d"},{"name":"authentication","id":"c75c748b-9c70-40d4-bb53-ac663d85ff65","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:9000/lobby_api/auth","urlObject":{"protocol":"http","port":"9000","path":["lobby_api","auth"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"0fc04288-e247-492a-9f37-8018b345f30e","name":"authentication error","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Basic dXNlcjp1c2Vy","type":"text","disabled":true}],"url":"http://localhost:9000/lobby_api/auth"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"akka-http/10.1.11"},{"key":"Date","value":"Mon, 13 Jan 2020 20:43:22 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"35"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"authentication_failed\"\n}"},{"id":"4076d479-edac-42e0-91ad-f0f05c55e549","name":"authentication admin","originalRequest":{"method":"GET","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Basic YWRtaW46YWRtaW4=","type":"text"}],"url":"http://localhost:9000/lobby_api/auth"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"akka-http/10.1.11"},{"key":"Date","value":"Mon, 13 Jan 2020 20:35:58 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"59"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"authentication_successful\",\n    \"user_type\": \"admin\"\n}"},{"id":"658b05a7-3ed2-4c3e-ac0e-043b4bfd70e1","name":"authentication user","originalRequest":{"method":"GET","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Basic dXNlcjp1c2Vy","type":"text"}],"url":"http://localhost:9000/lobby_api/auth"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"akka-http/10.1.11"},{"key":"Date","value":"Mon, 13 Jan 2020 20:42:30 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"58"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"authentication_successful\",\n    \"user_type\": \"user\"\n}"}],"_postman_id":"c75c748b-9c70-40d4-bb53-ac663d85ff65"}],"event":[{"listen":"prerequest","script":{"id":"ddf252f0-bf83-4d40-b053-cd7a98cb2bf8","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"81bd4bf9-5100-48ab-8f47-e2af4815817b","type":"text/javascript","exec":[""]}}]}