{"info":{"_postman_id":"125015e9-0d4b-4d21-bc90-73dce2f61039","name":"Adware Backend API","description":"<html><head></head><body><p>An API for the Adware Ads Network Server for both publishers and Advertisers</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"11964368","collectionId":"125015e9-0d4b-4d21-bc90-73dce2f61039","publishedId":"T1LPCmgy","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2020-08-14T10:20:00.000Z"},"item":[{"name":"User Authentication","item":[{"name":"User Login Endpoint","id":"a7c673f4-c459-40c3-87a2-0091b381cafc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"email","value":"olaniyiojeyinka@gmail.com","description":"<p>Registered Email</p>\n","type":"text"},{"key":"password","value":"test","description":"<p>minimum of four characters</p>\n","type":"text"}]},"url":"http://localhost:8006/api/user/login","description":"<p>Incorrect email or password</p>\n","urlObject":{"protocol":"http","port":"8006","path":["api","user","login"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"74effc5e-12a2-4798-8b49-9bd05698a3d2","name":"User Login Endpoint:Invalid credential supplied","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"email","value":"olaniyiojeyinka@gmail.com","description":"Registered Email","type":"text"},{"key":"password","value":"testt","description":"minimum of four characters","type":"text"}]},"url":"http://localhost:8006/api/user/login"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:8006"},{"key":"Date","value":"Fri, 14 Aug 2020 10:15:31 GMT"},{"key":"Date","value":"Fri, 14 Aug 2020 10:15:31 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/7.3.12"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Content-Type","value":"application/json"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"59"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"result\": 0,\n    \"error\": \"INVALID credentials\"\n}"},{"id":"89164b1c-3baf-4fbc-ab16-74dfbdac3f26","name":"User Login Endpoint: Successfull Sign in","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"email","value":"olaniyiojeyinka@gmail.com","description":"Registered Email","type":"text"},{"key":"password","value":"test","description":"minimum of four characters","type":"text"}]},"url":"http://localhost:8006/api/user/login"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:8006"},{"key":"Date","value":"Fri, 14 Aug 2020 10:16:03 GMT"},{"key":"Date","value":"Fri, 14 Aug 2020 10:16:03 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/7.3.12"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Content-Type","value":"application/json"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"56"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"result\": 1,\n    \"data\": {\n        \"token\": \"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOlwvXC9sb2NhbGhvc3Q6ODAwNlwvYXBpXC91c2VyXC9sb2dpbiIsImlhdCI6MTU5NzQwMDE2MiwiZXhwIjoxNTk3NDAzNzYyLCJuYmYiOjE1OTc0MDAxNjIsImp0aSI6IlFSQ3c1dHd0NGhTRkExRkQiLCJzdWIiOjIsInBydiI6Ijg3ZTBhZjFlZjlmZDE1ODEyZmRlYzk3MTUzYTE0ZTBiMDQ3NTQ2YWEifQ.i2GHWBO8euxuT1hePGeoAETmpv2q0kSGkzrQw0hBcfs\",\n        \"user_id\": 2\n    }\n}"},{"id":"b1074321-981f-4fd9-9fc1-b7be07d7d3df","name":"User Login Endpoint:successful login","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"email","value":"olaniyiojeyinka@gmail.com","description":"Registered Email","type":"text"},{"key":"password","value":"test","description":"minimum of four characters","type":"text"}]},"url":"http://localhost:8006/api/user/login"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:8006"},{"key":"Date","value":"Fri, 14 Aug 2020 10:16:03 GMT"},{"key":"Date","value":"Fri, 14 Aug 2020 10:16:03 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/7.3.12"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Content-Type","value":"application/json"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"56"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"result\": 1,\n    \"data\": {\n        \"token\": \"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOlwvXC9sb2NhbGhvc3Q6ODAwNlwvYXBpXC91c2VyXC9sb2dpbiIsImlhdCI6MTU5NzQwMDE2MiwiZXhwIjoxNTk3NDAzNzYyLCJuYmYiOjE1OTc0MDAxNjIsImp0aSI6IlFSQ3c1dHd0NGhTRkExRkQiLCJzdWIiOjIsInBydiI6Ijg3ZTBhZjFlZjlmZDE1ODEyZmRlYzk3MTUzYTE0ZTBiMDQ3NTQ2YWEifQ.i2GHWBO8euxuT1hePGeoAETmpv2q0kSGkzrQw0hBcfs\",\n        \"user_id\": 2\n    }\n}"}],"_postman_id":"a7c673f4-c459-40c3-87a2-0091b381cafc"},{"name":"User Registration Endpoint","id":"59f01302-6c5b-448b-8484-8c1ca6170593","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"firstname","value":"Olaniyi","description":"<p>firstname</p>\n","type":"text"},{"key":"lastname","value":"Ojeyinka","description":"<p>lastname</p>\n","type":"text"},{"key":"phone","value":"2347086825489","description":"<p>Mobile number with numeric validation</p>\n","type":"text"},{"key":"password","value":"test","description":"<p>password must be greater than 4</p>\n","type":"text"},{"key":"country_id","value":"6","description":"<p>country id from db</p>\n","type":"text"}]},"url":"http://localhost:8006/api/user/register","description":"<p>An Endpoint for user registration</p>\n","urlObject":{"protocol":"http","port":"8006","path":["api","user","register"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"30abbf30-615a-4620-88b7-81bba11330c0","name":"User Registration Endpoint :Email not supplied","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"firstname","value":"Olaniyi","description":"firstname","type":"text"},{"key":"lastname","value":"Ojeyinka","description":"lastname","type":"text"},{"key":"phone","value":"2347086825489","description":"Mobile number with numeric validation","type":"text"},{"key":"password","value":"test","description":"password must be greater than 4","type":"text"},{"key":"country_id","value":"6","description":"country id from db","type":"text"}]},"url":"http://localhost:8006/api/user/register"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:8006"},{"key":"Date","value":"Fri, 14 Aug 2020 09:59:47 GMT"},{"key":"Date","value":"Fri, 14 Aug 2020 09:59:47 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/7.3.12"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Content-Type","value":"application/json"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"59"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"result\": 0,\n    \"error\": {\n        \"email\": [\n            \"Email is required\"\n        ]\n    },\n    \"data\": []\n}"},{"id":"f63a7a76-8dee-4bed-a503-3268ad823254","name":"User Registration Endpoint :Successful Registeration","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"firstname","value":"Olaniyi","description":"firstname","type":"text"},{"key":"lastname","value":"Ojeyinka","description":"lastname","type":"text"},{"key":"phone","value":"2347086825489","description":"Mobile number with numeric validation","type":"text"},{"key":"password","value":"test","description":"password must be greater than 4","type":"text"},{"key":"country_id","value":"6","description":"country id from db","type":"text"},{"key":"email","value":"olaniyiojeyinka@gmail.com","description":"valid email","type":"text"}]},"url":"http://localhost:8006/api/user/register"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:8006"},{"key":"Date","value":"Fri, 14 Aug 2020 10:01:10 GMT"},{"key":"Date","value":"Fri, 14 Aug 2020 10:01:10 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/7.3.12"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Content-Type","value":"application/json"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"59"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"result\": 1,\n    \"data\": {\n        \"report\": \"User Registered Successfully\"\n    }\n}"}],"_postman_id":"59f01302-6c5b-448b-8484-8c1ca6170593"},{"name":"User Logout","id":"b360915d-2531-4a5b-9b95-1397f55350da","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"url":"http://localhost:8006/api/user/logout","description":"<p>A endpoint for User Signout</p>\n","urlObject":{"protocol":"http","port":"8006","path":["api","user","logout"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"b360915d-2531-4a5b-9b95-1397f55350da"},{"name":"Forgot Password","id":"70e6469d-e42f-4502-bf12-42ebb079b6e2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"url":"http://localhost:8006/api/user/forgot/password?email=ola@gmail.com","description":"<p>Forgot Password endpoint</p>\n<h3 id=\"reset-password-link--handling-link-sent--with-email\">reset password link -handling link sent  with email</h3>\n<p>handle the following route and submit the token with the new password <code>reset/password/{token}</code></p>\n","urlObject":{"protocol":"http","port":"8006","path":["api","user","forgot","password"],"host":["localhost"],"query":[{"key":"email","value":"ola@gmail.com"}],"variable":[]}},"response":[{"id":"2173bc37-7fb5-4d9d-8da8-6df00f680f2e","name":"Forgot Password :user not exist","originalRequest":{"method":"POST","header":[],"url":{"raw":"http://localhost:8006/api/user/forgot/password?email=ola@gmail.com","protocol":"http","host":["localhost"],"port":"8006","path":["api","user","forgot","password"],"query":[{"key":"email","value":"ola@gmail.com"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:8006"},{"key":"Date","value":"Fri, 14 Aug 2020 11:41:34 GMT"},{"key":"Date","value":"Fri, 14 Aug 2020 11:41:34 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/7.3.12"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Content-Type","value":"application/json"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"58"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"result\": 0,\n    \"error\": {\n        \"email\": [\n            \"User with this email does not exists.\"\n        ]\n    },\n    \"data\": []\n}"},{"id":"be7f2a59-addf-484e-81a5-861e68e8f7d7","name":"Forgot Password :Success fully set password reset token","originalRequest":{"method":"POST","header":[],"url":{"raw":"http://localhost:8006/api/user/forgot/password?email=olaniyiojeyinka@gmail.com","protocol":"http","host":["localhost"],"port":"8006","path":["api","user","forgot","password"],"query":[{"key":"email","value":"olaniyiojeyinka@gmail.com","description":"Valid Email"}]}},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:8006"},{"key":"Date","value":"Fri, 14 Aug 2020 12:00:02 GMT"},{"key":"Date","value":"Fri, 14 Aug 2020 12:00:02 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/7.3.12"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Content-Type","value":"application/json"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"58"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"result\": 1,\n    \"data\": {\n        \"report\": \"Email Sent Successfully,Check you mail.\"\n    }\n}"}],"_postman_id":"70e6469d-e42f-4502-bf12-42ebb079b6e2"},{"name":"ResetPassword","id":"21af235a-2be1-4052-90f2-ab2e8ea43135","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"url":"http://localhost:8006/api/user/forgot/password?email=ola@gmail.com","description":"<p>Forgot Password endpoint</p>\n<h3 id=\"reset-password-link--handling-link-sent--with-email\">reset password link -handling link sent  with email</h3>\n<p>handle the following route and submit the token with the new password <code>reset/password/{token}</code></p>\n","urlObject":{"protocol":"http","port":"8006","path":["api","user","forgot","password"],"host":["localhost"],"query":[{"key":"email","value":"ola@gmail.com"}],"variable":[]}},"response":[{"id":"03dfa6b0-ad4f-4a33-b153-847a71118466","name":"ResetPassword: Successful Password reset","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"password","value":"newpassword","description":"The New Password","type":"text"}]},"url":"http://localhost:8006/api/user/reset/password/0d31bdc8ab8a7f30ce67bd093388da49"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:8006"},{"key":"Date","value":"Sun, 16 Aug 2020 19:09:42 GMT"},{"key":"Date","value":"Sun, 16 Aug 2020 19:09:42 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/7.3.12"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Content-Type","value":"application/json"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"58"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"result\": 1,\n    \"error\": [],\n    \"data\": {\n        \"report\": \"Password Changed Successfully.\"\n    }\n}"},{"id":"8311e455-4beb-4d29-8338-4050a853ef28","name":"ResetPassword:new password less than 4 error","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"password","value":"new","description":"The New Password","type":"text"}]},"url":"http://localhost:8006/api/user/reset/password/0d31bdc8ab8a7f30ce67bd093388da49"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:8006"},{"key":"Date","value":"Sun, 16 Aug 2020 19:10:29 GMT"},{"key":"Date","value":"Sun, 16 Aug 2020 19:10:29 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/7.3.12"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Content-Type","value":"application/json"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"59"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"result\": 0,\n    \"error\": {\n        \"password\": [\n            \"The password must be at least 4 characters.\"\n        ]\n    },\n    \"data\": []\n}"},{"id":"e70f1bd4-dd97-472b-8b39-35e02f678d07","name":"Forgot Password :user not exist","originalRequest":{"method":"POST","header":[],"url":{"raw":"http://localhost:8006/api/user/forgot/password?email=ola@gmail.com","protocol":"http","host":["localhost"],"port":"8006","path":["api","user","forgot","password"],"query":[{"key":"email","value":"ola@gmail.com"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:8006"},{"key":"Date","value":"Fri, 14 Aug 2020 11:41:34 GMT"},{"key":"Date","value":"Fri, 14 Aug 2020 11:41:34 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/7.3.12"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Content-Type","value":"application/json"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"58"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"result\": 0,\n    \"error\": {\n        \"email\": [\n            \"User with this email does not exists.\"\n        ]\n    },\n    \"data\": []\n}"},{"id":"f8d178c3-32be-4dea-af6c-0973f7d1041d","name":"Forgot Password :Success fully set password reset token","originalRequest":{"method":"POST","header":[],"url":{"raw":"http://localhost:8006/api/user/forgot/password?email=olaniyiojeyinka@gmail.com","protocol":"http","host":["localhost"],"port":"8006","path":["api","user","forgot","password"],"query":[{"key":"email","value":"olaniyiojeyinka@gmail.com","description":"Valid Email"}]}},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:8006"},{"key":"Date","value":"Fri, 14 Aug 2020 12:00:02 GMT"},{"key":"Date","value":"Fri, 14 Aug 2020 12:00:02 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/7.3.12"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Content-Type","value":"application/json"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"58"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"result\": 1,\n    \"data\": {\n        \"report\": \"Email Sent Successfully,Check you mail.\"\n    }\n}"}],"_postman_id":"21af235a-2be1-4052-90f2-ab2e8ea43135"}],"id":"f124cfcb-2ab4-43d0-84e0-bdd28cc27d33","description":"<p>For user auth</p>\n","_postman_id":"f124cfcb-2ab4-43d0-84e0-bdd28cc27d33"},{"name":"Advertiser Dashboard","item":[],"id":"5050e7b7-bee0-4908-b254-1cb3af3a28d9","description":"<p>Endpoint for user type of Advertiser</p>\n","_postman_id":"5050e7b7-bee0-4908-b254-1cb3af3a28d9"},{"name":"Publisher Dashboard API","item":[],"id":"86980199-c440-4267-a3f8-6fe245341284","description":"<p>Endpoint for user type publisher</p>\n","_postman_id":"86980199-c440-4267-a3f8-6fe245341284"},{"name":"Admin Dashboard API","item":[],"id":"67b11bee-f738-4d43-89dc-47cfe19292a1","description":"<p>API Collections for admin</p>\n","_postman_id":"67b11bee-f738-4d43-89dc-47cfe19292a1"}]}