{"info":{"_postman_id":"78f19bcd-e284-3e1f-6ec0-26ca9b91d4df","name":"Population-Management-System","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"1521233","collectionId":"78f19bcd-e284-3e1f-6ec0-26ca9b91d4df","publishedId":"SVfNu8j2","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2019-08-26T09:04:52.000Z"},"item":[{"name":"http://localhost:6688/api/v1/state","id":"5b264fde-c629-85e4-808c-d477ce5b0db2","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"name\": \"state\",\n\t\"lgas\": [\n\t\t{\n\t\t\t\"name\": \"lga1\",\n\t\t\t\"males\": 3,\n\t\t\t\"females\": 4\n\t\t},\n\t\t{\n\t\t\t\"name\": \"lga2\",\n\t\t\t\"males\": 5,\n\t\t\t\"females\": 6\n\t\t}\n\t]\n}"},"url":"http://localhost:6688/api/v1/state","urlObject":{"protocol":"http","port":"6688","path":["api","v1","state"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"5b264fde-c629-85e4-808c-d477ce5b0db2"},{"name":"http://localhost:6688/api/v1/state/5ccf9aff8c103c34d8d18aaa","id":"6724d7d9-913b-66a3-507b-3d8a56cb2657","request":{"method":"GET","header":[],"body":{"mode":"formdata","formdata":[]},"url":"http://localhost:6688/api/v1/state/5ccf9aff8c103c34d8d18aaa","description":"<p>Returns a state with all its details(id, lgas, males, females, total)</p>\n","urlObject":{"protocol":"http","port":"6688","path":["api","v1","state","5ccf9aff8c103c34d8d18aaa"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"6724d7d9-913b-66a3-507b-3d8a56cb2657"},{"name":"http://localhost:6688/api/v1/state/5ccf9aff8c103c34d8d18aaa/lga","id":"1301ce9b-1bfa-af62-b982-c86faf30c435","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"name","type":"text","value":"another lga"},{"key":"females","type":"text","value":"15"},{"key":"males","type":"text","value":"35"}]},"url":"http://localhost:6688/api/v1/state/5ccf9aff8c103c34d8d18aaa/lga","description":"<p>Creates an lga and adds it to a state. Required fields are the name, males(number of males), females(number of females). It returns the created lga with the total.</p>\n","urlObject":{"protocol":"http","port":"6688","path":["api","v1","state","5ccf9aff8c103c34d8d18aaa","lga"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"1301ce9b-1bfa-af62-b982-c86faf30c435"},{"name":"http://localhost:6688/api/v1/state","id":"32ce3490-9b70-668a-384a-cfd5f006cfcb","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"name\": \"state\",\n\t\"lgas\": [\n\t\t{\n\t\t\t\"name\": \"lga1\",\n\t\t\t\"males\": 3,\n\t\t\t\"females\": 4\n\t\t},\n\t\t{\n\t\t\t\"name\": \"lga2\",\n\t\t\t\"males\": 5,\n\t\t\t\"females\": 6\n\t\t}\n\t]\n}"},"url":"http://localhost:6688/api/v1/state","description":"<p>Creates a state. Required field is the name. Also accepts lga field too. Returns the created State with the total number of males, females and total if provided.</p>\n","urlObject":{"protocol":"http","port":"6688","path":["api","v1","state"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"32ce3490-9b70-668a-384a-cfd5f006cfcb"},{"name":"http://localhost:6688/api/v1/state/5ccf9aff8c103c34d8d18aaa/lga/5ccf9aff8c103c34d8d18aac","id":"f0abc707-83dd-8bd4-2d8d-87e3e4ee1fe1","request":{"method":"GET","header":[],"body":{"mode":"formdata","formdata":[]},"url":"http://localhost:6688/api/v1/state/5ccf9aff8c103c34d8d18aaa/lga/5ccf9aff8c103c34d8d18aac","description":"<p>Returns a specific lga in a given state.</p>\n","urlObject":{"protocol":"http","port":"6688","path":["api","v1","state","5ccf9aff8c103c34d8d18aaa","lga","5ccf9aff8c103c34d8d18aac"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"f0abc707-83dd-8bd4-2d8d-87e3e4ee1fe1"},{"name":"http://localhost:6688/api/v1/state/5ccf9aff8c103c34d8d18aaa","id":"1e1ce138-859e-73b7-a17f-d9d8b869e21c","request":{"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"name","type":"text","value":"modified state"}]},"url":"http://localhost:6688/api/v1/state/5ccf9aff8c103c34d8d18aaa","description":"<p>Edits a state. Editable field is the name.\nReturns the state object with the edits if any.</p>\n","urlObject":{"protocol":"http","port":"6688","path":["api","v1","state","5ccf9aff8c103c34d8d18aaa"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"1e1ce138-859e-73b7-a17f-d9d8b869e21c"},{"name":"http://localhost:6688/api/v1/state/5ccf9aff8c103c34d8d18aaa/lga/5ccf9aff8c103c34d8d18aac","id":"20adc20c-12e0-2674-d189-3f687e5765a2","request":{"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"name","type":"text","value":"modified state"},{"key":"males","type":"text","value":"5"}]},"url":"http://localhost:6688/api/v1/state/5ccf9aff8c103c34d8d18aaa/lga/5ccf9aff8c103c34d8d18aac","description":"<p>Edits a lga belonging to a state.\nEditable fields are the name, males, females.\nReturns the lga object with changes if any.</p>\n","urlObject":{"protocol":"http","port":"6688","path":["api","v1","state","5ccf9aff8c103c34d8d18aaa","lga","5ccf9aff8c103c34d8d18aac"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"20adc20c-12e0-2674-d189-3f687e5765a2"},{"name":"http://localhost:6688/api/v1/state/5ccf9aff8c103c34d8d18aaa/lga/5ccf9e3b8c103c34d8d18aad","id":"9a0f0eb9-e435-1a5f-6373-bae3c324dd95","request":{"method":"DELETE","header":[],"body":{"mode":"formdata","formdata":[]},"url":"http://localhost:6688/api/v1/state/5ccf9aff8c103c34d8d18aaa/lga/5ccf9e3b8c103c34d8d18aad","description":"<p>Deletes an lga.\nReturns a status and a response message.</p>\n","urlObject":{"protocol":"http","port":"6688","path":["api","v1","state","5ccf9aff8c103c34d8d18aaa","lga","5ccf9e3b8c103c34d8d18aad"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"9a0f0eb9-e435-1a5f-6373-bae3c324dd95"},{"name":"http://localhost:6688/api/v1/state/5ccf9aff8c103c34d8d18aaa","id":"55f1a33e-0ab2-ae83-24c9-976cabc5592d","request":{"method":"DELETE","header":[],"body":{"mode":"formdata","formdata":[]},"url":"http://localhost:6688/api/v1/state/5ccf9aff8c103c34d8d18aaa","description":"<p>Deletes a state.\nReturns a status and a response message.</p>\n","urlObject":{"protocol":"http","port":"6688","path":["api","v1","state","5ccf9aff8c103c34d8d18aaa"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"55f1a33e-0ab2-ae83-24c9-976cabc5592d"}]}