{"info":{"_postman_id":"b280311e-646e-41e4-9440-4029289147bf","name":"Locale API","description":"<html><head></head><body><p>{{URL}} = <a href=\"https://geolocatorng.onrender.com\">https://geolocatorng.onrender.com</a></p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"14148992","collectionId":"b280311e-646e-41e4-9440-4029289147bf","publishedId":"2s93z5A59G","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"F71C17"},"publishDate":"2023-06-22T15:34:49.000Z"},"item":[{"name":"Auth","item":[{"name":"Register","event":[{"listen":"test","script":{"id":"e544a0f5-fe86-46b2-9e6a-384fbf69f087","exec":["pm.environment.set(\"apiKey\", pm.response.json().data.apiKey);"],"type":"text/javascript"}}],"id":"79b8d10f-d730-4dcc-9f4a-a54cade418ea","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"Saheed Shittu\",\r\n    \"email\":\"shittusaheed123@gmail.ng\",\r\n    \"password\":\"{{password}}\",\r\n    \"repeat_password\":\"{{password}}\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{url}}/api/v1/user/signup","description":"<p>Use this endpoint to register for an APIkey</p>\n","urlObject":{"path":["api","v1","user","signup"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"79b8d10f-d730-4dcc-9f4a-a54cade418ea"},{"name":"Login","event":[{"listen":"test","script":{"id":"ad39dcdc-10a1-4737-bc4f-f8e46f30fcbe","exec":["pm.environment.set(\"apiKey\", pm.response.json().data.apiKey);"],"type":"text/javascript"}}],"id":"21649bdb-b5cf-49c4-9515-84a8f1659b0b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\":\"shittusaheed123@gmail.ng\",\r\n    \"password\":\"{{password}}\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{url}}/api/v1/user/login","description":"<p>Use this endpoint to login and recover your APIkey</p>\n","urlObject":{"path":["api","v1","user","login"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"21649bdb-b5cf-49c4-9515-84a8f1659b0b"}],"id":"bb35eb8f-bc97-40f6-a081-b6b2af97be23","_postman_id":"bb35eb8f-bc97-40f6-a081-b6b2af97be23","description":""},{"name":"Locale","item":[{"name":"Get All Data","id":"dbea8ede-e8f4-40db-aac9-46f6832b8df6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{apiKey}}"}]},"isInherited":false},"method":"GET","header":[],"url":"{{url}}/api/v1/locale","description":"<p>Use this endpoint to get all data about states or regions in Nigeria and the results are paginated.</p>\n","urlObject":{"path":["api","v1","locale"],"host":["{{url}}"],"query":[{"disabled":true,"description":{"content":"<p>to search for a specific state</p>\n","type":"text/plain"},"key":"state","value":"Federal"},{"disabled":true,"description":{"content":"<p>to skip to the next page and the page starts from page 1</p>\n","type":"text/plain"},"key":"page","value":"2"},{"disabled":true,"description":{"content":"<p>to query by regions</p>\n","type":"text/plain"},"key":"region","value":"North"},{"disabled":true,"description":{"content":"<p>to limit the number of results per page</p>\n","type":"text/plain"},"key":"statesPerPage","value":"10"}],"variable":[]}},"response":[],"_postman_id":"dbea8ede-e8f4-40db-aac9-46f6832b8df6"},{"name":"Get All Regions","id":"763d4a54-9d5a-4350-95f3-a69581d7bf40","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{apiKey}}"}]},"isInherited":false},"method":"GET","header":[],"url":"{{url}}/api/v1/locale/regions","description":"<p>Use this endpoint to get all 6 regions in Nigeria</p>\n","urlObject":{"path":["api","v1","locale","regions"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"763d4a54-9d5a-4350-95f3-a69581d7bf40"},{"name":"Get All States","id":"65648c33-1a78-4070-90eb-f40c314fc6c8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{apiKey}}"}]},"isInherited":false},"method":"GET","header":[],"url":"{{url}}/api/v1/locale/states","description":"<p>Use this endpoint to get all states in Nigeria and the results are paginated</p>\n","urlObject":{"path":["api","v1","locale","states"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"65648c33-1a78-4070-90eb-f40c314fc6c8"},{"name":"Get All LGAs","id":"e1f18018-7eda-4b9a-ba48-de59ad3a1c83","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{apiKey}}"}]},"isInherited":false},"method":"GET","header":[],"url":"{{url}}/api/v1/locale/lgas","description":"<p>Use this endpoint to get all Local Governments in Nigeria and the results are paginated.</p>\n","urlObject":{"path":["api","v1","locale","lgas"],"host":["{{url}}"],"query":[{"disabled":true,"description":{"content":"<p>to skip to the next page and the page starts from page 1</p>\n","type":"text/plain"},"key":"page","value":"1"},{"disabled":true,"description":{"content":"<p>to limit the number of results per page</p>\n","type":"text/plain"},"key":"lgasPerPage","value":"20"}],"variable":[]}},"response":[],"_postman_id":"e1f18018-7eda-4b9a-ba48-de59ad3a1c83"}],"id":"c0f23f19-d1e5-45d9-80e0-e791e1f0f213","description":"<p>It contains all the available routes to query our locale api</p>\n","_postman_id":"c0f23f19-d1e5-45d9-80e0-e791e1f0f213"},{"name":"Home","id":"b5205a05-adb6-48a3-811d-9cc40ea91a0f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{url}}","description":"<p>Use this endpoint to check if the site is functioning because it is always successful.</p>\n","urlObject":{"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"b5205a05-adb6-48a3-811d-9cc40ea91a0f"},{"name":"Undefine Route","id":"ba703d9f-7f7e-42cc-a72a-7f7f922a8195","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{url}}/undefined","description":"<p>Use this endpoint to test for invalid routes and it's response</p>\n","urlObject":{"path":["undefined"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"ba703d9f-7f7e-42cc-a72a-7f7f922a8195"}]}