{"info":{"_postman_id":"23bf5bca-12b0-4c93-ba5c-38033a1bf0de","name":"helplookforme API","description":"<html><head></head><body><p>This documentation describes the resources that make up the helplookforme API</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"5935573","collectionId":"23bf5bca-12b0-4c93-ba5c-38033a1bf0de","publishedId":"SWLmZ5FV","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"308893"},"publishDate":"2020-01-18T00:57:28.000Z"},"item":[{"name":"Auth","item":[{"name":"https://helplookforme.herokuapp.com/api/v1/auth/signup","id":"4b90c442-bde8-46f8-8569-e2da15e0873b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"fullname","value":"John Okafor","description":"<p>The user's fullname</p>\n","type":"text"},{"key":"email","value":"useremail@gmail.com","description":"<p>The user's email</p>\n","type":"text"},{"key":"password","value":"your-password","description":"<p>User's password</p>\n","type":"text"}]},"url":"localhost:3001/api/v1/auth/signup","description":"<p>Registers a user oh the helpllokforme platform. Returns the details of the newly registered user and a JsonWebToken(JWT) that must be used to authorize a user's subsequent requests.</p>\n","urlObject":{"port":"3001","path":["api","v1","auth","signup"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"9c2aadd5-b001-4ed2-b409-b83bbd4167cf","name":"https://helplookforme.herokuapp.com/api/v1/auth/signup","originalRequest":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"fullname","value":"John Okafor","type":"text"},{"key":"email","value":"useremail@gmail.com","type":"text"},{"key":"password","value":"your-password","type":"text"}]},"url":"localhost:3001/api/v1/auth/signup"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Vary","value":"X-HTTP-Method-Override, Accept-Encoding"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"757"},{"key":"ETag","value":"W/\"2f5-qaCcqwQfwOOhjUwC/uda3h2btZ4\""},{"key":"Date","value":"Sat, 18 Jan 2020 00:40:26 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"message\": \"Successfully created user\",\n        \"user\": {\n            \"photoURL\": \"https://p7.hiclipart.com/preview/419/473/131/computer-icons-user-profile-login-user.jpg\",\n            \"completedProfile\": false,\n            \"verifiedEmail\": false,\n            \"_id\": \"5e2253faa1d490095891f898\",\n            \"firstname\": \"John\",\n            \"lastname\": \"Okafor\",\n            \"fullname\": \"John Okafor\",\n            \"email\": \"youremail@gmail.com\",\n            \"createdAt\": \"2020-01-18T00:40:26.890Z\",\n            \"updatedAt\": \"2020-01-18T00:40:26.890Z\",\n            \"slug\": \"john-okafor\",\n            \"__v\": 0,\n            \"token\": \"jwt-token\"\n        }\n    }\n}"}],"_postman_id":"4b90c442-bde8-46f8-8569-e2da15e0873b"},{"name":"https://helplookforme.herokuapp.com/api/v1/auth/login","id":"0e7ffd70-bb1c-4803-951d-3fa0089fe6e9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/x-www-form-urlencoded","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"email","value":"useremail@gmail.com","description":"<p>User's email</p>\n","type":"text"},{"key":"password","value":"your-password","description":"<p>User's password</p>\n","type":"text"}]},"url":"https://helplookforme.herokuapp.com/api/v1/auth/login","description":"<p>Authenticates a user using an email and a password. Returns the user's details and a JWT token which must be used for subsequent API requests</p>\n","urlObject":{"path":["auth","login"],"host":["https://helplookforme.herokuapp.com/api/v1"],"query":[],"variable":[]}},"response":[{"id":"e9a56d23-9a95-410e-aeb1-4d95361edc47","name":"https://helplookforme.herokuapp.com/api/v1/auth/login","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/x-www-form-urlencoded","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"email","value":"useremail@gmail.com","type":"text"},{"key":"password","value":"your-password","type":"text"}]},"url":"https://helplookforme.herokuapp.com/api/v1/auth/login"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Vary","value":"X-HTTP-Method-Override, Accept-Encoding"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"719"},{"key":"ETag","value":"W/\"2cf-1TxU8cO4d4VOz1j+pGZiaF15VnQ\""},{"key":"Date","value":"Sat, 18 Jan 2020 00:41:54 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"user\": {\n            \"photoURL\": \"https://p7.hiclipart.com/preview/419/473/131/computer-icons-user-profile-login-user.jpg\",\n            \"completedProfile\": false,\n            \"verifiedEmail\": false,\n            \"_id\": \"5e2253faa1d490095891f898\",\n            \"firstname\": \"John\",\n            \"lastname\": \"Okafor\",\n            \"fullname\": \"John Okafor\",\n            \"email\": \"youremail@gmail.com\",\n            \"createdAt\": \"2020-01-18T00:40:26.890Z\",\n            \"updatedAt\": \"2020-01-18T00:40:26.890Z\",\n            \"slug\": \"john-okafor\",\n            \"__v\": 0\n        },\n        \"token\": \"jwt-token\"\n    }\n}"}],"_postman_id":"0e7ffd70-bb1c-4803-951d-3fa0089fe6e9"},{"name":"https://helplookforme.herokuapp.com/api/v1/auth/verify-email","id":"057039df-642b-4da6-bb88-f57927e37d52","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"PUT","header":[{"key":"Content-Type","name":"Content-Type","value":"application/x-www-form-urlencoded","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"token","value":"<jwt>","description":"<p>The jwt code sent to the user's email .</p>\n","type":"text"}]},"url":"https://helplookforme.herokuapp.com/api/v1/auth/verify-email","description":"<p>Verifies a user's email. </p>\n","urlObject":{"protocol":"https","path":["api","v1","auth","verify-email"],"host":["helplookforme","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"057039df-642b-4da6-bb88-f57927e37d52"},{"name":"https://helplookforme.herokuapp.com/api/v1/auth/resend-verification-email","id":"70af0fcf-c69f-45a7-8192-ee3ac888ea89","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"url":"https://helplookforme.herokuapp.com/api/v1/auth/resend-verification-email","description":"<p>Resends the confirmation email to the email address of the authenticated user.</p>\n","urlObject":{"protocol":"https","path":["api","v1","auth","resend-verification-email"],"host":["helplookforme","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"70af0fcf-c69f-45a7-8192-ee3ac888ea89"},{"name":"https://helplookforme.herokuapp.com/api/v1/auth/google","id":"828cce5d-01c5-4564-8b65-b34051e79a8d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/x-www-form-urlencoded","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"id_token","value":"your-google-id-token","description":"<p>The user's google ID token.</p>\n","type":"text"}]},"url":"https://helplookforme.herokuapp.com/api/v1/auth/google","description":"<p>Authenticates a user using google sign in. If user is new (has not signed up before), a new user is created. Returns the users details and a JWT token which must be used for subsequent requests</p>\n","urlObject":{"path":["auth","google"],"host":["https://helplookforme.herokuapp.com/api/v1"],"query":[],"variable":[]}},"response":[],"_postman_id":"828cce5d-01c5-4564-8b65-b34051e79a8d"},{"name":"https://helplookforme.herokuapp.com/api/v1/auth/facebook","id":"6a9a758b-fc4a-4aac-952d-82b8675c5512","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/x-www-form-urlencoded","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"access_token","value":"your-facebook-access-token","description":"<p>The user's facebook access token.</p>\n","type":"text"}]},"url":"https://helplookforme.herokuapp.com/api/v1/auth/facebook","description":"<p>Authenticates a user using facebook sign in. If a user hasn't registered before, a new user is created. Returns the users details and a JWT token which must be used for subsequent requests.</p>\n","urlObject":{"path":["auth","facebook"],"host":["https://helplookforme.herokuapp.com/api/v1"],"query":[],"variable":[]}},"response":[],"_postman_id":"6a9a758b-fc4a-4aac-952d-82b8675c5512"},{"name":"https://helplookforme.herokuapp.com/api/v1/auth/twitter","id":"c959acba-3dad-4a81-b2a6-908dfda38f09","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://helplookforme.herokuapp.com/api/v1/auth/twitter","description":"<p>Retrieves the twitter redirect url for signing a user in with Twitter.</p>\n","urlObject":{"path":["auth","twitter"],"host":["https://helplookforme.herokuapp.com/api/v1"],"query":[],"variable":[]}},"response":[{"id":"7895cb34-af9b-4ede-a759-733470b4e09e","name":"https://helplookforme.herokuapp.com/api/v1/auth/twitter","originalRequest":{"method":"GET","header":[],"url":"https://helplookforme.herokuapp.com/api/v1/auth/twitter"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"106"},{"key":"ETag","value":"W/\"6a-JM9YI19MtQ2KzQQmamho0Je+3do\""},{"key":"Vary","value":"Accept-Encoding"},{"key":"Date","value":"Fri, 17 Jan 2020 18:03:35 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"redirectUrl\": \"https://api.twitter.com/oauth/authorize?oauth_token=<oauth_token>\"\n    }\n}"}],"_postman_id":"c959acba-3dad-4a81-b2a6-908dfda38f09"},{"name":"https://helplookforme.herokuapp.com/api/v1/auth/twitter/callback","id":"f2e078bf-e136-4d5d-a53a-6ac690d628d4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/x-www-form-urlencoded","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"oauth_token","value":"twitter-oauth-token","description":"<p>The oauth_token for the user returned by Twitter</p>\n","type":"text"},{"key":"oauth_verifier","value":"twitter-oauth-verifier","description":"<p>The oauth_verifier for the user returned by Twitter</p>\n","type":"text"}]},"url":"https://helplookforme.herokuapp.com/api/v1/auth/twitter/callback","description":"<p>Authenticates a user using twitter sign in. If a user hasn't registered before, a new user is created. Returns the users details and a JWT token which must be used for subsequent requests.</p>\n","urlObject":{"path":["auth","twitter","callback"],"host":["https://helplookforme.herokuapp.com/api/v1"],"query":[],"variable":[]}},"response":[],"_postman_id":"f2e078bf-e136-4d5d-a53a-6ac690d628d4"},{"name":"https://helplookforme.herokuapp.com/api/v1/auth/forgot-password","id":"d5d15699-b469-4457-b165-db12841b9df9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/x-www-form-urlencoded","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"email","value":"useremail@gmail.com","type":"text"}]},"url":"https://helplookforme.herokuapp.com/api/v1/auth/forgot-password","description":"<p>Sends a reset password email to a user</p>\n","urlObject":{"path":["auth","forgot-password"],"host":["https://helplookforme.herokuapp.com/api/v1"],"query":[],"variable":[]}},"response":[{"id":"1735190a-56f6-492e-84ef-cb1e86b6ee49","name":"https://helplookforme.herokuapp.com/api/v1/auth/forgot-password","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/x-www-form-urlencoded","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"email","value":"useremail@gmail.com","type":"text"}]},"url":"https://helplookforme.herokuapp.com/api/v1/auth/forgot-password"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Vary","value":"X-HTTP-Method-Override, Accept-Encoding"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"63"},{"key":"ETag","value":"W/\"3f-fENy2fD+b4GBZ9y7H2XgFdkcM3c\""},{"key":"Date","value":"Fri, 17 Jan 2020 18:55:46 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"message\": \"Password reset mail has been sent to you\"\n    }\n}"}],"_postman_id":"d5d15699-b469-4457-b165-db12841b9df9"},{"name":"https://helplookforme.herokuapp.com/api/v1/auth/reset-password","id":"d4b04891-6420-450d-affd-215c95a25559","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Content-Type","name":"Content-Type","value":"application/x-www-form-urlencoded","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"token","value":"password-reset-token","description":"<p>JWT send to the user via the reset password email</p>\n","type":"text"},{"key":"password","value":"new-password","description":"<p>The user's new password</p>\n","type":"text"}]},"url":"https://helplookforme.herokuapp.com/api/v1/auth/reset-password","description":"<p>Resets a user's password. Call this endpoint after the forgot password request has been sent, and the reset password email has been delivered to the user's email</p>\n","urlObject":{"path":["auth","reset-password"],"host":["https://helplookforme.herokuapp.com/api/v1"],"query":[],"variable":[]}},"response":[],"_postman_id":"d4b04891-6420-450d-affd-215c95a25559"}],"id":"03ac79c4-6770-49f6-9019-52367c695609","description":"<p>Endpoint for authenticating a user, and updating user's authentication credentials</p>\n","event":[{"listen":"prerequest","script":{"id":"8d2168b2-1841-4a63-882a-173be2401172","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"9f6072be-1b77-49ce-b5a1-4b52686282a2","type":"text/javascript","exec":[""]}}],"_postman_id":"03ac79c4-6770-49f6-9019-52367c695609"},{"name":"Stats","item":[{"name":" http://helplookforme.herokuapp.com/api/v1/stats","id":"749d033f-30fe-4b4b-8789-6a8a72cca17b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://helplookforme.herokuapp.com/api/v1/stats","description":"<p>Retrieves case statistics which include:</p>\n<ul>\n<li>The number of cases reported</li>\n<li>The number of subscribers</li>\n<li>The number of countries that have subscribers.</li>\n</ul>\n","urlObject":{"protocol":"http","path":["api","v1","stats"],"host":["helplookforme","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"749d033f-30fe-4b4b-8789-6a8a72cca17b"}],"id":"8992a47a-b723-484b-bf08-af61c5c5d24f","description":"<p>Retrieve case statistics.</p>\n","event":[{"listen":"prerequest","script":{"id":"90fd2760-1d64-41be-bcaa-bf8eb125c701","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"3c9c0a7f-df7a-4986-b432-7e1bad1f238b","type":"text/javascript","exec":[""]}}],"_postman_id":"8992a47a-b723-484b-bf08-af61c5c5d24f"},{"name":"User","item":[{"name":"https://helplookforme.herokuapp.com/api/v1/users/","id":"3ec3cc74-e6e9-4fc2-bf33-3e3004b86965","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"https://helplookforme.herokuapp.com/api/v1/users/","description":"<p>Retrieves details about an authenticated user.</p>\n","urlObject":{"protocol":"https","path":["api","v1","users",""],"host":["helplookforme","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"3ec3cc74-e6e9-4fc2-bf33-3e3004b86965"},{"name":"https://helplookforme.herokuapp.com/api/v1/users/cases","id":"b2ca3e4d-c870-4f5a-b068-6e8e51b370a9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"https://helplookforme.herokuapp.com/api/v1/users/cases","description":"<p>Retrieves all cases a user has reported.</p>\n","urlObject":{"path":["users","cases"],"host":["https://helplookforme.herokuapp.com/api/v1"],"query":[],"variable":[]}},"response":[],"_postman_id":"b2ca3e4d-c870-4f5a-b068-6e8e51b370a9"},{"name":"https://helplookforme.herokuapp.com/api/v1/users/","id":"ab49b06b-3d28-4537-b18f-4ab72eabea72","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"PUT","header":[{"key":"Content-Type","name":"Content-Type","value":"application/x-www-form-urlencoded","type":"text"}],"body":{"mode":"formdata","formdata":[{"description":"<p>User's new fullname</p>\n","key":"fullname","type":"text","value":"John Okafor"},{"key":"residentialAddress","value":"{\n                \"formatted_address\": \"Aja, Lagos, Nigeria\",\n                \"location\": {\n                    \"coordinates\": [\n                        3.5718512,\n                        6.471745899999999\n                    ],\n                    \"type\": \"Point\"\n                },\n                \"state\": \"Lagos\",\n                \"country\": \"Nigeria\"\n            }","description":"<p>User's new address</p>\n","type":"text"}]},"url":"https://helplookforme.herokuapp.com/api/v1/users/","description":"<p>Updates a user's data</p>\n","urlObject":{"path":["users",""],"host":["https://helplookforme.herokuapp.com/api/v1"],"query":[],"variable":[]}},"response":[],"_postman_id":"ab49b06b-3d28-4537-b18f-4ab72eabea72"},{"name":"https://helplookforme.herokuapp.com/api/v1/users/email","id":"f7c75a1c-e7c3-4cfe-baaf-da9a71482238","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"PUT","header":[{"key":"Content-Type","name":"Content-Type","value":"application/x-www-form-urlencoded","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"email","value":"useremail@gmail.com","description":"<p>The user's new email</p>\n","type":"text"}]},"url":"https://helplookforme.herokuapp.com/api/v1/users/email","description":"<p>Updates the email of an authenticated email. If successful, it returns the user's new details and an updated JWT token. A confirmation email is also sent to the user's new email.</p>\n","urlObject":{"path":["users","email"],"host":["https://helplookforme.herokuapp.com/api/v1"],"query":[],"variable":[]}},"response":[],"_postman_id":"f7c75a1c-e7c3-4cfe-baaf-da9a71482238"},{"name":"https://helplookforme.herokuapp.com/api/v1/users/password","id":"a608c947-a840-4827-8411-2a6da8d47d65","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"PUT","header":[{"key":"Content-Type","name":"Content-Type","value":"application/x-www-form-urlencoded","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"currentPassword","value":"current-password","description":"<p>The user's cureent password</p>\n","type":"text"},{"key":"newPassword","value":"new-password","description":"<p>The user's new password</p>\n","type":"text"}]},"url":"https://helplookforme.herokuapp.com/api/v1/users/password","description":"<p>Updates the password of an authenticated user.</p>\n","urlObject":{"path":["users","password"],"host":["https://helplookforme.herokuapp.com/api/v1"],"query":[],"variable":[]}},"response":[],"_postman_id":"a608c947-a840-4827-8411-2a6da8d47d65"}],"id":"ebe8e012-d03a-4417-bbc9-e1bb3e6454b4","description":"<p>Enpoint for users.</p>\n","event":[{"listen":"prerequest","script":{"id":"57075106-9ddf-4c9e-b4d4-d2db77bc4ba4","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"b23be8bd-9098-4a7f-8a9f-1160afd6a8fb","type":"text/javascript","exec":[""]}}],"_postman_id":"ebe8e012-d03a-4417-bbc9-e1bb3e6454b4"},{"name":"Case","item":[{"name":"https://helplookforme.herokuapp.com/api/v1/cases","id":"43cf379a-d954-454a-91b6-f4f438f40194","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://helplookforme.herokuapp.com/api/v1/cases?status=case-status&offset=0&limit=10","description":"<p>Retrieves the list of reported cases.</p>\n","urlObject":{"path":["cases"],"host":["https://helplookforme.herokuapp.com/api/v1"],"query":[{"description":{"content":"<p>The status of cases to retrieve. It can be any of the following value: 'all', 'closed'. If no status is specified, it retrieves all open cases</p>\n","type":"text/plain"},"key":"status","value":"case-status"},{"description":{"content":"<p>The number of resources to skip</p>\n","type":"text/plain"},"key":"offset","value":"0"},{"description":{"content":"<p>The maximum numer of resources to retrieve</p>\n","type":"text/plain"},"key":"limit","value":"10"}],"variable":[]}},"response":[{"id":"bd9dc74e-7718-4faf-bfc6-3b0f705bb1ff","name":"https://helplookforme.herokuapp.com/api/v1/cases","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://helplookforme.herokuapp.com/api/v1/cases?status=case-status&offset=0&limit=10","host":["https://helplookforme.herokuapp.com/api/v1"],"path":["cases"],"query":[{"key":"status","value":"case-status","description":"The status of cases to retrieve. It can be any of the following value: 'all', 'closed'"},{"key":"offset","value":"0","description":"The number of resources to skip"},{"key":"limit","value":"10","description":"The maximum numer of resources to retrieve"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"bdc-2PjFTLXNLwf5+uSl0i2zG3ukFro\""},{"key":"Vary","value":"Accept-Encoding"},{"key":"Content-Encoding","value":"gzip"},{"key":"Date","value":"Fri, 17 Jan 2020 19:10:30 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": [\n        {\n            \"_id\": \"5e09ed1cb065be2c7b40abfb\",\n            \"nicknames\": [],\n            \"solved\": false,\n            \"fullname\": \"Jane Qui\",\n            \"age\": 21,\n            \"residentialAddress\": {\n                \"formatted_address\": \"Lyon, France\",\n                \"location\": {\n                    \"coordinates\": [\n                        4.835658999999964,\n                        45.764043\n                    ],\n                    \"type\": \"Point\"\n                },\n                \"state\": \"Auvergne-Rhône-Alpes\",\n                \"country\": \"France\"\n            },\n            \"gender\": \"FEMALE\",\n            \"language\": \"French\",\n            \"addressLastSeen\": {\n                \"formatted_address\": \"Paris, France\",\n                \"location\": {\n                    \"coordinates\": [\n                        2.3522219000000177,\n                        48.85661400000001\n                    ],\n                    \"type\": \"Point\"\n                },\n                \"state\": \"Île-de-France\",\n                \"country\": \"France\"\n            },\n            \"dateLastSeen\": \"2019-12-30T12:25:48.000Z\",\n            \"reportedBy\": \"5e0119710aed9847f92dcb4b\",\n            \"photoURL\": \"https://res.cloudinary.com/georgeben/image/upload/v1577708828/report_missing_people/case_photos/kpme8t3ddjtmlpklnqdi.jpg\",\n            \"cloudinaryPhotoID\": \"report_missing_people/case_photos/kpme8t3ddjtmlpklnqdi\",\n            \"createdAt\": \"2019-12-30T12:27:08.909Z\",\n            \"updatedAt\": \"2019-12-30T12:27:08.909Z\",\n            \"description\": \"Jane Qui  who is a 21 year old FEMALE got missing on Mon Dec 30 2019 at Paris, France, in Île-de-France, France.\",\n            \"slug\": \"jane-qui\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"5e0a6d9767a1e24afdfbbb2f\",\n            \"nicknames\": [],\n            \"solved\": false,\n            \"fullname\": \"Uche Amaka\",\n            \"age\": 28,\n            \"residentialAddress\": {\n                \"formatted_address\": \"Nsukka, Nigeria\",\n                \"location\": {\n                    \"coordinates\": [\n                        7.373265500000002,\n                        6.8429422\n                    ],\n                    \"type\": \"Point\"\n                },\n                \"state\": \"Enugu\",\n                \"country\": \"Nigeria\"\n            },\n            \"gender\": \"FEMALE\",\n            \"language\": \"Igbo\",\n            \"addressLastSeen\": {\n                \"formatted_address\": \"Ikeja, Nigeria\",\n                \"location\": {\n                    \"coordinates\": [\n                        3.3514863000000332,\n                        6.601838\n                    ],\n                    \"type\": \"Point\"\n                },\n                \"state\": \"Lagos\",\n                \"country\": \"Nigeria\"\n            },\n            \"dateLastSeen\": \"2019-12-30T21:33:59.000Z\",\n            \"reportedBy\": \"5e0119710aed9847f92dcb4b\",\n            \"photoURL\": \"https://res.cloudinary.com/georgeben/image/upload/v1577741718/report_missing_people/case_photos/nstpny5h44zk9gsb8qqb.png\",\n            \"cloudinaryPhotoID\": \"report_missing_people/case_photos/nstpny5h44zk9gsb8qqb\",\n            \"createdAt\": \"2019-12-30T21:35:19.164Z\",\n            \"updatedAt\": \"2019-12-30T21:35:19.164Z\",\n            \"description\": \"Uche Amaka  who is a 28 year old FEMALE got missing on Mon Dec 30 2019 at Ikeja, Nigeria, in Lagos, Nigeria.\",\n            \"slug\": \"uche-amaka\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"5e0b483ee18adc4fe019ee92\",\n            \"nicknames\": [],\n            \"solved\": false,\n            \"fullname\": \"Matt Dan\",\n            \"age\": 25,\n            \"residentialAddress\": {\n                \"formatted_address\": \"Lagos - Ibadan Expy, Ojodu, Lagos, Nigeria\",\n                \"location\": {\n                    \"coordinates\": [\n                        3.385813800000051,\n                        6.647912\n                    ],\n                    \"type\": \"Point\"\n                },\n                \"state\": \"Lagos\",\n                \"country\": \"Nigeria\"\n            },\n            \"gender\": \"MALE\",\n            \"language\": \"English\",\n            \"addressLastSeen\": {\n                \"formatted_address\": \"Ikeja, Nigeria\",\n                \"location\": {\n                    \"coordinates\": [\n                        3.3514863000000332,\n                        6.601838\n                    ],\n                    \"type\": \"Point\"\n                },\n                \"state\": \"Lagos\",\n                \"country\": \"Nigeria\"\n            },\n            \"dateLastSeen\": \"2019-12-31T13:06:15.000Z\",\n            \"reportedBy\": \"5e0119710aed9847f92dcb4b\",\n            \"photoURL\": \"https://res.cloudinary.com/georgeben/image/upload/v1577797693/report_missing_people/case_photos/hyxmfibixw5m5x9tjnca.jpg\",\n            \"cloudinaryPhotoID\": \"report_missing_people/case_photos/hyxmfibixw5m5x9tjnca\",\n            \"createdAt\": \"2019-12-31T13:08:14.174Z\",\n            \"updatedAt\": \"2019-12-31T13:08:14.174Z\",\n            \"description\": \"Matt Dan  who is a 25 year old MALE got missing on Tue Dec 31 2019 at Ikeja, Nigeria, in Lagos, Nigeria.\",\n            \"slug\": \"matt-dan\",\n            \"__v\": 0\n        }\n    ]\n}"}],"_postman_id":"43cf379a-d954-454a-91b6-f4f438f40194"},{"name":"https://helplookforme.herokuapp.com/api/v1/cases/case-slug/related","id":"e13d85c8-441e-426e-86ae-6dfb2d632334","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","value":"application/x-www-form-urlencoded","type":"text"}],"url":"https://helplookforme.herokuapp.com/api/v1/cases/case-slug/related","description":"<p>Retrieves cases that are related to a case. Cases are related if they are reported in places close together. This endpoint returns the list of cases closest (in location) to the specified case.</p>\n","urlObject":{"path":["cases","case-slug","related"],"host":["https://helplookforme.herokuapp.com/api/v1"],"query":[],"variable":[]}},"response":[{"id":"a003da7c-931f-41af-9d5e-3a96b23144eb","name":"https://helplookforme.herokuapp.com/api/v1/cases/ben-ten/related","originalRequest":{"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","value":"application/x-www-form-urlencoded","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[]},"url":"https://helplookforme.herokuapp.com/api/v1/cases/user-slug/related"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"808-jDM0TgIz3iZyHunZxbff2EysnGw\""},{"key":"Vary","value":"Accept-Encoding"},{"key":"Content-Encoding","value":"gzip"},{"key":"Date","value":"Fri, 17 Jan 2020 17:18:03 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"cases\": [\n            {\n                \"_id\": \"5e1b3b3e3b0f733c286774c2\",\n                \"nicknames\": [],\n                \"solved\": false,\n                \"fullname\": \"Mad ohhhh\",\n                \"age\": 12,\n                \"residentialAddress\": {\n                    \"formatted_address\": \"10310 Bayel, France\",\n                    \"location\": {\n                        \"coordinates\": [\n                            4.776979,\n                            48.198794\n                        ],\n                        \"type\": \"Point\"\n                    },\n                    \"state\": \"France\",\n                    \"country\": \"10310\"\n                },\n                \"gender\": \"MALE\",\n                \"language\": \"Enhd\",\n                \"addressLastSeen\": {\n                    \"formatted_address\": \"Laguna Beach, CA, USA\",\n                    \"location\": {\n                        \"coordinates\": [\n                            -117.7853568,\n                            33.5427189\n                        ],\n                        \"type\": \"Point\"\n                    },\n                    \"state\": \"California\",\n                    \"country\": \"United States\"\n                },\n                \"dateLastSeen\": \"2020-01-12T15:28:21.000Z\",\n                \"reportedBy\": \"5e0dcba8e9a73376435b8cd0\",\n                \"photoURL\": \"https://res.cloudinary.com/georgeben/image/upload/v1578842940/report_missing_people/case_photos/jlc7vf9ij24dqjvw7zrx.jpg\",\n                \"cloudinaryPhotoID\": \"report_missing_people/case_photos/jlc7vf9ij24dqjvw7zrx\",\n                \"createdAt\": \"2020-01-12T15:29:02.157Z\",\n                \"updatedAt\": \"2020-01-12T22:55:32.762Z\",\n                \"description\": \"Mad ohhhh  who is a 12 year old male got missing on Sun Jan 12 2020 at Laguna Beach, CA, USA, in California, United States.\",\n                \"slug\": \"mad-ohhhh\",\n                \"__v\": 0\n            },\n            {\n                \"_id\": \"5e1c3a65e7962b177d6862b0\",\n                \"nicknames\": [],\n                \"solved\": false,\n                \"fullname\": \"Local test\",\n                \"age\": 12,\n                \"residentialAddress\": {\n                    \"formatted_address\": \"Bayelsa, Nigeria\",\n                    \"location\": {\n                        \"coordinates\": [\n                            5.898713900000001,\n                            4.867776699999999\n                        ],\n                        \"type\": \"Point\"\n                    },\n                    \"state\": \"Bayelsa\",\n                    \"country\": \"Nigeria\"\n                },\n                \"gender\": \"MALE\",\n                \"language\": \"Ijaw\",\n                \"addressLastSeen\": {\n                    \"formatted_address\": \"Riverside, CA, USA\",\n                    \"location\": {\n                        \"coordinates\": [\n                            -117.3754942,\n                            33.9806005\n                        ],\n                        \"type\": \"Point\"\n                    },\n                    \"state\": \"California\",\n                    \"country\": \"United States\"\n                },\n                \"dateLastSeen\": \"2020-01-13T09:36:18.000Z\",\n                \"reportedBy\": \"5e0dcba8e9a73376435b8cd0\",\n                \"photoURL\": \"https://res.cloudinary.com/georgeben/image/upload/v1578908260/report_missing_people/case_photos/otrzxfzc249simbeixve.jpg\",\n                \"cloudinaryPhotoID\": \"report_missing_people/case_photos/otrzxfzc249simbeixve\",\n                \"createdAt\": \"2020-01-13T09:37:41.326Z\",\n                \"updatedAt\": \"2020-01-13T09:37:41.326Z\",\n                \"description\": \"Local test  who is a 12 year old male got missing on Mon Jan 13 2020 at Riverside, CA, USA, in California, United States.\",\n                \"slug\": \"local-test\",\n                \"__v\": 0\n            }\n        ]\n    }\n}"}],"_postman_id":"e13d85c8-441e-426e-86ae-6dfb2d632334"},{"name":"https://helplookforme.herokuapp.com/api/v1/cases/case-slug","id":"c4d63c53-9add-445f-894f-4a9795772572","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[],"url":"https://helplookforme.herokuapp.com/api/v1/cases/case-slug","description":"<p>Retrieves data about a case.</p>\n","urlObject":{"path":["cases","case-slug"],"host":["https://helplookforme.herokuapp.com/api/v1"],"query":[],"variable":[]}},"response":[{"id":"dd5db9dd-05ee-44f4-a21b-ba6ae6490786","name":"https://helplookforme.herokuapp.com/api/v1/cases/user-slug","originalRequest":{"method":"GET","header":[],"url":"https://helplookforme.herokuapp.com/api/v1/cases/user-slug"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"971"},{"key":"ETag","value":"W/\"3cb-fdwkwakR0MyrOZ7bNJiTP3ykJd4\""},{"key":"Vary","value":"Accept-Encoding"},{"key":"Date","value":"Fri, 17 Jan 2020 17:03:34 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"case\": {\n            \"residentialAddress\": {\n                \"formatted_address\": \"40026 Imola, Metropolitan City of Bologna, Italy\",\n                \"location\": {\n                    \"coordinates\": [\n                        11.712429400000019,\n                        44.35999959999999\n                    ],\n                    \"type\": \"Point\"\n                },\n                \"state\": \"Italy\",\n                \"country\": \"40026\"\n            },\n            \"addressLastSeen\": {\n                \"formatted_address\": \"Los Angeles, CA, USA\",\n                \"location\": {\n                    \"coordinates\": [\n                        -118.2436849,\n                        34.0522342\n                    ],\n                    \"type\": \"Point\"\n                },\n                \"state\": \"California\",\n                \"country\": \"United States\"\n            },\n            \"physicalInformation\": {\n                \"height\": 0.5\n            },\n            \"nicknames\": [],\n            \"solved\": false,\n            \"_id\": \"5e03722e9e4b2282b8bdfaf8\",\n            \"fullname\": \"John Bull\",\n            \"age\": 7,\n            \"gender\": \"MALE\",\n            \"language\": \"Italia\",\n            \"dateLastSeen\": \"2019-12-25T14:27:52.000Z\",\n            \"reportedBy\": \"5dfcae3305f27a2adc5e38fc\",\n            \"photoURL\": \"https://res.cloudinary.com/georgeben/image/upload/v1577284141/report_missing_people/case_photos/np8vdoh1usiy6u0y2mvp.png\",\n            \"cloudinaryPhotoID\": \"report_missing_people/case_photos/np8vdoh1usiy6u0y2mvp\",\n            \"createdAt\": \"2019-12-25T14:29:02.419Z\",\n            \"updatedAt\": \"2019-12-25T14:29:02.419Z\",\n            \"slug\": \"john-bull\",\n            \"__v\": 0\n        }\n    }\n}"}],"_postman_id":"c4d63c53-9add-445f-894f-4a9795772572"},{"name":"https://helplookforme.herokuapp.com/api/v1/cases","id":"329182d2-70ad-465f-81f4-0895866fd06b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"fullname","value":"John Okafor","description":"<p>The fullname of the missing person</p>\n","type":"text"},{"key":"nicknames","value":"['nicknames]","description":"<p>An array of the missing person's nickname</p>\n","type":"text","contentType":""},{"key":"residentialAddress","value":"{\n                \"formatted_address\": \"Aja, Lagos, Nigeria\",\n                \"location\": {\n                    \"coordinates\": [\n                        3.5718512,\n                        6.471745899999999\n                    ],\n                    \"type\": \"Point\"\n                },\n                \"state\": \"Lagos\",\n                \"country\": \"Nigeria\"\n            }","description":"<p>The residential address of the missing person</p>\n","type":"text"},{"key":"gender","value":"MALE","description":"<p>The missing person's gender. Values can be 'MALE' or 'FEMALE'</p>\n","type":"text"},{"key":"language","value":"English","description":"<p>The language spoken by the missing person</p>\n","type":"text"},{"key":"addressLastSeen","value":"{\n    \"formatted_address\": \"Garki, Abuja, Nigeria\",\n    \"location\": {\n      \"coordinates\": [\n        7.482812200000012,\n        9.031895899999999\n      ],\n      \"type\": \"Point\"\n    },\n    \"state\": \"Federal Capital Territory\",\n    \"country\": \"Nigeria\"\n  }","description":"<p>The address the missing person was seen last</p>\n","type":"text"},{"key":"dateLastSeen","value":"2019-12-19T12:44:00.000Z","description":"<p>The date the person got missing</p>\n","type":"text"},{"key":"lastSeenClothing","value":"Cloth description","description":"<p>The last cloth the missing person was seen wearing</p>\n","type":"text"},{"key":"eventCircumstances","value":"Event circumstances","description":"<p>Description of how the person got missing</p>\n","type":"text"},{"key":"physicalInformation","value":"{\n      specialCharacteristics: 'Special characteristics like tribal marks, scars, tattoos',\n      weight:  '72',\nheight: '1.5',\nhealthInformation: 'Describe any medical information of the missing person e.g disabilities'\n    }","description":"<p>The missing person's physical information</p>\n","type":"text","contentType":""},{"key":"recaptchaToken","value":"your-recaptcha-token","description":"<p>Used to validate that the request is not made by a web robot.</p>\n","type":"text"},{"key":"casePhoto","description":"<p>The photo of the missing person</p>\n","type":"file","value":null}]},"url":"https://helplookforme.herokuapp.com/api/v1/cases","description":"<p>Reports a missing person case.</p>\n","urlObject":{"path":["cases"],"host":["https://helplookforme.herokuapp.com/api/v1"],"query":[],"variable":[]}},"response":[],"_postman_id":"329182d2-70ad-465f-81f4-0895866fd06b"},{"name":"https://helplookforme.herokuapp.com/api/v1/cases/case-slug","id":"515367fe-f53d-4639-99cf-da8abc459918","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"PUT","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/x-www-form-urlencoded"}],"body":{"mode":"formdata","formdata":[{"key":"fullname","value":"John Okafor","type":"text","description":"<p>The fullname of the missing person</p>\n"},{"key":"nicknames","value":"['nicknames]","type":"text","description":"<p>An array of the missing person's nickname</p>\n"},{"key":"residentialAddress","value":"{\n                \"formatted_address\": \"Aja, Lagos, Nigeria\",\n                \"location\": {\n                    \"coordinates\": [\n                        3.5718512,\n                        6.471745899999999\n                    ],\n                    \"type\": \"Point\"\n                },\n                \"state\": \"Lagos\",\n                \"country\": \"Nigeria\"\n            }","type":"text","description":"<p>The residential address of the missing person</p>\n"},{"key":"gender","value":"MALE","type":"text","description":"<p>The missing person's gender. Values can be 'MALE' or 'FEMALE'</p>\n"},{"key":"language","value":"English","type":"text","description":"<p>The language spoken by the missing person</p>\n"},{"key":"addressLastSeen","value":"{\n    \"formatted_address\": \"Garki, Abuja, Nigeria\",\n    \"location\": {\n      \"coordinates\": [\n        7.482812200000012,\n        9.031895899999999\n      ],\n      \"type\": \"Point\"\n    },\n    \"state\": \"Federal Capital Territory\",\n    \"country\": \"Nigeria\"\n  }","type":"text","description":"<p>The address the missing person was seen last</p>\n"},{"key":"dateLastSeen","value":"2019-12-19T12:44:00.000Z","type":"text","description":"<p>The date the person got missing</p>\n"},{"key":"lastSeenClothing","value":"Cloth description","type":"text","description":"<p>The last cloth the missing person was seen wearing</p>\n"},{"key":"eventCircumstances","value":"Event circumstances","type":"text","description":"<p>Description of how the person got missing</p>\n"},{"key":"physicalInformation","value":"{\n      specialCharacteristics: 'Special characteristics like tribal marks, scars, tattoos',\n      weight:  '72',\nheight: '1.5',\nhealthInformation: 'Describe any medical information of the missing person e.g disabilities'\n    }","type":"text","description":"<p>The missing person's physical information</p>\n"},{"key":"recaptchaToken","value":"your-recaptcha-token","type":"text","description":"<p>Used to validate that the request is not made by a web robot</p>\n"},{"key":"casePhoto","description":"<p>The photo of the missing person</p>\n","type":"file","value":null}]},"url":"https://helplookforme.herokuapp.com/api/v1/cases/case-slug","description":"<p>Updates the data about a reported case.</p>\n","urlObject":{"path":["cases","case-slug"],"host":["https://helplookforme.herokuapp.com/api/v1"],"query":[],"variable":[]}},"response":[],"_postman_id":"515367fe-f53d-4639-99cf-da8abc459918"},{"name":"https://helplookforme.herokuapp.com/api/v1/cases/case-slug/status?solved=true","id":"9741e60f-06f7-498e-b6ea-f10c220c740c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"PUT","header":[],"url":"https://helplookforme.herokuapp.com/api/v1/cases/case-slug/status?solved=true","description":"<p>Updates a case status. A case can either be closed or open.</p>\n","urlObject":{"path":["cases","case-slug","status"],"host":["https://helplookforme.herokuapp.com/api/v1"],"query":[{"description":{"content":"<p>If set to true, the case will be closed.</p>\n","type":"text/plain"},"key":"solved","value":"true"}],"variable":[]}},"response":[],"_postman_id":"9741e60f-06f7-498e-b6ea-f10c220c740c"}],"id":"536f0c2e-981d-45fa-be7d-8dbbf8d2b2b5","description":"<p>Endpoint for reported cases</p>\n","event":[{"listen":"prerequest","script":{"id":"6752e04b-ede0-40f4-aa22-518923bd5e91","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"a33d225a-0168-4655-b9eb-a936274d0c08","type":"text/javascript","exec":[""]}}],"_postman_id":"536f0c2e-981d-45fa-be7d-8dbbf8d2b2b5"},{"name":"Newsletter","item":[{"name":"https://helplookforme.herokuapp.com/api/v1/newsletter","id":"80c82d28-1c0f-420e-b38f-a18adad649e2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"email\": \"useremail@gmail.com\",\n\t\"frequency\": \"DAILY\",\n\t\"address\": \"{\n                \"formatted_address\": \"Aja, Lagos, Nigeria\",\n                \"location\": {\n                    \"coordinates\": [\n                        3.5718512,\n                        6.471745899999999\n                    ],\n                    \"type\": \"Point\"\n                },\n                \"state\": \"Lagos\",\n                \"country\": \"Nigeria\"\n            }\"\n}\n"},"url":"https://helplookforme.herokuapp.com/api/v1/newsletter","description":"<p>Endpoint for subscribing to the newsletter</p>\n","urlObject":{"path":["newsletter"],"host":["https://helplookforme.herokuapp.com/api/v1"],"query":[],"variable":[]}},"response":[],"_postman_id":"80c82d28-1c0f-420e-b38f-a18adad649e2"},{"name":"https://helplookforme.herokuapp.com/api/v1/newsletter/","id":"51e238e4-0880-4059-a675-ceffbfec40f2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"PUT","header":[{"key":"Content-Type","name":"Content-Type","value":"application/x-www-form-urlencoded","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"frequency","value":"WEEKLY","type":"text"},{"key":"address","value":"{\n                \"formatted_address\": \"Aja, Lagos, Nigeria\",\n                \"location\": {\n                    \"coordinates\": [\n                        3.5718512,\n                        6.471745899999999\n                    ],\n                    \"type\": \"Point\"\n                },\n                \"state\": \"Lagos\",\n                \"country\": \"Nigeria\"\n            }","type":"text","disabled":true},{"key":"newEmail","value":"useremail@gmail.com","type":"text"}]},"url":"https://helplookforme.herokuapp.com/api/v1/newsletter/","description":"<p>Updates the newsletter subscription settings of a newsletter subscriber.</p>\n","urlObject":{"path":["newsletter",""],"host":["https://helplookforme.herokuapp.com/api/v1"],"query":[],"variable":[]}},"response":[],"_postman_id":"51e238e4-0880-4059-a675-ceffbfec40f2"},{"name":"https://helplookforme.herokuapp.com/api/v1/newsletter/","id":"b9cebea7-9523-468f-ae7c-27dc2bf0e5e4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"DELETE","header":[{"key":"Content-Type","name":"Content-Type","value":"application/x-www-form-urlencoded","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[]},"url":"https://helplookforme.herokuapp.com/api/v1/newsletter/","description":"<p>Unsubscribes a user from receiving newsletter alerts.</p>\n","urlObject":{"path":["newsletter",""],"host":["https://helplookforme.herokuapp.com/api/v1"],"query":[],"variable":[]}},"response":[],"_postman_id":"b9cebea7-9523-468f-ae7c-27dc2bf0e5e4"},{"name":"https://helplookforme.herokuapp.com/api/v1/newsletter","id":"8c4b587f-28dd-40ba-9dfd-bede13871bc9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://helplookforme.herokuapp.com/api/v1/newsletter","description":"<p>Retrieves all the newsletter subscribers.</p>\n","urlObject":{"path":["newsletter"],"host":["https://helplookforme.herokuapp.com/api/v1"],"query":[],"variable":[]}},"response":[],"_postman_id":"8c4b587f-28dd-40ba-9dfd-bede13871bc9"}],"id":"bbdb7283-f1f3-4778-9624-46fb6a34c495","description":"<p>Endpoint for newsletter.</p>\n","event":[{"listen":"prerequest","script":{"id":"ec660e8a-7911-42ad-85b9-f87d6362cb5d","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"e0f9e6b7-0a3d-4438-a731-af8ec0baea28","type":"text/javascript","exec":[""]}}],"_postman_id":"bbdb7283-f1f3-4778-9624-46fb6a34c495"},{"name":"Contact","item":[{"name":"https://helplookforme.herokuapp.com/api/v1/contact","id":"a3ecb409-c48a-45c5-a406-3e3840dc03f0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/x-www-form-urlencoded","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"email","value":"useremail@gmail.com","description":"<p>The email of the sender</p>\n","type":"text"},{"key":"fullname","value":"John Okafor","description":"<p>The fullname of the sender</p>\n","type":"text"},{"key":"message","value":"message","description":"<p>The message to send to the helplookforme team</p>\n","type":"text"}]},"url":"https://helplookforme.herokuapp.com/api/v1/contact","description":"<p>Sends an email to the helplookforme team. Use this endpoint for contactig the helplookforme team.</p>\n","urlObject":{"path":["contact"],"host":["https://helplookforme.herokuapp.com/api/v1"],"query":[],"variable":[]}},"response":[],"_postman_id":"a3ecb409-c48a-45c5-a406-3e3840dc03f0"}],"id":"1c5adf47-0574-4d40-97d5-4e06b1d69c63","description":"<p>Endpoint for sending contact emails.</p>\n","event":[{"listen":"prerequest","script":{"id":"40086f2e-4b8e-4626-8974-049bd3e69fd8","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"19cb4798-0c70-4bd5-92d6-4aa5e959965f","type":"text/javascript","exec":[""]}}],"_postman_id":"1c5adf47-0574-4d40-97d5-4e06b1d69c63"}],"event":[{"listen":"prerequest","script":{"id":"b143a12c-3e55-4b7d-91c2-5ea2e5b9e5ff","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"0cf8cacb-1d86-4d31-9a17-2841f1d68f68","type":"text/javascript","exec":[""]}}],"variable":[{"key":"baseUrl","value":"https://helplookforme.herokuapp.com/api/v1"},{"key":"slug","value":"user-slug"},{"key":"email","value":"useremail@gmail.com"},{"key":"password","value":"your-password"},{"key":"fullname","value":"John Okafor"},{"key":"address","value":"{\n                \"formatted_address\": \"Aja, Lagos, Nigeria\",\n                \"location\": {\n                    \"coordinates\": [\n                        3.5718512,\n                        6.471745899999999\n                    ],\n                    \"type\": \"Point\"\n                },\n                \"state\": \"Lagos\",\n                \"country\": \"Nigeria\"\n            }"},{"key":"id_token","value":"your-google-id-token"},{"key":"facebook_access_token","value":"your-facebook-access-token"},{"key":"oauth_token","value":"twitter-oauth-token"},{"key":"oauth_verifier","value":"twitter-oauth-verifier"},{"key":"password_reset_token","value":"password-reset-token"},{"key":"new_password","value":"new-password"},{"key":"case_status","value":"case-status"},{"key":"offset","value":"0"},{"key":"limit","value":"10"},{"key":"gender","value":"MALE"},{"key":"language","value":"English"},{"key":"address_2","value":"{\n    \"formatted_address\": \"Garki, Abuja, Nigeria\",\n    \"location\": {\n      \"coordinates\": [\n        7.482812200000012,\n        9.031895899999999\n      ],\n      \"type\": \"Point\"\n    },\n    \"state\": \"Federal Capital Territory\",\n    \"country\": \"Nigeria\"\n  }"},{"key":"date_last_seen","value":"2019-12-19T12:44:00.000Z"},{"key":"clothing","value":"Cloth description"},{"key":"event_circumstances","value":"Event circumstances"},{"key":"physical_information","value":"{\n      specialCharacteristics: 'Special characteristics like tribal marks, scars, tattoos',\n      weight:  '72',\nheight: '1.5',\nhealthInformation: 'Describe any medical information of the missing person e.g disabilities'\n    }"},{"key":"case_slug","value":"case-slug"}]}