{"info":{"_postman_id":"5d09e438-2616-4597-abb2-dbdd32403f30","name":"Living Lab Maps Api","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"25619963","collectionId":"5d09e438-2616-4597-abb2-dbdd32403f30","publishedId":"2s93mBwJbH","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2023-06-01T09:08:46.000Z"},"item":[{"name":"Get Local Nearby","id":"43a7b539-47c1-4d59-a218-6407d0e50bfe","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"radius1\":0,\r\n    \"radius2\":750,\r\n    \"center_lat\": 51.50853,\r\n    \"center_lon\":-0.12574,\r\n    \"query_string\": \"school\",\r\n    \"data_type\": \"scraped\",\r\n    \"api_key\":\"api_key\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://100086.pythonanywhere.com/accounts/get-local-nearby/","description":"<h1 id=\"get-nearby-locations\">Get Nearby Locations</h1>\n<p>It takes two radii between which locations associated with the query string are returned from the mid point passed as center latitude and longitude. This uses the haversine distance between the center and each of the locations to decide if any of the locations is in the required range.</p>\n","urlObject":{"protocol":"https","path":["accounts","get-local-nearby",""],"host":["100086","pythonanywhere","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"43a7b539-47c1-4d59-a218-6407d0e50bfe"},{"name":"Get Places Detail","id":"7c8f2f48-0728-4e9c-bca6-b52dcf7540eb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n     \"place_id_list\": [\r\n        \"ChIJm3x5cdMEdkgRVY_WzPEVcjA\",\r\n        \"ChIJtVFJ6soEdkgRFa3NDt6VCiE\",\r\n        \"ChIJ76tTBLkFdkgRf2XouprHvFs\",\r\n        \"ChIJJ9uyQrUEdkgRIYLdVZlrflM\",\r\n        \"ChIJLyGO8TQFdkgRPIGHTCfbn4Y\",\r\n        \"ChIJMVEJicAFdkgRYgTnvQ2dvCw\",\r\n        \"ChIJd4G7ZskEdkgRtcOEZ3egub8\",\r\n        \"ChIJ__bF1nAFdkgR2sq3U_Sbbhs\",\r\n        \"ChIJXwlqGdEEdkgRJExl2IE2Kpw\",\r\n        \"ChIJ7elx8swEdkgRRxhEjmqMnfQ\",\r\n        \"ChIJU58L08MFdkgRGZDtNcjtnGQ\",\r\n        \"ChIJVVVpF7UEdkgRmg4nTAy4kMU\",\r\n        \"ChIJqWhbq8wEdkgRf5utNLBwlCE\",\r\n        \"ChIJwebhG9EEdkgRaRxoPjHeL-s\",\r\n        \"ChIJi-bvLL4EdkgRbn3q2KFRUbg\",\r\n        \"ChIJ7eA75soEdkgRTxT1NuEd8dI\",\r\n        \"ChIJ0WOLAavziGoRpY0Tq-SyUEI\",\r\n        \"ChIJl-7I58wEdkgR7nTExpLqRqM\",\r\n        \"ChIJYXBKtOfleUgRDNRTa-yTFpQ\",\r\n        \"ChIJaxIV88wEdkgRUe5-BBCRzr8\",\r\n        \"ChIJ3fiby80EdkgRt9ppEBur39c\",\r\n        \"ChIJSWC369sEdkgR4mNvwIj7wyk\",\r\n        \"ChIJsS1T8dEEdkgR6JlJRB9r_rY\",\r\n        \"ChIJTx7wu_wFdkgRl2CBxD_g5Mc\",\r\n        \"ChIJQSatxssEdkgRIxnUFdRRLas\",\r\n        \"ChIJj41Ng9MEdkgRmtC5YiBVwEc\",\r\n        \"ChIJZwjEZdMEdkgRHj2JX5jX22U\",\r\n        \"ChIJ5QW4UTUbdkgRrULKhGG-yNs\",\r\n        \"ChIJWwWza3sadkgR77gsD5ccs70\",\r\n        \"ChIJD2v1QcMEdkgRsy2eQrynnnw\",\r\n        \"ChIJnwlGe7kEdkgRciRpgjKbFUw\",\r\n        \"ChIJ_fGDa7cEdkgR8-FyVhfW8DU\",\r\n        \"ChIJ503ILl0FdkgRiuFeEf32_DE\",\r\n        \"ChIJSzfGYrUEdkgRn6RLooFFvLY\",\r\n        \"ChIJMWNS_i8FdkgR6aBSCEPaBkg\",\r\n        \"ChIJq0Z9Ya8FdkgRijI-BdxoYoU\",\r\n        \"ChIJIf3Z8dwEdkgRNF-VD_SSmG0\",\r\n        \"ChIJcYCTd8AbdkgRlrXxEuidFbQ\",\r\n        \"ChIJ7Wg_vCobdkgRqpt26lsgekE\",\r\n        \"ChIJUY0sLyobdkgR54g3vbO20L0\",\r\n        \"ChIJnf_1iNEEdkgREcr1vBbGuyw\",\r\n        \"ChIJAwuPP98EdkgRFBjEc7FGruk\",\r\n        \"ChIJ7wjRN70EdkgRRTSvc19Vmlo\",\r\n        \"ChIJ3zpLIUkbdkgRofiRnnrWAk0\",\r\n        \"ChIJES2xk80EdkgR1I457VyJsa8\",\r\n        \"ChIJgxY21z9hd0gRcMHzLeHjfgk\",\r\n        \"ChIJn3V6WNIadkgR2b_QadKkyzw\",\r\n        \"ChIJGwJQA0wbdkgR2qg25Tj8A84\",\r\n        \"ChIJ7f5kmtYadkgRscv0Ep0ucLk\",\r\n        \"ChIJ5z9bpUsbdkgRwMmFnuZtK8Y\",\r\n        \"ChIJNdmqIL4EdkgRmVJ4q-CMwso\",\r\n        \"ChIJq2IOrtEEdkgRramcwijBjF8\",\r\n        \"ChIJRxFk4N0EdkgRysuyEyMtL-U\",\r\n        \"ChIJUxCxlUkbdkgREbsAK26tyMI\",\r\n        \"ChIJjy20yOcEdkgRDG81NJIiHVQ\",\r\n        \"ChIJGwVKnywFdkgRzDQtUekOBMQ\",\r\n        \"ChIJMdy8jb8EdkgR4NwSNh9PWcA\",\r\n        \"ChIJY2ue6aQEdkgRu7jDM_7uoMM\",\r\n        \"ChIJ_eQmTS8FdkgRd4Xtc8icnE4\",\r\n        \"ChIJU1-x2tUadkgRWFFxUFz7qGA\"\r\n    ],\r\n    \"center_loc\": \"\",\r\n    \"api_key\":\"api_key\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://100086.pythonanywhere.com/accounts/get-details-list-stage1/","description":"<h1 id=\"get-place-details\">Get Place Details</h1>\n<p>This uses a google API to get more detail about the places given the place ids of those places. The response gives data about the locations saved during the registration of those places to google.</p>\n","urlObject":{"protocol":"https","path":["accounts","get-details-list-stage1",""],"host":["100086","pythonanywhere","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"7c8f2f48-0728-4e9c-bca6-b52dcf7540eb"},{"name":"Save Details","id":"a3db928a-fa12-435d-bebe-3471c2663089","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"api_key\":\"api_key\",\r\n\"result_dict\":{\r\n    \"succesful_results\": [\r\n        {\r\n            \"place_id\": \"ChIJj3S0t1IbLxgRYgL-7uH0NIo\",\r\n            \"place_name\": \"Whitefield Restaurant\",\r\n            \"category\": [\r\n                \"restaurant\",\r\n                \"food\",\r\n                \"point_of_interest\",\r\n                \"establishment\"\r\n            ],\r\n            \"address\": \"kingara Road, opp kingara close behind Junction Mall, Nairobi, Kenya\",\r\n            \"location_coord\": \"-1.2960063 , 36.7616708\",\r\n            \"day_hours\": [\r\n                \"Monday: 11:00 AM – 9:00 PM\",\r\n                \"Tuesday: 11:00 AM – 9:00 PM\",\r\n                \"Wednesday: 11:00 AM – 9:00 PM\",\r\n                \"Thursday: 11:00 AM – 9:00 PM\",\r\n                \"Friday: 11:00 AM – 9:00 PM\",\r\n                \"Saturday: 11:00 AM – 9:00 PM\",\r\n                \"Sunday: 11:00 AM – 9:00 PM\"\r\n            ],\r\n            \"phone\": \"+254 742 894700\",\r\n            \"website\": \"https://whitefieldrestaurant.reserveport.com/\",\r\n            \"type_of_data\": \"scraped\",\r\n            \"is_test_data\": true,\r\n            \"eventId\": [\r\n                \"FB1010000000000000000000003004\"\r\n            ],\r\n            \"error\": false\r\n        },\r\n        {\r\n            \"place_id\": \"ChIJrTLr-GyuEmsRBfy61i59si0\",\r\n            \"place_name\": \"Australian Cruise Group\",\r\n            \"category\": [\r\n                \"travel_agency\",\r\n                \"restaurant\",\r\n                \"food\",\r\n                \"point_of_interest\",\r\n                \"establishment\"\r\n            ],\r\n            \"address\": \"32 The Promenade, 5 King St, Sydney NSW 2000, Australia\",\r\n            \"location_coord\": \"-33.8676569 , 151.2017213\",\r\n            \"day_hours\": \"None\",\r\n            \"phone\": \"+61 2 8296 7351\",\r\n            \"website\": \"https://www.australiancruisegroup.com.au/\",\r\n            \"type_of_data\": \"scraped\",\r\n            \"is_test_data\": true,\r\n            \"eventId\": [\r\n                \"FB1010000000000000000000003004\"\r\n            ],\r\n            \"error\": false\r\n        },\r\n        {\r\n            \"place_id\": \"ChIJA5TnPS3nGBURRqRffftcUrk\",\r\n            \"place_name\": \"Dar Al-Hikmah School\",\r\n            \"category\": [\r\n                \"school\",\r\n                \"point_of_interest\",\r\n                \"establishment\"\r\n            ],\r\n            \"address\": \"Dar Alhikma School, Damascus, Syria\",\r\n            \"location_coord\": \"33.5098448 , 36.2973479\",\r\n            \"day_hours\": \"None\",\r\n            \"phone\": \"+963 11 225 9477\",\r\n            \"website\": \"None\",\r\n            \"type_of_data\": \"scraped\",\r\n            \"is_test_data\": true,\r\n            \"eventId\": [\r\n                \"FB1010000000000000000000003004\"\r\n            ],\r\n            \"error\": false\r\n        },\r\n        {\r\n            \"place_id\": \"ChIJgUbEo8cfqokR5lP9_Wh_DaM\",\r\n            \"place_name\": \"13 Market St\",\r\n            \"category\": [\r\n                \"street_address\"\r\n            ],\r\n            \"address\": \"13 Market St, Wilmington, NC 28401, USA\",\r\n            \"location_coord\": \"34.23544330000001 , -77.94935509999999\",\r\n            \"day_hours\": \"None\",\r\n            \"phone\": \"None\",\r\n            \"website\": \"None\",\r\n            \"type_of_data\": \"scraped\",\r\n            \"is_test_data\": true,\r\n            \"eventId\": [\r\n                \"FB1010000000000000000000003004\"\r\n            ],\r\n            \"error\": false\r\n        },\r\n        {\r\n            \"place_id\": \"GhIJQWDl0CIeQUARxks3icF8U8A\",\r\n            \"place_name\": \"63P2+57 Wilmington\",\r\n            \"category\": [\r\n                \"plus_code\"\r\n            ],\r\n            \"address\": \"63P2+57 Wilmington, NC, USA\",\r\n            \"location_coord\": \"34.2354375 , -77.94931249999999\",\r\n            \"day_hours\": \"None\",\r\n            \"phone\": \"None\",\r\n            \"website\": \"None\",\r\n            \"type_of_data\": \"scraped\",\r\n            \"is_test_data\": true,\r\n            \"eventId\": [\r\n                \"FB1010000000000000000000003004\"\r\n            ],\r\n            \"error\": false\r\n        },\r\n        {\r\n            \"place_id\": \"ChIJgUbEo8cfqokR5lP9_Wh_DaM\",\r\n            \"place_name\": \"13 Market St\",\r\n            \"category\": [\r\n                \"street_address\"\r\n            ],\r\n            \"address\": \"13 Market St, Wilmington, NC 28401, USA\",\r\n            \"location_coord\": \"34.23544330000001 , -77.94935509999999\",\r\n            \"day_hours\": \"None\",\r\n            \"phone\": \"None\",\r\n            \"website\": \"None\",\r\n            \"type_of_data\": \"scraped\",\r\n            \"is_test_data\": true,\r\n            \"eventId\": [\r\n                \"FB1010000000000000000000003004\"\r\n            ],\r\n            \"error\": false\r\n        }\r\n    ],\r\n    \"failed_results\": [\r\n        {\r\n            \"place_id\": \"EicxMyBNYXJrZXQgU3QsIFdpbG1pbmd0b24sIE5DIDI4NDAxLCBVU0EiGhIYChQKEgnRTo6ixx-qiRHo_bbmkCm7ZRAN\",\r\n            \"place_name\": \"None\",\r\n            \"category\": \"None\",\r\n            \"address\": \"None\",\r\n            \"location_coord\": \"None , None\",\r\n            \"day_hours\": \"None\",\r\n            \"phone\": \"None\",\r\n            \"website\": \"None\",\r\n            \"type_of_data\": \"scraped\",\r\n            \"is_test_data\": true,\r\n            \"eventId\": [\r\n                \"FB1010000000000000000000003004\"\r\n            ],\r\n            \"error\": true\r\n        },\r\n        {\r\n            \"place_id\": \"IhoSGAoUChIJ0U6OoscfqokR6P225pApu2UQDQ\",\r\n            \"place_name\": \"None\",\r\n            \"category\": \"None\",\r\n            \"address\": \"None\",\r\n            \"location_coord\": \"None , None\",\r\n            \"day_hours\": \"None\",\r\n            \"phone\": \"None\",\r\n            \"website\": \"None\",\r\n            \"type_of_data\": \"scraped\",\r\n            \"is_test_data\": true,\r\n            \"eventId\": [\r\n                \"FB1010000000000000000000003004\"\r\n            ],\r\n            \"error\": true\r\n        }\r\n    ]\r\n}\r\n}","options":{"raw":{"language":"json"}}},"url":"https://100086.pythonanywhere.com/accounts/save-places-detail/","description":"<h1 id=\"saving-details\">Saving Details</h1>\n<p>This helps to save the place details to the Dowell database.</p>\n","urlObject":{"protocol":"https","path":["accounts","save-places-detail",""],"host":["100086","pythonanywhere","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"a3db928a-fa12-435d-bebe-3471c2663089"},{"name":"Verify Places Id","id":"4dd33cc2-80a2-485d-a299-6aba697adb90","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"place_id_list\":[\r\n        \"ChIJj3S0t1IbLxgRYgL-7uH0NIo\",\r\n        \"ChIJrTLr-GyuEmsRBfy61i59si0\",\r\n        \"ChIJA5TnPS3nGBURRqRffftcUrk\",\r\n        \"ChIJgUbEo8cfqokR5lP9_Wh_DaM\",\r\n        \"GhIJQWDl0CIeQUARxks3icF8U8A\",\r\n        \"EicxMyBNYXJrZXQgU3QsIFdpbG1pbmd0b24sIE5DIDI4NDAxLCBVU0EiGhIYChQKEgnRTo6ixx-qiRHo_bbmkCm7ZRAN\",\r\n        \"EicxMyBNYXJrZXQgU3QsIFdpbG1pbmd0b24sIE5DIDI4NDAxLCBVU0E\",\r\n        \"IhoSGAoUChIJ0U6OoscfqokR6P225pApu2UQDQ\"\r\n    ],\r\n    \"api_key\":\"api_key\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://100086.pythonanywhere.com/accounts/verify-place-ids/","description":"<h1 id=\"verify-places-id\">Verify Places Id</h1>\n<p>This API is meant to prevent duplication of data collected about the places. It checks if the sent place ids have been queried before and stored.</p>\n<p>It returns a list of the ones that are new.</p>\n","urlObject":{"protocol":"https","path":["accounts","verify-place-ids",""],"host":["100086","pythonanywhere","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"4dd33cc2-80a2-485d-a299-6aba697adb90"},{"name":"Get Categories","id":"8ff258e9-45ed-4843-8e79-e06bd0a3c4c4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://100086.pythonanywhere.com/accounts/get-categories/?api_key={api_key}","urlObject":{"protocol":"https","path":["accounts","get-categories",""],"host":["100086","pythonanywhere","com"],"query":[{"key":"api_key","value":"{api_key}"}],"variable":[]}},"response":[],"_postman_id":"8ff258e9-45ed-4843-8e79-e06bd0a3c4c4"},{"name":"Create Workspace","id":"ebc089e2-91fa-44e5-bdc8-9e76399d0534","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"username\":\"ericmbuthia11\",\r\n    \"workspace_id\":\"9000\",\r\n    \"payment\":false,\r\n    \"user_list\": [\"user_1\", \"user_2\"],\r\n    \"team_list\": [\"team_1\",\"team_2\"],\r\n    \"teams\": {\r\n        \"team_1\":[\"user_1\",\"user_2\"],\r\n        \"team_2\":[\"user_1\",\"user_2\"]\r\n    },\r\n    \"teams_version_2\":[ {\"team_name\":\"team_1\",\"user_list\":[\"user_1\",\"user_2\"]}]\r\n\r\n}","options":{"raw":{"language":"json"}}},"url":"https://100086.pythonanywhere.com/create-workspace/?api_key=api_key","description":"<p>This endpoint makes an HTTP POST request to create a new workspace with the provided API key. The request should include the username, workspace_id, and a boolean value for payment in the raw request body. If there are already existing teams one can insert the teams detail and also the list of teams</p>\n<h3 id=\"request-body\">Request Body</h3>\n<ul>\n<li><code>username</code> (string): The username for the new workspace.</li>\n<li><code>workspace_id</code> (string): The unique identifier for the new workspace.</li>\n</ul>\n<h4 id=\"optional\"><strong>Optional</strong></h4>\n<ul>\n<li><p><code>team_list</code> (list/array): A list of teams you wish to insert if they exist. The length of this list must match the length of the team's list</p>\n</li>\n<li><p><code>teams</code> (dictionary/object): This object contains a key-value pair of the team name as key and the list of users in that team as value.</p>\n</li>\n</ul>\n<h3 id=\"response\">Response</h3>\n<p>Upon successful execution, the endpoint returns a JSON response with a status code, text, and a success indicator.</p>\n<p>Example response:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"status_code\": 0,\n    \"text\": \"\",\n    \"success\": true\n}\n\n</code></pre>\n","urlObject":{"protocol":"https","path":["create-workspace",""],"host":["100086","pythonanywhere","com"],"query":[{"key":"api_key","value":"api_key"}],"variable":[]}},"response":[],"_postman_id":"ebc089e2-91fa-44e5-bdc8-9e76399d0534"},{"name":"Get Workspace","id":"1cb226ef-2c91-47b2-a75b-540f0ce4ecff","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"filters\": {\r\n        \"username\": \"ericmbuthia11\",\r\n        \"workspace_id\": \"123456\"\r\n    }\r\n}","options":{"raw":{"language":"json"}}},"url":"https://100086.pythonanywhere.com/get-workspace/?api_key=api_key","description":"<p>This HTTP POST request is used to retrieve workspace data using the provided API key. The request should be made to <a href=\"https://100086.pythonanywhere.com/get-workspace/?api_key=api_key\">https://100086.pythonanywhere.com/get-workspace/?api_key=api_key</a><br />The request body should contain a JSON payload with filters for username and workspace_id. If you want to get everything you can send an empty body.</p>\n<h3 id=\"request-body\">Request Body</h3>\n<ul>\n<li>filters (object)<ul>\n<li>username (string): The username for filtering the workspace data.</li>\n<li>workspace_id (string): The workspace ID for filtering the workspace data.</li>\n</ul>\n</li>\n</ul>\n<h3 id=\"response\">Response</h3>\n<p>Upon a successful execution with a status code of 200, the response will be in JSON format with the following structure:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"data\": [\n    {\n      \"_id\": \"\",\n      \"username\": \"\",\n      \"workspace_id\": \"\",\n      \"doc_type\": \"\",\n      \"users_list\": [\"\"],\n      \"team_list\": [\"\"],\n      \"teams\": {\n        \"team_1\": [\"\"],\n        \"team_2\": [\"\"],\n        \"team_3\": [\"\"],\n        \"team_7\": [\"\"],\n        \"team_6\": [\"\"]\n      },\n      \"create_time_stamp\": \"\"\n    }\n  ]\n}\n\n</code></pre>\n<p>The response will contain an array of workspace data objects, each including _id, username, workspace_id, doc_type, users_list, team_list, teams, and create_time_stamp.</p>\n","urlObject":{"protocol":"https","path":["get-workspace",""],"host":["100086","pythonanywhere","com"],"query":[{"key":"api_key","value":"api_key"}],"variable":[]}},"response":[],"_postman_id":"1cb226ef-2c91-47b2-a75b-540f0ce4ecff"},{"name":"DeleteWorkspace","id":"e7462f88-42a9-4470-909b-f493cfcbe8f0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n            \"username\": \"ericmbuthia11\",\r\n            \"workspace_id\": \"9000\"\r\n\r\n}","options":{"raw":{"language":"json"}}},"url":"https://100086.pythonanywhere.com/delete-workspace/?api_key=api_key","description":"<p>This HTTP POST request is used to delete a workspace by providing the username and workspace ID in the request body. The request should be made to <a href=\"https://100086.pythonanywhere.com/delete-workspace/?api_key=api_key\">https://100086.pythonanywhere.com/delete-workspace/?api_key=api_key</a>  </p>\n<h3 id=\"request-body\">Request Body</h3>\n<ul>\n<li><code>username</code> (string): The username associated with the workspace to be deleted.</li>\n<li><code>workspace_id</code> (string): The ID of the workspace to be deleted.</li>\n</ul>\n<h3 id=\"response\">Response</h3>\n<p>Upon successful execution, the server returns a JSON response with the following fields:</p>\n<ul>\n<li><code>status_code</code> (integer): Indicates the status code of the operation.</li>\n<li><code>text</code> (string): Additional information or error message.</li>\n<li><code>success</code> (boolean): Indicates whether the operation was successful.</li>\n</ul>\n<p>Example Response:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"status_code\": 0,\n    \"text\": \"\",\n    \"success\": true\n}\n\n</code></pre>\n","urlObject":{"protocol":"https","path":["delete-workspace",""],"host":["100086","pythonanywhere","com"],"query":[{"key":"api_key","value":"api_key"}],"variable":[]}},"response":[],"_postman_id":"e7462f88-42a9-4470-909b-f493cfcbe8f0"},{"name":"Update Workspace","id":"537075cf-6525-46dd-9277-ff517b2f9382","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"username\": \"ericmbuthia11\",\r\n    \"workspace_id\":\"9000\",\r\n    \"update_fields\": [\"team_list\", \"teams\"],\r\n    \"update_data\": {\r\n       \"team_list\": [\"team_1\"],\r\n         \"teams\": {\"team_1\": [\"janedoe123\"]\r\n                   }\r\n    }}\r\n\r\n","options":{"raw":{"language":"json"}}},"url":"https://100086.pythonanywhere.com/update-workspace/?api_key=api_key","description":"<p>This endpoint allows you to update a workspace using an HTTP POST request. The request should be sent to <a href=\"http://localhost:8000/update-workspace/?api_key=76092219-c570-4c86-88f0-efa63966e06b\">http://localhost:8000/update-workspace/?api_key=76092219-c570-4c86-88f0-efa63966e06b</a>. The request body should be in raw JSON format and include the fields \"username\", \"workspace_id\", \"update_fields\", \"update_data\". The \"update_fields\" should be an array, and \"update_data\" should be an object containing \"team_list\" and \"teams\" properties.</p>\n<h3 id=\"request-body\">Request Body</h3>\n<ul>\n<li><code>username</code>: (string) The username for the workspace.</li>\n<li><code>workspace_id</code>: (string) The ID of the workspace to be updated.</li>\n<li><code>update_fields</code>: (array) An array of fields to be updated.</li>\n<li><code>update_data</code>: (object) An object containing the properties \"team_list\" (array) and \"teams\" (object).</li>\n</ul>\n<h3 id=\"response\">Response</h3>\n<p>The endpoint returns a JSON response with a status code, text, and success status. In the last execution, the response had a status code of 200, with a \"status_code\" of 0, an empty \"text\", and a \"success\" status of true.</p>\n","urlObject":{"protocol":"https","path":["update-workspace",""],"host":["100086","pythonanywhere","com"],"query":[{"key":"api_key","value":"api_key"}],"variable":[]}},"response":[],"_postman_id":"537075cf-6525-46dd-9277-ff517b2f9382"},{"name":"Create Current Location","event":[{"listen":"test","script":{"id":"5810e090-f5f0-4a3e-978b-6614725bcca2","exec":["pm.test(\"Status code is 200\", function () {\r","    pm.response.to.have.status(200);\r","});\r","\r","pm.test(\"Response is an object with status_code property\", function () {\r","    pm.expect(pm.response.json()).to.be.an('object').that.has.property('status_code');\r","});\r","\r","pm.test(\"Response is an object with text property\", function () {\r","    pm.expect(pm.response.json()).to.be.an('object').that.has.property('text');\r","});\r","\r","pm.test(\"Response is an object with success property\", function () {\r","    pm.expect(pm.response.json()).to.be.an('object').that.has.property('success');\r","});\r","\r","pm.test(\"Response time is less than 500ms\", function () {\r","    pm.expect(pm.response.responseTime).to.be.below(500);\r","});"],"type":"text/javascript"}}],"id":"090a6535-d695-471e-ba7f-ae5150725a6e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"payload\":[\r\n        {\r\n                        \"username\": \"ericdoe123\",\r\n                        \"workspace_id\": \"9000\",\r\n                        \"doc_type\": \"slave\",\r\n                        \"lat\": 0.1829,\r\n                        \"lon\": 0.1929,\r\n                        \"timestamp\": 0.00,\r\n                        \"team_status\": true,\r\n                        \"team_list\":[\"team_1\"]\r\n                        \r\n                    },\r\n                    {\r\n                        \"username\": \"josephdoe123\",\r\n                        \"workspace_id\": \"9000\",\r\n                        \"doc_type\": \"slave\",\r\n                        \"lat\": 0.1829,\r\n                        \"lon\": 0.1929,\r\n                        \"timestamp\": 0,\r\n                        \"team_status\": true,\r\n                        \"team_list\":[\"team_1\"]\r\n                        \r\n                    },\r\n                    {\r\n                        \"username\": \"leedoe123\",\r\n                        \"workspace_id\": \"9000\",\r\n                        \"doc_type\": \"slave\",\r\n                        \"lat\": 0.1829,\r\n                        \"lon\": 0.1929,\r\n                        \"timestamp\": 0,\r\n                        \"team_status\": false\r\n                        \r\n                    }\r\n    ]\r\n}","options":{"raw":{"language":"json"}}},"url":"https://100086.pythonanywhere.com/create-current-loc/?api_key=api_key","description":"<h3 id=\"create-current-location\">Create Current Location</h3>\n<p>The endpoint allows users to create their current location.</p>\n<h4 id=\"request\">Request</h4>\n<ul>\n<li>Method: POST</li>\n<li>URL: [[<a href=\"https://100086.pythonanywhere.com/create-current-loc/?api_key=api_key%60%5D(https://100086.pythonanywhere.com/%60create-current-loc/?api_key=api_key%60)%5D(https://100086.pythonanywhere.com/create-current-loc/?api_key=api_key%60%5D(https://100086.pythonanywhere.com/%60create-current-loc/?api_key=api_key%60)\">https://100086.pythonanywhere.com/create-current-loc/?api_key=api_key`](https://100086.pythonanywhere.com/`create-current-loc/?api_key=api_key`)](https://100086.pythonanywhere.com/create-current-loc/?api_key=api_key%60%5D(https://100086.pythonanywhere.com/%60create-current-loc/?api_key=api_key%60)</a>)</li>\n<li>Headers:<ul>\n<li>Content-Type: application/json</li>\n</ul>\n</li>\n</ul>\n<h4 id=\"response\">Response</h4>\n<ul>\n<li><p>Status: 200</p>\n</li>\n<li><p>Content-Type: application/json</p>\n</li>\n<li><p>Body:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">        {\n          \"status_code\": 0,\n          \"text\": \"\",\n          \"success\": true\n        }\n\n</code></pre>\n</li>\n</ul>\n","urlObject":{"protocol":"https","path":["create-current-loc",""],"host":["100086","pythonanywhere","com"],"query":[{"key":"api_key","value":"api_key"}],"variable":[]}},"response":[],"_postman_id":"090a6535-d695-471e-ba7f-ae5150725a6e"},{"name":"Get Local Nearby V2","id":"ba53a732-0cf3-4bec-ad03-8b5b61cd4ad5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"radius1\":0,\r\n    \"radius2\":750,\r\n    \"center_lat\": 51.50853,\r\n    \"center_lon\":-0.12574,\r\n    \"query_string\": \"school\",\r\n    \"limit\": \"60\",\r\n    \"api_key\":\"api_key\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://100086.pythonanywhere.com/accounts/get-local-nearby-v2/","urlObject":{"protocol":"https","path":["accounts","get-local-nearby-v2",""],"host":["100086","pythonanywhere","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"ba53a732-0cf3-4bec-ad03-8b5b61cd4ad5"},{"name":"New Request","id":"24c98483-9539-40e0-9218-92ad5d360c15","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"urlObject":{"query":[],"variable":[]},"url":""},"response":[],"_postman_id":"24c98483-9539-40e0-9218-92ad5d360c15"}]}