{"info":{"_postman_id":"8be1ba88-207a-4037-b0a6-57fddec8f3ad","name":"likdom-API","description":"<html><head></head><body><p><strong>Likdom</strong> is a mobile application that allows users to book a cleaning lady and choose between several subscription offers.<br>the app is intended for professionals and individuals.</p>\n<h4 id=\"base-url\">Base URL</h4>\n<p>The base URL for all the API endpoints is <code>https://likdom.ma/api</code></p>\n<h4 id=\"error-codes\">Error Codes</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Code</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>401</td>\n<td>Unauthorized</td>\n</tr>\n<tr>\n<td>403</td>\n<td>Forbidden</td>\n</tr>\n<tr>\n<td>404</td>\n<td>Not Found</td>\n</tr>\n<tr>\n<td>422</td>\n<td>Unprocessable Entity</td>\n</tr>\n<tr>\n<td>429</td>\n<td>Too Many Requests</td>\n</tr>\n<tr>\n<td>500</td>\n<td>Internal Server Error</td>\n</tr>\n</tbody>\n</table>\n</div></body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"1635876","collectionId":"8be1ba88-207a-4037-b0a6-57fddec8f3ad","publishedId":"2s8ZDR9RvG","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"5493ff"},"publishDate":"2023-01-17T14:32:37.000Z"},"item":[{"name":"Authentication","item":[{"name":"Login","id":"387174da-5eb0-4ffa-aa0a-1cf0d975419a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"warning":"This is a duplicate header and will be overridden by the Content-Type header generated by Postman.","key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"},{"key":"x-api-key","value":"{{x-api-key}}","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"phone","value":"647129008","type":"text","description":"<p>required | string | size:9</p>\n"},{"key":"password","value":"password","type":"text","description":"<p>required | string | min:8</p>\n"}]},"url":"https://likdom.ma/api/login","urlObject":{"protocol":"https","path":["api","login"],"host":["likdom","ma"],"query":[],"variable":[]}},"response":[{"id":"42ea909a-b8dd-4c4a-a2eb-985a37bc2dad","name":"successful request","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"},{"key":"x-api-key","value":"{{x-api-key}}","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"phone","value":"644330013","type":"text"},{"key":"password","value":"passpass","type":"text"}]},"url":"https://likdom.ma/api/login"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 12 Jan 2023 17:00:36 GMT"},{"key":"Server","value":"Apache"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"59"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"access-token\": \"5|YYTfeXan9qZMqFJrhsyXpMoAe2AA0q7t4tpyCA63\"\n}"},{"id":"f0e6006f-6fc4-4948-b84c-387b9edeac8e","name":"failed request : incorrect credentials","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"},{"key":"x-api-key","value":"{{x-api-key}}","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"phone","value":"0644330013","type":"text"},{"key":"password","value":"wrong_password","type":"text"}]},"url":"https://likdom.ma/api/login"},"status":"Unprocessable Content","code":422,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 12 Jan 2023 16:55:08 GMT"},{"key":"Server","value":"Apache"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"59"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"The given data was invalid.\",\n    \"errors\": {\n        \"phone\": [\n            \"The provided credentials are incorrect.\"\n        ]\n    }\n}"}],"_postman_id":"387174da-5eb0-4ffa-aa0a-1cf0d975419a"},{"name":"Validate register","id":"7413f487-1897-48e4-acfe-afb82f1c9fd1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"},{"warning":"This is a duplicate header and will be overridden by the Content-Type header generated by Postman.","key":"Content-Type","value":"application/json","type":"text"},{"key":"x-api-key","value":"{{x-api-key}}","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"name","value":"user name","type":"text"},{"key":"email","value":"test@tesmail.com","type":"text"},{"key":"phone","value":"644320011","type":"text"},{"key":"password","value":"passpass","type":"text"},{"key":"password_confirmation","value":"passpass","type":"text"}]},"url":"https://likdom.ma/api/validate-register","urlObject":{"protocol":"https","path":["api","validate-register"],"host":["likdom","ma"],"query":[],"variable":[]}},"response":[{"id":"d1a59b70-0bbb-46fc-b6f7-65460057b601","name":"successful request","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"},{"warning":"This is a duplicate header and will be overridden by the Content-Type header generated by Postman.","key":"Content-Type","value":"application/json","type":"text"},{"key":"x-api-key","value":"{{x-api-key}}","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"name","value":"user name","type":"text"},{"key":"email","value":"testeteste@gmail.com","type":"text"},{"key":"phone","value":"644320011","type":"text"},{"key":"password","value":"passpass","type":"text"},{"key":"password_confirmation","value":"passpass","type":"text"}]},"url":"https://likdom.ma/api/validate-register"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"127.0.0.1:8000"},{"key":"Date","value":"Wed, 22 Mar 2023 10:32:11 GMT"},{"key":"Date","value":"Wed, 22 Mar 2023 10:32:11 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/7.4.9"},{"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    \"message\": \"user validated\"\n}"},{"id":"f39bba69-2f31-407f-aa2d-0ebe1f6d713d","name":"failed request : validation error","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"},{"warning":"This is a duplicate header and will be overridden by the Content-Type header generated by Postman.","key":"Content-Type","value":"application/json","type":"text"},{"key":"x-api-key","value":"{{x-api-key}}","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"name","value":"user name","type":"text"},{"key":"email","value":"testeteste@gmail.com","type":"text"},{"key":"phone","value":"644320022","type":"text"},{"key":"password","value":"passpass","type":"text"},{"key":"password_confirmation","value":"passpass","type":"text"}]},"url":"https://likdom.ma/api/validate-register"},"status":"Unprocessable Content","code":422,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"127.0.0.1:8000"},{"key":"Date","value":"Wed, 22 Mar 2023 10:30:37 GMT"},{"key":"Date","value":"Wed, 22 Mar 2023 10:30:37 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/7.4.9"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Content-Type","value":"application/json"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"57"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"The given data was invalid.\",\n    \"errors\": {\n        \"phone\": [\n            \"The phone has already been taken.\"\n        ]\n    }\n}"}],"_postman_id":"7413f487-1897-48e4-acfe-afb82f1c9fd1"},{"name":"Register","id":"a6d7223e-8d4c-42f9-8753-2b6981135256","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"},{"warning":"This is a duplicate header and will be overridden by the Content-Type header generated by Postman.","key":"Content-Type","value":"application/json","type":"text"},{"key":"x-api-key","value":"{{x-api-key}}","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"name","value":"full_name","description":"<p>required | string</p>\n","type":"text","contentType":""},{"key":"email","value":"Email@email.com","description":"<p>required |string | email</p>\n","type":"text"},{"key":"phone","value":"644330011","description":"<p>required |string | size:9</p>\n","type":"text"},{"key":"password","value":"passpass","description":"<p>required |string | min:8</p>\n","type":"text"},{"key":"password_confirmation","value":"passpass","description":"<p>required |string | min:8</p>\n","type":"text"}]},"url":"https://likdom.ma/api/register","urlObject":{"protocol":"https","path":["api","register"],"host":["likdom","ma"],"query":[],"variable":[]}},"response":[{"id":"f09d6cf4-fc5c-4608-8c3e-8993137347cd","name":"successful request","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"x-api-key","value":"{{x-api-key}}","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"name","value":"full_name","description":"string","type":"text","contentType":""},{"key":"email","value":"Email@email.com","description":"string | email","type":"text"},{"key":"phone","value":"644330013","description":"string | size:9","type":"text"},{"key":"password","value":"passpass","description":"string","type":"text"},{"key":"password_confirmation","value":"passpass","description":"string","type":"text"}]},"url":"https://likdom.ma/api/register"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sat, 14 Jan 2023 14:50:07 GMT"},{"key":"Server","value":"Apache"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"59"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"access-token\": \"9|X8mntkvmXmxm4P6ITRbi1kW4JotJjCfCQ0e4DHFj\",\n    \"user\": {\n        \"name\": \"full_name\",\n        \"email\": \"Email@email.com\",\n        \"phone\": \"644330013\"\n    }\n}"},{"id":"ac15edff-b58f-45d1-ab56-f59474fcba4b","name":"failed request : validation errors","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"x-api-key","value":"{{x-api-key}}","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"name","value":"full_name","description":"string","type":"text","contentType":""},{"key":"email","value":"Email@test.com","description":"string | email","type":"text"},{"key":"phone","value":"644330013","description":"string | size:9","type":"text"},{"key":"password","value":"passpass","description":"string","type":"text"},{"key":"password_confirmation","value":"passpass","description":"string","type":"text"}]},"url":"https://likdom.ma/api/register"},"status":"Unprocessable Content","code":422,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sat, 14 Jan 2023 14:47:18 GMT"},{"key":"Server","value":"Apache"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"58"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"The given data was invalid.\",\n    \"errors\": {\n        \"email\": [\n            \"The email has already been taken.\"\n        ],\n        \"phone\": [\n            \"The phone must be 9 characters.\"\n        ]\n    }\n}"}],"_postman_id":"a6d7223e-8d4c-42f9-8753-2b6981135256"},{"name":"Logout","id":"4240f7ea-13ee-4c03-b47a-0e7af2d326b6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"x-api-key","value":"{{x-api-key}}","type":"text"}],"url":"https://likdom.ma/api/logout","urlObject":{"protocol":"https","path":["api","logout"],"host":["likdom","ma"],"query":[],"variable":[]}},"response":[{"id":"72999b5e-9bb6-4444-b361-13140b362cd1","name":"successful request","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"x-api-key","value":"{{x-api-key}}","type":"text"}],"url":"https://likdom.ma/api/logout"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sun, 15 Jan 2023 09:26:47 GMT"},{"key":"Server","value":"Apache"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"59"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Vary","value":"Authorization"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"user logout\"\n}"}],"_postman_id":"4240f7ea-13ee-4c03-b47a-0e7af2d326b6"}],"id":"dbc12650-1cdd-4226-ae76-8253cf4672fa","description":"<p>Authentication endpoints will return the plain-text API <strong>access-token</strong> which may then be stored on the mobile device and used to make additional API requests.</p>\n<p>When the mobile application uses the token to make an API request to Likdom-API, it should pass the token in the <code>Authorization</code> header as a <code>Bearer</code> token.</p>\n","auth":{"type":"noauth","isInherited":false},"event":[{"listen":"prerequest","script":{"id":"e15991bd-f3e7-4308-872e-c093ba12f404","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"874c34d8-7538-40eb-8f27-b2b3322cdbb4","type":"text/javascript","exec":[""]}}],"_postman_id":"dbc12650-1cdd-4226-ae76-8253cf4672fa"},{"name":"Listing likdom offers","item":[{"name":"Get offers for individual users","id":"2ad92e82-ad94-4913-b0b8-54596f3b9ad6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"x-api-key","value":"{{x-api-key}}","type":"text"}],"url":"https://likdom.ma/api/offers/part","urlObject":{"protocol":"https","path":["api","offers","part"],"host":["likdom","ma"],"query":[],"variable":[]}},"response":[{"id":"6065daa0-5956-4ba6-a182-0260691c4736","name":"Successful request","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"x-api-key","value":"{{x-api-key}}","type":"text"}],"url":"https://likdom.ma/api/offers/part"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 08 Mar 2023 12:44:46 GMT"},{"key":"Server","value":"Apache"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"59"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": [\n        {\n            \"id\": 5,\n            \"label\": \"Offre N°1\",\n            \"name\": \"Offre N°1\",\n            \"description\": \"1 passage par semaine\",\n            \"nbr_passages\": 1,\n            \"start_price\": 440\n        },\n        {\n            \"id\": 6,\n            \"label\": \"Offre N°2\",\n            \"name\": \"Offre N°2\",\n            \"description\": \"3 passages par semaine\",\n            \"nbr_passages\": 3,\n            \"start_price\": 1320\n        },\n        {\n            \"id\": 7,\n            \"label\": \"Offre N°3\",\n            \"name\": \"Offre N°3\",\n            \"description\": \"6 passages par semaine\",\n            \"nbr_passages\": 6,\n            \"start_price\": 2640\n        },\n        {\n            \"id\": 8,\n            \"label\": \"Offre N°4\",\n            \"name\": \"Offre Personnalisable\",\n            \"description\": \"Vos passages sur mesure\",\n            \"nbr_passages\": null,\n            \"start_price\": 440\n        }\n    ]\n}"}],"_postman_id":"2ad92e82-ad94-4913-b0b8-54596f3b9ad6"},{"name":"Get offers for professional users","id":"c82f995a-1292-4f34-b09d-73734dde1097","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"x-api-key","value":"{{x-api-key}}","type":"text"}],"url":"https://likdom.ma/api/offers/pro","urlObject":{"protocol":"https","path":["api","offers","pro"],"host":["likdom","ma"],"query":[],"variable":[]}},"response":[{"id":"2c3dbf9d-87b6-4552-998c-b61af97cbdfc","name":"Successful request","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"x-api-key","value":"{{x-api-key}}","type":"text"}],"url":"https://likdom.ma/api/offers/pro"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 08 Mar 2023 12:45:58 GMT"},{"key":"Server","value":"Apache"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"59"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": [\n        {\n            \"id\": 1,\n            \"label\": \"Offre N°1\",\n            \"name\": \"Offre N°1\",\n            \"description\": \"1 passage par semaine\",\n            \"nbr_passages\": 1,\n            \"start_price\": 300\n        },\n        {\n            \"id\": 2,\n            \"label\": \"Offre N°2\",\n            \"name\": \"Offre N°2\",\n            \"description\": \"2 passages par semaine\",\n            \"nbr_passages\": 2,\n            \"start_price\": 600\n        },\n        {\n            \"id\": 3,\n            \"label\": \"Offre N°3\",\n            \"name\": \"Offre N°3\",\n            \"description\": \"3 passages par semaine\",\n            \"nbr_passages\": 3,\n            \"start_price\": 900\n        },\n        {\n            \"id\": 4,\n            \"label\": \"Offre N°4\",\n            \"name\": \"Offre Personnalisable\",\n            \"description\": \"Vos passages sur mesure\",\n            \"nbr_passages\": null,\n            \"start_price\": 300\n        }\n    ]\n}"}],"_postman_id":"c82f995a-1292-4f34-b09d-73734dde1097"}],"id":"c4e69170-51a6-46ea-baea-6db473327cea","description":"<p>listing offers by user type :</p>\n<ul>\n<li>part : (particulier) individual users</li>\n<li>pro : (professionnel) professional users</li>\n</ul>\n","auth":{"type":"noauth","isInherited":false},"event":[{"listen":"prerequest","script":{"id":"b415bff0-114c-4df8-8221-ea2d3a349ff3","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"de7baa29-df39-48ef-bc4a-94a1c9b3a6ed","type":"text/javascript","exec":[""]}}],"_postman_id":"c4e69170-51a6-46ea-baea-6db473327cea"},{"name":"Subscription","item":[{"name":"Get subscription price for pro","id":"884ab6a1-f2a3-4dc1-9eb6-83b392a19b41","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"x-api-key","value":"{{x-api-key}}","type":"text"}],"url":"https://likdom.ma/api/get_pro_total_price/:nbr_hours/:nbr_employees/:nbr_passages","description":"<p>get the subscription total price for professional users</p>\n","urlObject":{"protocol":"https","path":["api","get_pro_total_price",":nbr_hours",":nbr_employees",":nbr_passages"],"host":["likdom","ma"],"query":[],"variable":[{"description":{"content":"<p>(Required) number of hours , minimum value : 1</p>\n","type":"text/plain"},"type":"any","value":"2","key":"nbr_hours"},{"description":{"content":"<p>(Required) number of employees , minimum value : 1</p>\n","type":"text/plain"},"type":"any","value":"1","key":"nbr_employees"},{"description":{"content":"<p>(Required) number of passages per week , minimum value: 1</p>\n","type":"text/plain"},"type":"any","value":"3","key":"nbr_passages"}]}},"response":[{"id":"f122d7ad-6187-4ba8-ada6-8d987782d6b8","name":"successful request","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"x-api-key","value":"{{x-api-key}}","type":"text"}],"url":{"raw":"https://likdom.ma/api/get_pro_total_price/:nbr_hours/:nbr_employees/:nbr_passages","protocol":"https","host":["likdom","ma"],"path":["api","get_pro_total_price",":nbr_hours",":nbr_employees",":nbr_passages"],"variable":[{"key":"nbr_hours","value":"2","description":"(Required) number of hours , default : 1"},{"key":"nbr_employees","value":"1","description":"(Required) number of employees , default : 1"},{"key":"nbr_passages","value":"3","description":"(Required) number of passages per week , default : 1"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"127.0.0.1:8000"},{"key":"Date","value":"Mon, 16 Jan 2023 12:37:39 GMT"},{"key":"Date","value":"Mon, 16 Jan 2023 12:37:39 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/7.4.9"},{"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    \"total_price\": 1800\n}"},{"id":"278c7ae1-83f2-4b23-8f42-495efca8b36c","name":"failed request : validation errors","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"x-api-key","value":"{{x-api-key}}","type":"text"}],"url":{"raw":"https://likdom.ma/api/get_pro_total_price/:nbr_hours/:nbr_employees/:nbr_passages","protocol":"https","host":["likdom","ma"],"path":["api","get_pro_total_price",":nbr_hours",":nbr_employees",":nbr_passages"],"variable":[{"key":"nbr_hours","value":"0","description":"(Required) number of hours , minimum value : 1"},{"key":"nbr_employees","value":"1","description":"(Required) number of employees , minimum value : 1"},{"key":"nbr_passages","value":"3","description":"(Required) number of passages per week , minimum value: 1"}]}},"status":"Unprocessable Content","code":422,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 17 Jan 2023 09:00:37 GMT"},{"key":"Server","value":"Apache"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"59"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"unvalid inputs\"\n}"}],"_postman_id":"884ab6a1-f2a3-4dc1-9eb6-83b392a19b41"},{"name":"Get subscription price for part","id":"6fed4922-3731-4e90-b395-febccff5c4d1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"x-api-key","value":"{{x-api-key}}","type":"text"}],"url":"https://likdom.ma/api/get_part_total_price/:nbr_hours/:nbr_employees/:nbr_passages","description":"<p>get the subscription total price for individual users</p>\n","urlObject":{"protocol":"https","path":["api","get_part_total_price",":nbr_hours",":nbr_employees",":nbr_passages"],"host":["likdom","ma"],"query":[],"variable":[{"description":{"content":"<p>(Required) number of hours , minimum value : 2</p>\n","type":"text/plain"},"type":"any","value":"2","key":"nbr_hours"},{"description":{"content":"<p>(Required) number of employees , minimum value : 1</p>\n","type":"text/plain"},"type":"any","value":"1","key":"nbr_employees"},{"description":{"content":"<p>(Required) number of passages per week , minimum value : 1</p>\n","type":"text/plain"},"type":"any","value":"1","key":"nbr_passages"}]}},"response":[{"id":"9bf7e47f-d287-439f-9a50-15c30956af95","name":"successful request","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"x-api-key","value":"{{x-api-key}}","type":"text"}],"url":{"raw":"https://likdom.ma/api/get_part_total_price/:nbr_hours/:nbr_employees/:nbr_passages","protocol":"https","host":["likdom","ma"],"path":["api","get_part_total_price",":nbr_hours",":nbr_employees",":nbr_passages"],"variable":[{"key":"nbr_hours","value":"2","description":"(Required) number of hours , minimum value : 2"},{"key":"nbr_employees","value":"1","description":"(Required) number of employees , minimum value: 1"},{"key":"nbr_passages","value":"1","description":"(Required) number of passages per week , minimum value: 1"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"127.0.0.1:8000"},{"key":"Date","value":"Mon, 16 Jan 2023 12:40:56 GMT"},{"key":"Date","value":"Mon, 16 Jan 2023 12:40:56 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/7.4.9"},{"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    \"total_price\": 440\n}"},{"id":"edeb6af8-3758-4190-9bca-0f34ccc79d04","name":"failed request : validation errors","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"x-api-key","value":"{{x-api-key}}","type":"text"}],"url":{"raw":"https://likdom.ma/api/get_part_total_price/:nbr_hours/:nbr_employees/:nbr_passages","protocol":"https","host":["likdom","ma"],"path":["api","get_part_total_price",":nbr_hours",":nbr_employees",":nbr_passages"],"variable":[{"key":"nbr_hours","value":"1","description":"(Required) number of hours , minimum value : 2"},{"key":"nbr_employees","value":"0","description":"(Required) number of employees , minimum value : 1"},{"key":"nbr_passages","value":"1","description":"(Required) number of passages per week , minimum value : 1"}]}},"status":"Unprocessable Content","code":422,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 17 Jan 2023 09:07:31 GMT"},{"key":"Server","value":"Apache"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"59"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"unvalid inputs\"\n}"}],"_postman_id":"6fed4922-3731-4e90-b395-febccff5c4d1"},{"name":"Create subscription","id":"720004db-067c-4b23-b084-f6e3e54b5a69","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"},{"warning":"This is a duplicate header and will be overridden by the Content-Type header generated by Postman.","key":"Content-Type","value":"application/json","type":"text"},{"key":"x-api-key","value":"{{x-api-key}}","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"offer_id","value":"2","description":"<p>required | integer</p>\n","type":"text"},{"key":"start_date","value":"2023-03-17","description":"<p>required | date | after:tomorrow</p>\n","type":"text"},{"key":"passages","value":"[\n    {\n        \"day\": \"Lundi\",\n        \"time\": \"09:00\"\n    },\n    {\n        \"day\": \"Mardi\",\n        \"time\": \"10:00\"\n    },\n    {\n        \"day\": \"Mercredi\",\n        \"time\": \"09:00\"\n    }\n]","description":"<p>required | json encoded string</p>\n","type":"text"},{"key":"nbr_hours","value":"2","description":"<p>required | integer</p>\n","type":"text"},{"key":"nbr_employees","value":"1","description":"<p>required | integer</p>\n","type":"text"},{"key":"nbr_months","value":"6","description":"<p>required | integer</p>\n","type":"text"},{"key":"location","value":"{\"lat\":33.687381,\"lng\":-7.3784308}","description":"<p>required | json encoded string</p>\n","type":"text"},{"key":"city","value":"Mohammedia","description":"<p>required | string</p>\n","type":"text"},{"key":"price","value":"300","description":"<p>required | float</p>\n","type":"text"}]},"url":"https://likdom.ma/api/create/subscription","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"4|YOO4CGS2JqjZvn9wWaT80VpMGT0J85Lxln8fcICf"}]},"isInherited":true,"source":{"_postman_id":"8be1ba88-207a-4037-b0a6-57fddec8f3ad","id":"8be1ba88-207a-4037-b0a6-57fddec8f3ad","name":"likdom-API","type":"collection"}},"urlObject":{"protocol":"https","path":["api","create","subscription"],"host":["likdom","ma"],"query":[],"variable":[]}},"response":[{"id":"cbaa3577-a688-46ae-a4ce-76ae14ddca8f","name":"successful request","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"x-api-key","value":"{{x-api-key}}","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"offer_id","value":"3","description":"required | integer","type":"text"},{"key":"start_date","value":"2023-03-17","description":"required | date | after:tomorrow","type":"text"},{"key":"passages","value":"[\n    {\n        \"day\": \"Lundi\",\n        \"time\": \"09:00\"\n    },\n    {\n        \"day\": \"Mardi\",\n        \"time\": \"10:00\"\n    },\n    {\n        \"day\": \"Mercredi\",\n        \"time\": \"09:00\"\n    }\n]","description":"required | json encoded string","type":"text"},{"key":"nbr_hours","value":"2","description":"required | integer","type":"text"},{"key":"nbr_employees","value":"1","description":"required | integer","type":"text"},{"key":"nbr_months","value":"6","description":"required | integer","type":"text"},{"key":"location","value":"{\"lat\":33.687381,\"lng\":-7.3784308}","description":"required | json encoded string","type":"text"},{"key":"city","value":"Mohammedia","description":"required | string","type":"text"},{"key":"price","value":"300","description":"required | float","type":"text"}]},"url":"https://likdom.ma/api/create/subscription"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 17 Jan 2023 09:10:39 GMT"},{"key":"Server","value":"Apache"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"59"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Vary","value":"Authorization"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"user_id\": 1,\n        \"offer_id\": \"3\",\n        \"start_date\": \"2023-03-17\",\n        \"nbr_hours\": \"2\",\n        \"nbr_employees\": \"1\",\n        \"passages\": [\n            {\n                \"day\": \"Lundi\",\n                \"time\": \"09:00\"\n            },\n            {\n                \"day\": \"Mardi\",\n                \"time\": \"10:00\"\n            },\n            {\n                \"day\": \"Mercredi\",\n                \"time\": \"09:00\"\n            }\n        ],\n        \"location\": {\n            \"lat\": 33.6873810000000020181687432341277599334716796875,\n            \"lng\": -7.378430800000000289173840428702533245086669921875\n        },\n        \"nbr_months\": \"6\",\n        \"end_date\": \"2023-09-17T00:00:00.000000Z\",\n        \"city\": \"Mohammedia\",\n        \"price\": \"300\",\n        \"updated_at\": \"2023-01-17T09:10:39.000000Z\",\n        \"created_at\": \"2023-01-17T09:10:39.000000Z\",\n        \"id\": 11\n    }\n}"},{"id":"a90dfc24-0582-4601-a3d0-61d7d1170ce5","name":"failed request : validation error","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"x-api-key","value":"{{x-api-key}}","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"offer_id","value":"","description":"integer","type":"text"},{"key":"start_date","value":"2023-01-17","description":"date | after:tomorrow","type":"text"},{"key":"passages","value":"[\n    {\n        \"day\": \"Lundi\",\n        \"time\": \"09:00\"\n    },\n    {\n        \"day\": \"Mardi\",\n        \"time\": \"10:00\"\n    },\n    {\n        \"day\": \"Mercredi\",\n        \"time\": \"09:00\"\n    }\n]","description":"json encoded string","type":"text"},{"key":"nbr_hours","value":"2","description":"integer","type":"text"},{"key":"nbr_employees","value":"1","description":"integer","type":"text"},{"key":"nbr_months","value":"6","description":"integer","type":"text"},{"key":"location","value":"{\"lat\":33.687381,\"lng\":-7.3784308}","description":"json encoded string","type":"text"},{"key":"city","value":"Mohammedia","description":"string","type":"text"},{"key":"price","value":"300","description":"float","type":"text"}]},"url":"https://likdom.ma/api/create/subscription"},"status":"Unprocessable Content","code":422,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"127.0.0.1:8000"},{"key":"Date","value":"Mon, 16 Jan 2023 12:57:28 GMT"},{"key":"Date","value":"Mon, 16 Jan 2023 12:57:28 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/7.4.9"},{"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    \"message\": \"The given data was invalid.\",\n    \"errors\": {\n        \"offer_id\": [\n            \"The offer id field is required.\"\n        ],\n        \"start_date\": [\n            \"The start date must be a date after tomorrow.\"\n        ]\n    }\n}"}],"_postman_id":"720004db-067c-4b23-b084-f6e3e54b5a69"},{"name":"Get subscription","id":"faa1f2a4-dbd6-4ba1-9e32-940d38e3f1fa","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"x-api-key","value":"{{x-api-key}}","type":"text"}],"url":"https://likdom.ma/api/recap/:subscription_id","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"4|YOO4CGS2JqjZvn9wWaT80VpMGT0J85Lxln8fcICf"}]},"isInherited":true,"source":{"_postman_id":"8be1ba88-207a-4037-b0a6-57fddec8f3ad","id":"8be1ba88-207a-4037-b0a6-57fddec8f3ad","name":"likdom-API","type":"collection"}},"urlObject":{"protocol":"https","path":["api","recap",":subscription_id"],"host":["likdom","ma"],"query":[],"variable":[{"description":{"content":"<p>(Required) Subscription unique identifier</p>\n","type":"text/plain"},"type":"any","value":"11","key":"subscription_id"}]}},"response":[{"id":"d450efb3-2981-42cc-b856-646ba61e0d4f","name":"successful request : subscription data","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"x-api-key","value":"{{x-api-key}}","type":"text"}],"url":{"raw":"https://likdom.ma/api/recap/:id","protocol":"https","host":["likdom","ma"],"path":["api","recap",":id"],"variable":[{"key":"id","value":"1","description":"(Required) Subscription or Reservation unique identifier"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"127.0.0.1:8000"},{"key":"Date","value":"Mon, 16 Jan 2023 12:18:23 GMT"},{"key":"Date","value":"Mon, 16 Jan 2023 12:18:23 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/7.4.9"},{"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    \"data\": {\n        \"id\": 1,\n        \"user_id\": 32,\n        \"offer_id\": 3,\n        \"service\": null,\n        \"just_once\": true,\n        \"start_date\": \"2023-01-04\",\n        \"start_time\": \"09:00\",\n        \"end_date\": null,\n        \"passages\": null,\n        \"nbr_hours\": 2,\n        \"nbr_employees\": 1,\n        \"location\": {\n            \"lat\": 5678,\n            \"long\": 1234\n        },\n        \"city\": \"Mohammedia\",\n        \"adress\": null,\n        \"products\": false,\n        \"confirmed\": false,\n        \"status\": \"pending\",\n        \"nbr_months\": null,\n        \"price\": 230,\n        \"created_at\": \"2023-01-02T11:32:59.000000Z\",\n        \"updated_at\": \"2023-01-02T11:32:59.000000Z\",\n        \"offer\": {\n            \"id\": 3,\n            \"label\": \"offer label\",\n            \"name\": \"offer name\",\n            \"description\": \"offer descriptions\",\n            \"nbr_passages\": 3,\n            \"start_price\": 300,\n            \"user_type\": \"pro\",\n            \"created_at\": null,\n            \"updated_at\": null\n        }\n    }\n}"},{"id":"3c9e7327-6fda-4a8f-9e88-f813b23c5881","name":"successful request : reservation data","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"x-api-key","value":"{{x-api-key}}","type":"text"}],"url":{"raw":"https://likdom.ma/api/recap/:id","protocol":"https","host":["likdom","ma"],"path":["api","recap",":id"],"variable":[{"key":"id","value":"33","description":"(Required) Subscription or Reservation unique identifier"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"127.0.0.1:8000"},{"key":"Date","value":"Mon, 16 Jan 2023 12:23:13 GMT"},{"key":"Date","value":"Mon, 16 Jan 2023 12:23:13 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/7.4.9"},{"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    \"data\": {\n        \"id\": 33,\n        \"user_id\": 32,\n        \"offer_id\": null,\n        \"service\": null,\n        \"just_once\": true,\n        \"start_date\": \"2023-02-10\",\n        \"start_time\": \"09:00\",\n        \"end_date\": null,\n        \"passages\": null,\n        \"nbr_hours\": 2,\n        \"nbr_employees\": 1,\n        \"location\": {\n            \"lat\": 33.687381,\n            \"lng\": -7.3784308\n        },\n        \"city\": \"Mohammedia\",\n        \"adress\": null,\n        \"products\": false,\n        \"confirmed\": false,\n        \"status\": \"pending\",\n        \"nbr_months\": null,\n        \"price\": 300,\n        \"created_at\": \"2023-01-16T09:03:53.000000Z\",\n        \"updated_at\": \"2023-01-16T09:03:53.000000Z\",\n        \"offer\": null\n    }\n}"},{"id":"238731f7-2cc6-4427-8065-1d4427ab25e0","name":"failed request : forbidden : already confirmed","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"x-api-key","value":"{{x-api-key}}","type":"text"}],"url":{"raw":"https://likdom.ma/api/recap/:id","protocol":"https","host":["likdom","ma"],"path":["api","recap",":id"],"variable":[{"key":"id","value":"30","description":"(Required) Subscription or Reservation unique identifier"}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"127.0.0.1:8000"},{"key":"Date","value":"Mon, 16 Jan 2023 12:23:42 GMT"},{"key":"Date","value":"Mon, 16 Jan 2023 12:23:42 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/7.4.9"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Content-Type","value":"application/json"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"57"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Already confirmed.\"\n}"},{"id":"11325166-af38-4047-8bde-f9b5be8af3a3","name":"failed request : not found","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"x-api-key","value":"{{x-api-key}}","type":"text"}],"url":{"raw":"https://likdom.ma/api/recap/:id","protocol":"https","host":["likdom","ma"],"path":["api","recap",":id"],"variable":[{"key":"id","value":"399","description":"(Required) Subscription or Reservation unique identifier"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"127.0.0.1:8000"},{"key":"Date","value":"Mon, 16 Jan 2023 12:24:41 GMT"},{"key":"Date","value":"Mon, 16 Jan 2023 12:24:41 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/7.4.9"},{"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    \"message\": \"Not found.\"\n}"},{"id":"51f4897e-fef7-49c7-96eb-c68d2f86f7d9","name":"failed request : not authorized","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"x-api-key","value":"{{x-api-key}}","type":"text"}],"url":{"raw":"https://likdom.ma/api/recap/:id","protocol":"https","host":["likdom","ma"],"path":["api","recap",":id"],"variable":[{"id":"cf6d3e2a-adb7-4caf-89c0-ffb2747482fd","key":"id","value":"1","description":"(Required) Subscription or Reservation unique identifier"}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 17 Jan 2023 09:23:46 GMT"},{"key":"Server","value":"Apache"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"59"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Vary","value":"Authorization"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Not authorized.\"\n}"}],"_postman_id":"faa1f2a4-dbd6-4ba1-9e32-940d38e3f1fa"},{"name":"Confirm subscription","id":"be7cbbc9-2cbe-4e9f-88d0-af72de9aa951","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"x-api-key","value":"{{x-api-key}}","type":"text"}],"url":"https://likdom.ma/api/confirm/:subscription_id","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"4|YOO4CGS2JqjZvn9wWaT80VpMGT0J85Lxln8fcICf"}]},"isInherited":true,"source":{"_postman_id":"8be1ba88-207a-4037-b0a6-57fddec8f3ad","id":"8be1ba88-207a-4037-b0a6-57fddec8f3ad","name":"likdom-API","type":"collection"}},"urlObject":{"protocol":"https","path":["api","confirm",":subscription_id"],"host":["likdom","ma"],"query":[],"variable":[{"description":{"content":"<p>(Required) Subscription uinique identifier</p>\n","type":"text/plain"},"type":"any","value":"11","key":"subscription_id"}]}},"response":[{"id":"b33f75eb-05f7-42da-a4c9-48630f329a00","name":"successful request","originalRequest":{"method":"PUT","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"url":{"raw":"https://likdom.ma/api/confirm/:id","protocol":"https","host":["likdom","ma"],"path":["api","confirm",":id"],"variable":[{"key":"id","value":"11"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"127.0.0.1:8000"},{"key":"Date","value":"Mon, 16 Jan 2023 11:56:41 GMT"},{"key":"Date","value":"Mon, 16 Jan 2023 11:56:41 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/7.4.9"},{"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    \"message\": \"confirmed\"\n}"},{"id":"89f0b413-7040-418d-b276-f0d9dbecf7c8","name":"faild request : not found","originalRequest":{"method":"PUT","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"url":{"raw":"https://likdom.ma/api/confirm/:id","protocol":"https","host":["likdom","ma"],"path":["api","confirm",":id"],"variable":[{"key":"id","value":"999"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"127.0.0.1:8000"},{"key":"Date","value":"Mon, 16 Jan 2023 11:57:21 GMT"},{"key":"Date","value":"Mon, 16 Jan 2023 11:57:21 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/7.4.9"},{"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    \"message\": \"Not found.\"\n}"},{"id":"3ba52ec3-db87-4a91-a0f4-8c0dcaef1b42","name":"failed request : not authorized","originalRequest":{"method":"PUT","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"url":{"raw":"https://likdom.ma/api/confirm/:id","protocol":"https","host":["likdom","ma"],"path":["api","confirm",":id"],"variable":[{"key":"id","value":"1","description":"(Required) Subscription or Reservation uinique identifier"}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 17 Jan 2023 09:32:14 GMT"},{"key":"Server","value":"Apache"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"59"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Vary","value":"Authorization"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Not authorized.\"\n}"}],"_postman_id":"be7cbbc9-2cbe-4e9f-88d0-af72de9aa951"},{"name":"Get user pending and valid subscriptions","id":"de258511-0e46-462c-b086-fb186cf94f7a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"x-api-key","value":"{{x-api-key}}","type":"text"}],"url":"https://likdom.ma/api/get/subscriptions","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"4|YOO4CGS2JqjZvn9wWaT80VpMGT0J85Lxln8fcICf"}]},"isInherited":true,"source":{"_postman_id":"8be1ba88-207a-4037-b0a6-57fddec8f3ad","id":"8be1ba88-207a-4037-b0a6-57fddec8f3ad","name":"likdom-API","type":"collection"}},"urlObject":{"protocol":"https","path":["api","get","subscriptions"],"host":["likdom","ma"],"query":[],"variable":[]}},"response":[{"id":"cb95fbd1-2aae-4de5-98b6-71a05dcdccbc","name":"success request","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"x-api-key","value":"{{x-api-key}}","type":"text"}],"url":"https://likdom.ma/api/get/subscriptions"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"127.0.0.1:8000"},{"key":"Date","value":"Mon, 16 Jan 2023 13:33:11 GMT"},{"key":"Date","value":"Mon, 16 Jan 2023 13:33:11 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/7.4.9"},{"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    \"data\": [\n        {\n            \"id\": 37,\n            \"user_id\": 32,\n            \"offer_id\": 3,\n            \"service\": null,\n            \"just_once\": false,\n            \"start_date\": \"2023-03-17\",\n            \"start_time\": null,\n            \"end_date\": \"2023-09-17\",\n            \"passages\": [\n                {\n                    \"day\": \"Mardi\",\n                    \"time\": \"10:00\"\n                },\n                {\n                    \"day\": \"Jeudi\",\n                    \"time\": \"09:00\"\n                },\n                {\n                    \"day\": \"Samedi\",\n                    \"time\": \"10:00\"\n                }\n            ],\n            \"nbr_hours\": 2,\n            \"nbr_employees\": 1,\n            \"location\": {\n                \"lat\": 33.687381,\n                \"lng\": -7.3784308\n            },\n            \"city\": \"Mohammedia\",\n            \"adress\": null,\n            \"products\": false,\n            \"confirmed\": false,\n            \"status\": \"pending\",\n            \"nbr_months\": 6,\n            \"price\": 300,\n            \"created_at\": \"2023-01-16T12:58:17.000000Z\",\n            \"updated_at\": \"2023-01-16T12:59:21.000000Z\",\n            \"offer\": {\n                \"id\": 3,\n                \"label\": \"offer label\",\n                \"name\": \"offer name\",\n                \"description\": \"offer descriptions\",\n                \"nbr_passages\": 3,\n                \"start_price\": 300,\n                \"user_type\": \"pro\",\n                \"created_at\": null,\n                \"updated_at\": null\n            }\n        },\n        {\n            \"id\": 36,\n            \"user_id\": 32,\n            \"offer_id\": 3,\n            \"service\": null,\n            \"just_once\": false,\n            \"start_date\": \"2023-02-10\",\n            \"start_time\": null,\n            \"end_date\": \"2023-08-10\",\n            \"passages\": [\n                {\n                    \"day\": \"Lundi\",\n                    \"time\": \"09:00\"\n                },\n                {\n                    \"day\": \"Mardi\",\n                    \"time\": \"10:00\"\n                },\n                {\n                    \"day\": \"Mercredi\",\n                    \"time\": \"09:00\"\n                }\n            ],\n            \"nbr_hours\": 2,\n            \"nbr_employees\": 1,\n            \"location\": {\n                \"lat\": 33.687381,\n                \"lng\": -7.3784308\n            },\n            \"city\": \"Mohammedia\",\n            \"adress\": null,\n            \"products\": false,\n            \"confirmed\": false,\n            \"status\": \"pending\",\n            \"nbr_months\": 6,\n            \"price\": 300,\n            \"created_at\": \"2023-01-16T12:56:07.000000Z\",\n            \"updated_at\": \"2023-01-16T12:56:07.000000Z\",\n            \"offer\": {\n                \"id\": 3,\n                \"label\": \"offer label\",\n                \"name\": \"offer name\",\n                \"description\": \"offer descriptions\",\n                \"nbr_passages\": 3,\n                \"start_price\": 300,\n                \"user_type\": \"pro\",\n                \"created_at\": null,\n                \"updated_at\": null\n            }\n        },\n        {\n            \"id\": 35,\n            \"user_id\": 32,\n            \"offer_id\": 1,\n            \"service\": null,\n            \"just_once\": false,\n            \"start_date\": \"2023-02-10\",\n            \"start_time\": null,\n            \"end_date\": \"2023-08-10\",\n            \"passages\": [\n                {\n                    \"day\": \"Lundi\",\n                    \"time\": \"09:00\"\n                }\n            ],\n            \"nbr_hours\": 2,\n            \"nbr_employees\": 1,\n            \"location\": {\n                \"lat\": 33.687381,\n                \"lng\": -7.3784308\n            },\n            \"city\": \"Mohammedia\",\n            \"adress\": null,\n            \"products\": false,\n            \"confirmed\": false,\n            \"status\": \"pending\",\n            \"nbr_months\": 6,\n            \"price\": 300,\n            \"created_at\": \"2023-01-16T12:53:33.000000Z\",\n            \"updated_at\": \"2023-01-16T12:53:33.000000Z\",\n            \"offer\": {\n                \"id\": 1,\n                \"label\": \"offer label\",\n                \"name\": \"offer name\",\n                \"description\": \"offer descriptions\",\n                \"nbr_passages\": 1,\n                \"start_price\": 200,\n                \"user_type\": \"pro\",\n                \"created_at\": null,\n                \"updated_at\": null\n            }\n        }\n    ]\n}"}],"_postman_id":"de258511-0e46-462c-b086-fb186cf94f7a"},{"name":"Get user concluded subscriptions and reservations","id":"95cebdda-4c78-4932-8819-57d51b7e2f9b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"x-api-key","value":"{{x-api-key}}","type":"text"}],"url":"https://likdom.ma/api/get/concluded","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"4|YOO4CGS2JqjZvn9wWaT80VpMGT0J85Lxln8fcICf"}]},"isInherited":true,"source":{"_postman_id":"8be1ba88-207a-4037-b0a6-57fddec8f3ad","id":"8be1ba88-207a-4037-b0a6-57fddec8f3ad","name":"likdom-API","type":"collection"}},"urlObject":{"protocol":"https","path":["api","get","concluded"],"host":["likdom","ma"],"query":[],"variable":[]}},"response":[{"id":"34470878-cea1-4dea-b687-dad5304e654c","name":"successful request","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"x-api-key","value":"{{x-api-key}}","type":"text"}],"url":"https://likdom.ma/api/get/concluded"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"127.0.0.1:8000"},{"key":"Date","value":"Mon, 16 Jan 2023 13:39:55 GMT"},{"key":"Date","value":"Mon, 16 Jan 2023 13:39:55 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/7.4.9"},{"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    \"data\": [\n        {\n            \"id\": 39,\n            \"user_id\": 32,\n            \"offer_id\": 3,\n            \"service\": null,\n            \"just_once\": false,\n            \"start_date\": \"2023-03-17\",\n            \"start_time\": null,\n            \"end_date\": \"2023-09-17\",\n            \"passages\": [\n                {\n                    \"day\": \"Lundi\",\n                    \"time\": \"09:00\"\n                },\n                {\n                    \"day\": \"Mardi\",\n                    \"time\": \"10:00\"\n                },\n                {\n                    \"day\": \"Mercredi\",\n                    \"time\": \"09:00\"\n                }\n            ],\n            \"nbr_hours\": 2,\n            \"nbr_employees\": 1,\n            \"location\": {\n                \"lat\": 33.687381,\n                \"lng\": -7.3784308\n            },\n            \"city\": \"Mohammedia\",\n            \"adress\": null,\n            \"products\": false,\n            \"confirmed\": false,\n            \"status\": \"concluded\",\n            \"nbr_months\": 6,\n            \"price\": 300,\n            \"created_at\": \"2023-01-16T13:37:15.000000Z\",\n            \"updated_at\": \"2023-01-16T13:39:48.000000Z\",\n            \"offer\": {\n                \"id\": 3,\n                \"label\": \"offer label\",\n                \"name\": \"offer name\",\n                \"description\": \"offer descriptions\",\n                \"nbr_passages\": 3,\n                \"start_price\": 300,\n                \"user_type\": \"pro\",\n                \"created_at\": null,\n                \"updated_at\": null\n            }\n        }\n    ]\n}"}],"_postman_id":"95cebdda-4c78-4932-8819-57d51b7e2f9b"}],"id":"d438f6c9-fde4-4680-8e44-5fc6ddbc4c90","_postman_id":"d438f6c9-fde4-4680-8e44-5fc6ddbc4c90","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"4|YOO4CGS2JqjZvn9wWaT80VpMGT0J85Lxln8fcICf"}]},"isInherited":true,"source":{"_postman_id":"8be1ba88-207a-4037-b0a6-57fddec8f3ad","id":"8be1ba88-207a-4037-b0a6-57fddec8f3ad","name":"likdom-API","type":"collection"}}},{"name":"Reservation","item":[{"name":"Get reservation price","id":"d88b9628-7b49-46b5-ac23-0d735b045ca4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"x-api-key","value":"{{x-api-key}}","type":"text"}],"url":"https://likdom.ma/api/get_total_price/:nbr_hours/:nbr_employees","urlObject":{"protocol":"https","path":["api","get_total_price",":nbr_hours",":nbr_employees"],"host":["likdom","ma"],"query":[],"variable":[{"description":{"content":"<p>(Required) number of hours , minimum value : 2</p>\n","type":"text/plain"},"type":"any","value":"2","key":"nbr_hours"},{"description":{"content":"<p>(Required) number of employees , minimum value : 1</p>\n","type":"text/plain"},"type":"any","value":"1","key":"nbr_employees"}]}},"response":[{"id":"63b157d0-40ed-46eb-8b85-1379c8bf7850","name":"successful request","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"x-api-key","value":"{{x-api-key}}","type":"text"}],"url":{"raw":"https://likdom.ma/api/get_total_price/:nbr_hours/:nbr_employees","protocol":"https","host":["likdom","ma"],"path":["api","get_total_price",":nbr_hours",":nbr_employees"],"variable":[{"key":"nbr_hours","value":"2","description":"(Required) hours number "},{"key":"nbr_employees","value":"1","description":"(Required) employees number"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sun, 15 Jan 2023 11:31:28 GMT"},{"key":"Server","value":"Apache"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"59"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"total_price\": 150\n}"},{"id":"5a734d84-cdfe-4684-af12-921a9635033a","name":"failed request : validation errors","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"x-api-key","value":"{{x-api-key}}","type":"text"}],"url":{"raw":"https://likdom.ma/api/get_total_price/:nbr_hours/:nbr_employees","protocol":"https","host":["likdom","ma"],"path":["api","get_total_price",":nbr_hours",":nbr_employees"],"variable":[{"key":"nbr_hours","value":"1","description":"(Required) number of hours , default : 2"},{"key":"nbr_employees","value":"0","description":"(Required) number of employees , default : 1"}]}},"status":"Unprocessable Content","code":422,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 17 Jan 2023 08:50:45 GMT"},{"key":"Server","value":"Apache"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"58"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"unvalid inputs\"\n}"}],"_postman_id":"d88b9628-7b49-46b5-ac23-0d735b045ca4"},{"name":"Create reservation","id":"0ea42e70-0b54-410f-96e5-909f05c3738f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"},{"warning":"This is a duplicate header and will be overridden by the Content-Type header generated by Postman.","key":"Content-Type","value":"application/json","type":"text"},{"key":"x-api-key","value":"{{x-api-key}}","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"start_date","value":"2023-03-15","description":"<p>required | date | after:tomorrow</p>\n","type":"text"},{"key":"start_time","value":"09:00","description":"<p>required | string</p>\n","type":"text"},{"key":"nbr_hours","value":"2","description":"<p>required | integer</p>\n","type":"text"},{"key":"nbr_employees","value":"1","description":"<p>required | integer</p>\n","type":"text"},{"key":"location","value":"{\"lat\":33.687381,\"lng\":-7.3784308}","description":"<p>required | json encoded string</p>\n","type":"text"},{"key":"city","value":"Mohammedia","description":"<p>required | string</p>\n","type":"text"},{"key":"price","value":"300","description":"<p>required | float</p>\n","type":"text"}]},"url":"https://likdom.ma/api/create/reservation","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"4|YOO4CGS2JqjZvn9wWaT80VpMGT0J85Lxln8fcICf"}]},"isInherited":true,"source":{"_postman_id":"8be1ba88-207a-4037-b0a6-57fddec8f3ad","id":"8be1ba88-207a-4037-b0a6-57fddec8f3ad","name":"likdom-API","type":"collection"}},"urlObject":{"protocol":"https","path":["api","create","reservation"],"host":["likdom","ma"],"query":[],"variable":[]}},"response":[{"id":"7a895a1d-c04c-41c1-9862-0aad9d7e25b8","name":"successful request","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"x-api-key","value":"{{x-api-key}}","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"start_date","value":"2023-02-15","description":"date | after:tomorrow","type":"text"},{"key":"start_time","value":"09:00","description":"string","type":"text"},{"key":"nbr_hours","value":"2","description":"integer","type":"text"},{"key":"nbr_employees","value":"1","description":"integer","type":"text"},{"key":"location","value":"{\"lat\":33.687381,\"lng\":-7.3784308}","description":"json encoded string","type":"text"},{"key":"city","value":"Mohammedia","description":"string","type":"text"},{"key":"price","value":"300","description":"float","type":"text"}]},"url":"https://likdom.ma/api/create/reservation"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sun, 15 Jan 2023 12:08:37 GMT"},{"key":"Server","value":"Apache"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"59"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Vary","value":"Authorization"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"user_id\": 21,\n        \"start_date\": \"2023-02-15\",\n        \"start_time\": \"09:00\",\n        \"nbr_hours\": \"2\",\n        \"nbr_employees\": \"1\",\n        \"location\": {\n            \"lat\": 33.6873810000000020181687432341277599334716796875,\n            \"lng\": -7.378430800000000289173840428702533245086669921875\n        },\n        \"city\": \"Mohammedia\",\n        \"just_once\": true,\n        \"price\": \"300\",\n        \"updated_at\": \"2023-01-15T12:08:37.000000Z\",\n        \"created_at\": \"2023-01-15T12:08:37.000000Z\",\n        \"id\": 20\n    }\n}"},{"id":"fef3c187-f032-431a-85ff-6edeecee89b2","name":"failed request : validation errors","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"x-api-key","value":"{{x-api-key}}","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"start_date","value":"2023-01-15","description":"date | after:tomorrow","type":"text"},{"key":"start_time","value":"09:00","description":"string","type":"text"},{"key":"nbr_hours","value":"2","description":"integer","type":"text"},{"key":"nbr_employees","value":"1","description":"integer","type":"text"},{"key":"location","value":"\"{'lat':33.687381,'lng':-7.3784308}\"","description":"json encoded string","type":"text"},{"key":"city","value":"","description":"string","type":"text"},{"key":"price","value":"300","description":"float","type":"text"}]},"url":"https://likdom.ma/api/create/reservation"},"status":"Unprocessable Content","code":422,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sun, 15 Jan 2023 09:29:35 GMT"},{"key":"Server","value":"Apache"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"59"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Vary","value":"Authorization"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"The given data was invalid.\",\n    \"errors\": {\n        \"start_date\": [\n            \"The start date must be a date after now.\"\n        ],\n        \"city\": [\n            \"The city field is required.\"\n        ]\n    }\n}"}],"_postman_id":"0ea42e70-0b54-410f-96e5-909f05c3738f"},{"name":"Get reservation","id":"39560902-3dfd-46ee-ad8a-942154d7e5b1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"x-api-key","value":"{{x-api-key}}","type":"text"}],"url":"https://likdom.ma/api/recap/:reservation_id","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"4|YOO4CGS2JqjZvn9wWaT80VpMGT0J85Lxln8fcICf"}]},"isInherited":true,"source":{"_postman_id":"8be1ba88-207a-4037-b0a6-57fddec8f3ad","id":"8be1ba88-207a-4037-b0a6-57fddec8f3ad","name":"likdom-API","type":"collection"}},"urlObject":{"protocol":"https","path":["api","recap",":reservation_id"],"host":["likdom","ma"],"query":[],"variable":[{"description":{"content":"<p>(Required) Reservation unique identifier</p>\n","type":"text/plain"},"type":"any","value":"12","key":"reservation_id"}]}},"response":[{"id":"a9551bbe-d6fa-4637-acb1-226511c802bb","name":"successful request : reservation data","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"x-api-key","value":"{{x-api-key}}","type":"text"}],"url":{"raw":"https://likdom.ma/api/recap/:id","protocol":"https","host":["likdom","ma"],"path":["api","recap",":id"],"variable":[{"key":"id","value":"33","description":"(Required) Subscription or Reservation unique identifier"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"127.0.0.1:8000"},{"key":"Date","value":"Mon, 16 Jan 2023 12:23:13 GMT"},{"key":"Date","value":"Mon, 16 Jan 2023 12:23:13 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/7.4.9"},{"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    \"data\": {\n        \"id\": 33,\n        \"user_id\": 32,\n        \"offer_id\": null,\n        \"service\": null,\n        \"just_once\": true,\n        \"start_date\": \"2023-02-10\",\n        \"start_time\": \"09:00\",\n        \"end_date\": null,\n        \"passages\": null,\n        \"nbr_hours\": 2,\n        \"nbr_employees\": 1,\n        \"location\": {\n            \"lat\": 33.687381,\n            \"lng\": -7.3784308\n        },\n        \"city\": \"Mohammedia\",\n        \"adress\": null,\n        \"products\": false,\n        \"confirmed\": false,\n        \"status\": \"pending\",\n        \"nbr_months\": null,\n        \"price\": 300,\n        \"created_at\": \"2023-01-16T09:03:53.000000Z\",\n        \"updated_at\": \"2023-01-16T09:03:53.000000Z\",\n        \"offer\": null\n    }\n}"},{"id":"17ba8614-b091-4b0d-a21c-69f6d4f3d7e5","name":"failed request : forbidden : already confirmed","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"x-api-key","value":"{{x-api-key}}","type":"text"}],"url":{"raw":"https://likdom.ma/api/recap/:id","protocol":"https","host":["likdom","ma"],"path":["api","recap",":id"],"variable":[{"key":"id","value":"30","description":"(Required) Subscription or Reservation unique identifier"}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"127.0.0.1:8000"},{"key":"Date","value":"Mon, 16 Jan 2023 12:23:42 GMT"},{"key":"Date","value":"Mon, 16 Jan 2023 12:23:42 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/7.4.9"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Content-Type","value":"application/json"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"57"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Already confirmed.\"\n}"},{"id":"9808c2b2-81e8-4985-bfd9-c39583a32fc8","name":"failed request : not found","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"x-api-key","value":"{{x-api-key}}","type":"text"}],"url":{"raw":"https://likdom.ma/api/recap/:id","protocol":"https","host":["likdom","ma"],"path":["api","recap",":id"],"variable":[{"key":"id","value":"399","description":"(Required) Subscription or Reservation unique identifier"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"127.0.0.1:8000"},{"key":"Date","value":"Mon, 16 Jan 2023 12:24:41 GMT"},{"key":"Date","value":"Mon, 16 Jan 2023 12:24:41 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/7.4.9"},{"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    \"message\": \"Not found.\"\n}"},{"id":"6a445a62-b079-4337-8379-a740cacaf56c","name":"failed request : not authorized","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"x-api-key","value":"{{x-api-key}}","type":"text"}],"url":{"raw":"https://likdom.ma/api/recap/:id","protocol":"https","host":["likdom","ma"],"path":["api","recap",":id"],"variable":[{"id":"cf6d3e2a-adb7-4caf-89c0-ffb2747482fd","key":"id","value":"1","description":"(Required) Subscription or Reservation unique identifier"}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 17 Jan 2023 09:23:46 GMT"},{"key":"Server","value":"Apache"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"59"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Vary","value":"Authorization"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Not authorized.\"\n}"}],"_postman_id":"39560902-3dfd-46ee-ad8a-942154d7e5b1"},{"name":"Confirm reservation","id":"5c0e3f5f-84c7-4bb8-90a3-8d462c256794","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"x-api-key","value":"{{x-api-key}}","type":"text"}],"url":"https://likdom.ma/api/confirm/:reservation_id","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"4|YOO4CGS2JqjZvn9wWaT80VpMGT0J85Lxln8fcICf"}]},"isInherited":true,"source":{"_postman_id":"8be1ba88-207a-4037-b0a6-57fddec8f3ad","id":"8be1ba88-207a-4037-b0a6-57fddec8f3ad","name":"likdom-API","type":"collection"}},"urlObject":{"protocol":"https","path":["api","confirm",":reservation_id"],"host":["likdom","ma"],"query":[],"variable":[{"description":{"content":"<p>(Required) Reservation uinique identifier</p>\n","type":"text/plain"},"type":"any","value":"12","key":"reservation_id"}]}},"response":[{"id":"40b3e2be-5fd5-4c71-aa29-d4dcd0ae853f","name":"successful request","originalRequest":{"method":"PUT","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"url":{"raw":"https://likdom.ma/api/confirm/:id","protocol":"https","host":["likdom","ma"],"path":["api","confirm",":id"],"variable":[{"key":"id","value":"11"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"127.0.0.1:8000"},{"key":"Date","value":"Mon, 16 Jan 2023 11:56:41 GMT"},{"key":"Date","value":"Mon, 16 Jan 2023 11:56:41 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/7.4.9"},{"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    \"message\": \"confirmed\"\n}"},{"id":"382d892b-ad28-4e14-9822-3f8331b5139a","name":"faild request : not found","originalRequest":{"method":"PUT","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"url":{"raw":"https://likdom.ma/api/confirm/:id","protocol":"https","host":["likdom","ma"],"path":["api","confirm",":id"],"variable":[{"key":"id","value":"999"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"127.0.0.1:8000"},{"key":"Date","value":"Mon, 16 Jan 2023 11:57:21 GMT"},{"key":"Date","value":"Mon, 16 Jan 2023 11:57:21 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/7.4.9"},{"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    \"message\": \"Not found.\"\n}"},{"id":"16d25bb8-4f7e-41f3-80a6-03ae6b23c14b","name":"failed request : not authorized","originalRequest":{"method":"PUT","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"url":{"raw":"https://likdom.ma/api/confirm/:id","protocol":"https","host":["likdom","ma"],"path":["api","confirm",":id"],"variable":[{"key":"id","value":"1","description":"(Required) Subscription or Reservation uinique identifier"}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 17 Jan 2023 09:32:14 GMT"},{"key":"Server","value":"Apache"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"59"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Vary","value":"Authorization"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Not authorized.\"\n}"}],"_postman_id":"5c0e3f5f-84c7-4bb8-90a3-8d462c256794"},{"name":"Get user pending and valid reservations","id":"09935387-151b-488b-82ec-6f3829542b0b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"x-api-key","value":"{{x-api-key}}","type":"text"}],"url":"https://likdom.ma/api/get/reservations","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"4|YOO4CGS2JqjZvn9wWaT80VpMGT0J85Lxln8fcICf"}]},"isInherited":true,"source":{"_postman_id":"8be1ba88-207a-4037-b0a6-57fddec8f3ad","id":"8be1ba88-207a-4037-b0a6-57fddec8f3ad","name":"likdom-API","type":"collection"}},"urlObject":{"protocol":"https","path":["api","get","reservations"],"host":["likdom","ma"],"query":[],"variable":[]}},"response":[{"id":"4189ebe4-1fa7-4c12-9f45-faaeb7840d02","name":"successful request","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"x-api-key","value":"{{x-api-key}}","type":"text"}],"url":"https://likdom.ma/api/get/reservations"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 16 Mar 2023 12:46:04 GMT"},{"key":"Server","value":"Apache"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"59"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Vary","value":"Authorization"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": [\n        {\n            \"id\": 14,\n            \"user_id\": 1,\n            \"offer_id\": null,\n            \"service\": null,\n            \"just_once\": true,\n            \"start_date\": \"2023-03-16\",\n            \"start_time\": \"7h\",\n            \"end_date\": null,\n            \"passages\": null,\n            \"nbr_hours\": 2,\n            \"nbr_employees\": 1,\n            \"location\": {\n                \"lat\": 33.6826682915463635481501114554703235626220703125,\n                \"lng\": -7.38308507949113757007353342487476766109466552734375\n            },\n            \"city\": \"Mohammédia\",\n            \"adress\": null,\n            \"products\": false,\n            \"confirmed\": true,\n            \"status\": \"pending\",\n            \"nbr_months\": null,\n            \"price\": 150,\n            \"created_at\": \"2023-03-14T09:45:48.000000Z\",\n            \"updated_at\": \"2023-03-14T09:45:48.000000Z\",\n            \"offer\": null\n        }\n    ]\n}"}],"_postman_id":"09935387-151b-488b-82ec-6f3829542b0b"}],"id":"6801bb02-f422-4624-9537-b3fc54aaab94","_postman_id":"6801bb02-f422-4624-9537-b3fc54aaab94","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"4|YOO4CGS2JqjZvn9wWaT80VpMGT0J85Lxln8fcICf"}]},"isInherited":true,"source":{"_postman_id":"8be1ba88-207a-4037-b0a6-57fddec8f3ad","id":"8be1ba88-207a-4037-b0a6-57fddec8f3ad","name":"likdom-API","type":"collection"}}},{"name":"User Account","item":[{"name":"Get authenticated user","id":"8ad0565d-2aea-4522-b415-ce8331ec1c33","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"x-api-key","value":"{{x-api-key}}","type":"text"}],"url":"https://likdom.ma/api/user","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"4|YOO4CGS2JqjZvn9wWaT80VpMGT0J85Lxln8fcICf"}]},"isInherited":true,"source":{"_postman_id":"8be1ba88-207a-4037-b0a6-57fddec8f3ad","id":"8be1ba88-207a-4037-b0a6-57fddec8f3ad","name":"likdom-API","type":"collection"}},"urlObject":{"protocol":"https","path":["api","user"],"host":["likdom","ma"],"query":[],"variable":[]}},"response":[{"id":"899051bc-bee3-4c83-accb-45acb314e9db","name":"successful request","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"x-api-key","value":"{{x-api-key}}","type":"text"}],"url":"https://likdom.ma/api/user"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"127.0.0.1:8000"},{"key":"Date","value":"Mon, 16 Jan 2023 14:23:16 GMT"},{"key":"Date","value":"Mon, 16 Jan 2023 14:23:16 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/7.4.9"},{"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    \"data\": {\n        \"id\": 2,\n        \"name\": \"admin\",\n        \"email\": \"mohamed@likdom.ma\",\n        \"phone\": \"644320022\"\n    }\n}"}],"_postman_id":"8ad0565d-2aea-4522-b415-ce8331ec1c33"},{"name":"Password check","id":"1b63638d-5661-45bf-80c0-c7e3e2ec69bd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"},{"warning":"This is a duplicate header and will be overridden by the Content-Type header generated by Postman.","key":"Content-Type","value":"application/json","type":"text"},{"key":"x-api-key","value":"{{x-api-key}}","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"password","value":"password","type":"text","description":"<p>required |string | min:8</p>\n"}]},"url":"https://likdom.ma/api/user/password-check","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"4|YOO4CGS2JqjZvn9wWaT80VpMGT0J85Lxln8fcICf"}]},"isInherited":true,"source":{"_postman_id":"8be1ba88-207a-4037-b0a6-57fddec8f3ad","id":"8be1ba88-207a-4037-b0a6-57fddec8f3ad","name":"likdom-API","type":"collection"}},"urlObject":{"protocol":"https","path":["api","user","password-check"],"host":["likdom","ma"],"query":[],"variable":[]}},"response":[{"id":"436b1dd4-31f3-4748-8148-4a0818c5ebde","name":"successful request","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"x-api-key","value":"{{x-api-key}}","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"password","value":"password","type":"text","description":"required |string | min:8"}]},"url":"https://likdom.ma/api/user/password-check"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"127.0.0.1:8000"},{"key":"Date","value":"Thu, 02 Feb 2023 12:07:33 GMT"},{"key":"Date","value":"Thu, 02 Feb 2023 12:07:33 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/7.4.9"},{"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    \"message\": \"password correct\"\n}"},{"id":"ea0b6611-0744-4bf1-a49a-37a2f96de364","name":"failed request : wrong password","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"x-api-key","value":"{{x-api-key}}","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"password","value":"wrong-password","type":"text","description":"required |string | min:8"}]},"url":"https://likdom.ma/api/user/password-check"},"status":"Unprocessable Content","code":422,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"127.0.0.1:8000"},{"key":"Date","value":"Thu, 02 Feb 2023 12:08:08 GMT"},{"key":"Date","value":"Thu, 02 Feb 2023 12:08:08 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/7.4.9"},{"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    \"message\": \"wrong password\"\n}"}],"_postman_id":"1b63638d-5661-45bf-80c0-c7e3e2ec69bd"},{"name":"Update user","id":"f5083b88-2173-4b1e-b06e-a40dcc832b74","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"x-api-key","value":"{{x-api-key}}","type":"text"}],"url":"https://likdom.ma/api/user/update?name=mohamed&email=newEmail@likdom.ma","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"4|YOO4CGS2JqjZvn9wWaT80VpMGT0J85Lxln8fcICf"}]},"isInherited":true,"source":{"_postman_id":"8be1ba88-207a-4037-b0a6-57fddec8f3ad","id":"8be1ba88-207a-4037-b0a6-57fddec8f3ad","name":"likdom-API","type":"collection"}},"urlObject":{"protocol":"https","path":["api","user","update"],"host":["likdom","ma"],"query":[{"description":{"content":"<p>string</p>\n","type":"text/plain"},"key":"name","value":"mohamed"},{"description":{"content":"<p>string | email</p>\n","type":"text/plain"},"key":"email","value":"newEmail@likdom.ma"}],"variable":[]}},"response":[{"id":"a61238e9-7595-4353-bd9a-44af2e62a0f3","name":"successful request","originalRequest":{"method":"PUT","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"x-api-key","value":"{{x-api-key}}","type":"text"}],"url":{"raw":"https://likdom.ma/api/user/update?name=mohamed&email=newEmail@likdom.ma","protocol":"https","host":["likdom","ma"],"path":["api","user","update"],"query":[{"key":"name","value":"mohamed","description":"string"},{"key":"email","value":"newEmail@likdom.ma","description":"string | email"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 17 Jan 2023 12:25:13 GMT"},{"key":"Server","value":"Apache"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"59"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Vary","value":"Authorization"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"user info updated\"\n}"},{"id":"f9f48e71-6a80-4562-8a49-81d43152eebb","name":"failed request : email taken","originalRequest":{"method":"PUT","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"x-api-key","value":"{{x-api-key}}","type":"text"}],"url":{"raw":"https://likdom.ma/api/user/update?name=mohamed&email=newEmail@gmail.com","protocol":"https","host":["likdom","ma"],"path":["api","user","update"],"query":[{"key":"name","value":"mohamed"},{"key":"email","value":"newEmail@gmail.com"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"127.0.0.1:8000"},{"key":"Date","value":"Mon, 16 Jan 2023 16:41:46 GMT"},{"key":"Date","value":"Mon, 16 Jan 2023 16:41:46 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/7.4.9"},{"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    \"message\": {\n        \"email\": [\n            \"The email has already been taken.\"\n        ]\n    }\n}"},{"id":"132e0aa0-307b-402d-ace4-d545825edfb0","name":"failed request : name and email not present","originalRequest":{"method":"PUT","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"x-api-key","value":"{{x-api-key}}","type":"text"}],"url":{"raw":"https://likdom.ma/api/user/update","protocol":"https","host":["likdom","ma"],"path":["api","user","update"],"query":[{"key":"name","value":"mohamed","disabled":true},{"key":"email","value":"newEmail@likdom.ma","disabled":true}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"127.0.0.1:8000"},{"key":"Date","value":"Mon, 16 Jan 2023 16:53:38 GMT"},{"key":"Date","value":"Mon, 16 Jan 2023 16:53:38 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/7.4.9"},{"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    \"message\": \"name and email are not present\"\n}"}],"_postman_id":"f5083b88-2173-4b1e-b06e-a40dcc832b74"},{"name":"Validate phone","id":"5dc1b1f7-997b-40ca-aae9-ef058fa6ef02","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"x-api-key","value":"{{x-api-key}}","type":"text"}],"url":"https://likdom.ma/api/user/validate-phone?phone=644320021","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"4|YOO4CGS2JqjZvn9wWaT80VpMGT0J85Lxln8fcICf"}]},"isInherited":true,"source":{"_postman_id":"8be1ba88-207a-4037-b0a6-57fddec8f3ad","id":"8be1ba88-207a-4037-b0a6-57fddec8f3ad","name":"likdom-API","type":"collection"}},"urlObject":{"protocol":"https","path":["api","user","validate-phone"],"host":["likdom","ma"],"query":[{"key":"phone","value":"644320021"}],"variable":[]}},"response":[{"id":"daa729a1-4929-448b-b0d9-cfcc12768f2d","name":"successful request","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"x-api-key","value":"{{x-api-key}}","type":"text"}],"url":{"raw":"https://likdom.ma/api/user/validate-phone?phone=644320021","protocol":"https","host":["likdom","ma"],"path":["api","user","validate-phone"],"query":[{"key":"phone","value":"644320021"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"127.0.0.1:8000"},{"key":"Date","value":"Wed, 22 Mar 2023 11:32:04 GMT"},{"key":"Date","value":"Wed, 22 Mar 2023 11:32:04 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/7.4.9"},{"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    \"message\": \"phone validated\"\n}"},{"id":"d1d52176-5d09-403e-95b0-a7a2caffeb93","name":"failed request : validation error","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"x-api-key","value":"{{x-api-key}}","type":"text"}],"url":{"raw":"https://likdom.ma/api/user/validate-phone?phone=644320022","protocol":"https","host":["likdom","ma"],"path":["api","user","validate-phone"],"query":[{"key":"phone","value":"644320022"}]}},"status":"Unprocessable Content","code":422,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"127.0.0.1:8000"},{"key":"Date","value":"Wed, 22 Mar 2023 11:32:25 GMT"},{"key":"Date","value":"Wed, 22 Mar 2023 11:32:25 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/7.4.9"},{"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    \"message\": \"The given data was invalid.\",\n    \"errors\": {\n        \"phone\": [\n            \"The phone has already been taken.\"\n        ]\n    }\n}"}],"_postman_id":"5dc1b1f7-997b-40ca-aae9-ef058fa6ef02"},{"name":"Update user phone number","id":"185cddf8-f1f4-4716-a7ad-2e6ddafe1172","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"x-api-key","value":"{{x-api-key}}","type":"text"}],"url":"https://likdom.ma/api/user/update-phone?phone=644320022","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"4|YOO4CGS2JqjZvn9wWaT80VpMGT0J85Lxln8fcICf"}]},"isInherited":true,"source":{"_postman_id":"8be1ba88-207a-4037-b0a6-57fddec8f3ad","id":"8be1ba88-207a-4037-b0a6-57fddec8f3ad","name":"likdom-API","type":"collection"}},"urlObject":{"protocol":"https","path":["api","user","update-phone"],"host":["likdom","ma"],"query":[{"key":"phone","value":"644320022"}],"variable":[]}},"response":[{"id":"a3aa742c-e88e-49e1-9266-c67229147ff3","name":"successful request","originalRequest":{"method":"PUT","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"x-api-key","value":"{{x-api-key}}","type":"text"}],"url":{"raw":"https://likdom.ma/api/user/update-phone?phone=644320022","protocol":"https","host":["likdom","ma"],"path":["api","user","update-phone"],"query":[{"key":"phone","value":"644320022"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sat, 25 Feb 2023 12:26:33 GMT"},{"key":"Server","value":"Apache"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"59"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Vary","value":"Authorization"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": \"phone updated \"\n}"},{"id":"14d2e060-da6a-4ff9-b92a-3d20f4da1aec","name":"failed request : validation error","originalRequest":{"method":"PUT","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"x-api-key","value":"{{x-api-key}}","type":"text"}],"url":{"raw":"https://likdom.ma/api/user/update-phone?phone=644330013","protocol":"https","host":["likdom","ma"],"path":["api","user","update-phone"],"query":[{"key":"phone","value":"644330013"}]}},"status":"Unprocessable Content","code":422,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sat, 25 Feb 2023 12:28:14 GMT"},{"key":"Server","value":"Apache"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"58"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Vary","value":"Authorization"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"The given data was invalid.\",\n    \"errors\": {\n        \"phone\": [\n            \"The phone has already been taken.\"\n        ]\n    }\n}"}],"_postman_id":"185cddf8-f1f4-4716-a7ad-2e6ddafe1172"},{"name":"Update user password","id":"eaf6a73e-3b53-4620-8853-9f1df4e9c70e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"},{"warning":"This is a duplicate header and will be overridden by the Content-Type header generated by Postman.","key":"Content-Type","value":"application/json","type":"text"},{"key":"x-api-key","value":"{{x-api-key}}","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"current_password","value":"passpass","type":"text","description":"<p>required | string</p>\n"},{"key":"password","value":"password","type":"text","description":"<p>required | string</p>\n"},{"key":"password_confirmation","value":"password","type":"text","description":"<p>required | string</p>\n"}]},"url":"https://likdom.ma/api/user/update-password","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"4|YOO4CGS2JqjZvn9wWaT80VpMGT0J85Lxln8fcICf"}]},"isInherited":true,"source":{"_postman_id":"8be1ba88-207a-4037-b0a6-57fddec8f3ad","id":"8be1ba88-207a-4037-b0a6-57fddec8f3ad","name":"likdom-API","type":"collection"}},"urlObject":{"protocol":"https","path":["api","user","update-password"],"host":["likdom","ma"],"query":[],"variable":[]}},"response":[{"id":"8163e3b6-7028-4242-8b80-8081ba840fd1","name":"successful request","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"x-api-key","value":"{{x-api-key}}","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"current_password","value":"password","type":"text"},{"key":"password","value":"passpass","type":"text"},{"key":"password_confirmation","value":"passpass","type":"text"}]},"url":"https://likdom.ma/api/user/update-password"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"127.0.0.1:8000"},{"key":"Date","value":"Mon, 16 Jan 2023 17:18:07 GMT"},{"key":"Date","value":"Mon, 16 Jan 2023 17:18:07 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/7.4.9"},{"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    \"message\": \"user password updated\"\n}"},{"id":"c268b088-87ae-46ef-9b20-7719b2559f10","name":"failed request : wrong password","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"x-api-key","value":"{{x-api-key}}","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"current_password","value":"wrong current pass","type":"text"},{"key":"password","value":"password","type":"text"},{"key":"password_confirmation","value":"password","type":"text"}]},"url":"https://likdom.ma/api/user/update-password"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"127.0.0.1:8000"},{"key":"Date","value":"Mon, 16 Jan 2023 17:15:19 GMT"},{"key":"Date","value":"Mon, 16 Jan 2023 17:15:19 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/7.4.9"},{"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    \"message\": {\n        \"current_password\": [\n            \"The provided password does not match your current password.\"\n        ]\n    }\n}"},{"id":"655feeee-196a-44c0-8183-2c4ebeb787fa","name":"failed request : password dont match","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"x-api-key","value":"{{x-api-key}}","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"current_password","value":"passpass","type":"text"},{"key":"password","value":"password","type":"text"},{"key":"password_confirmation","value":"passwordd","type":"text"}]},"url":"https://likdom.ma/api/user/update-password"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"127.0.0.1:8000"},{"key":"Date","value":"Mon, 16 Jan 2023 17:13:06 GMT"},{"key":"Date","value":"Mon, 16 Jan 2023 17:13:06 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/7.4.9"},{"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    \"message\": {\n        \"password\": [\n            \"The password confirmation does not match.\"\n        ]\n    }\n}"}],"_postman_id":"eaf6a73e-3b53-4620-8853-9f1df4e9c70e"},{"name":"Check phone exists","id":"0af3b7db-facb-409a-a1cb-3c080d2ebe87","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"x-api-key","value":"{{x-api-key}}","type":"text"}],"url":"https://likdom.ma/api/phone-check?phone=644320022","urlObject":{"protocol":"https","path":["api","phone-check"],"host":["likdom","ma"],"query":[{"key":"phone","value":"644320022"}],"variable":[]}},"response":[{"id":"309a8ca4-2032-4df7-80ca-929f40b19cc4","name":"successful request","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"x-api-key","value":"{{x-api-key}}","type":"text"}],"url":{"raw":"https://likdom.ma/api/phone-check?phone=644320022","protocol":"https","host":["likdom","ma"],"path":["api","phone-check"],"query":[{"key":"phone","value":"644320022"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"127.0.0.1:8000"},{"key":"Date","value":"Sun, 26 Mar 2023 07:12:32 GMT"},{"key":"Date","value":"Sun, 26 Mar 2023 07:12:32 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/7.4.9"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Content-Type","value":"application/json"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"54"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"phone exists\"\n}"},{"id":"7b15d794-69e2-4750-8d3a-c89aac2aa86f","name":"failed request : phone dont exists","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"x-api-key","value":"{{x-api-key}}","type":"text"}],"url":{"raw":"https://likdom.ma/api/phone-check?phone=644320055","protocol":"https","host":["likdom","ma"],"path":["api","phone-check"],"query":[{"key":"phone","value":"644320055"}]}},"status":"Unprocessable Content","code":422,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"127.0.0.1:8000"},{"key":"Date","value":"Sun, 26 Mar 2023 07:13:01 GMT"},{"key":"Date","value":"Sun, 26 Mar 2023 07:13:01 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/7.4.9"},{"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    \"message\": \"The given data was invalid.\",\n    \"errors\": {\n        \"phone\": [\n            \"The selected phone is invalid.\"\n        ]\n    }\n}"}],"_postman_id":"0af3b7db-facb-409a-a1cb-3c080d2ebe87"},{"name":"Reset password","id":"e7b16ab9-b926-44a0-8343-ad0254561dce","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"},{"warning":"This is a duplicate header and will be overridden by the Content-Type header generated by Postman.","key":"Content-Type","value":"application/json","type":"text"},{"key":"x-api-key","value":"{{x-api-key}}","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"phone","value":"644320022","description":"<p>required | size:9</p>\n","type":"text"},{"key":"password","value":"password","description":"<p>required | string | min:8</p>\n","type":"text"},{"key":"password_confirmation","value":"password","description":"<p>required | string | min:8</p>\n","type":"text"}]},"url":"https://likdom.ma/api/reset-password","urlObject":{"protocol":"https","path":["api","reset-password"],"host":["likdom","ma"],"query":[],"variable":[]}},"response":[{"id":"c760f588-df98-4178-b817-0d2f34c4b222","name":"successful request","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"x-api-key","value":"{{x-api-key}}","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"phone","value":"644320022","description":"required | size:9","type":"text"},{"key":"password","value":"new-password","description":"required | string | min:8","type":"text"},{"key":"password_confirmation","value":"new-password","description":"required | string | min:8","type":"text"}]},"url":"https://likdom.ma/api/reset-password"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"127.0.0.1:8000"},{"key":"Date","value":"Thu, 02 Feb 2023 17:15:15 GMT"},{"key":"Date","value":"Thu, 02 Feb 2023 17:15:15 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/7.4.9"},{"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    \"message\": \"reset password successful\"\n}"},{"id":"5081e401-da83-4697-9246-a57a681ad396","name":"failed request : validation error","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"x-api-key","value":"{{x-api-key}}","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"phone","value":"644320022","description":"required | size:9","type":"text"},{"key":"password","value":"new-password","description":"required | string | min:8","type":"text"},{"key":"password_confirmation","value":"wrong-new-password","description":"required | string | min:8","type":"text"}]},"url":"https://likdom.ma/api/reset-password"},"status":"Unprocessable Content","code":422,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"127.0.0.1:8000"},{"key":"Date","value":"Thu, 02 Feb 2023 17:15:55 GMT"},{"key":"Date","value":"Thu, 02 Feb 2023 17:15:55 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/7.4.9"},{"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    \"message\": \"The given data was invalid.\",\n    \"errors\": {\n        \"password\": [\n            \"The password confirmation does not match.\"\n        ]\n    }\n}"}],"_postman_id":"e7b16ab9-b926-44a0-8343-ad0254561dce"}],"id":"fab281c8-26b0-4bc0-96b9-3e12e9d1aca4","_postman_id":"fab281c8-26b0-4bc0-96b9-3e12e9d1aca4","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"4|YOO4CGS2JqjZvn9wWaT80VpMGT0J85Lxln8fcICf"}]},"isInherited":true,"source":{"_postman_id":"8be1ba88-207a-4037-b0a6-57fddec8f3ad","id":"8be1ba88-207a-4037-b0a6-57fddec8f3ad","name":"likdom-API","type":"collection"}}},{"name":"Contract","item":[{"name":"Create contract","id":"c6486fcb-c34f-4349-85e8-538f821ddb7a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"},{"warning":"This is a duplicate header and will be overridden by the Content-Type header generated by Postman.","key":"Content-Type","value":"application/json","type":"text"},{"key":"x-api-key","value":"{{x-api-key}}","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"subscription_id","value":"11","description":"<p>required | integer</p>\n","type":"text"},{"key":"manager_name","value":"rachy","description":"<p>required | string</p>\n","type":"text"},{"key":"company_name","value":"my company","description":"<p>required | string</p>\n","type":"text"},{"key":"capital","value":"12990","description":"<p>required | float</p>\n","type":"text"},{"key":"adress","value":"Rachidia 1 225","description":"<p>required | string</p>\n","type":"text"},{"key":"city","value":"Mohammedia","description":"<p>required | string</p>\n","type":"text"},{"key":"rc_number","value":"123 45T6 665","description":"<p>required | string</p>\n","type":"text"}]},"url":"https://likdom.ma/api/create/contract","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"4|YOO4CGS2JqjZvn9wWaT80VpMGT0J85Lxln8fcICf"}]},"isInherited":true,"source":{"_postman_id":"8be1ba88-207a-4037-b0a6-57fddec8f3ad","id":"8be1ba88-207a-4037-b0a6-57fddec8f3ad","name":"likdom-API","type":"collection"}},"urlObject":{"protocol":"https","path":["api","create","contract"],"host":["likdom","ma"],"query":[],"variable":[]}},"response":[{"id":"205c78ae-a65a-4d3a-bfbe-fda203a6a067","name":"successful request","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"x-api-key","value":"{{x-api-key}}","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"subscription_id","value":"11","description":"integer","type":"text"},{"key":"manager_name","value":"Med","description":"string","type":"text"},{"key":"company_name","value":"my company","description":"string","type":"text"},{"key":"capital","value":"12990","description":"float","type":"text"},{"key":"adress","value":"Rachidia 1 225","description":"string","type":"text"},{"key":"city","value":"Mohammedia","description":"string","type":"text"},{"key":"rc_number","value":"123 45T6 665","description":"string","type":"text"}]},"url":"https://likdom.ma/api/create/contract"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"127.0.0.1:8000"},{"key":"Date","value":"Mon, 16 Jan 2023 14:14:20 GMT"},{"key":"Date","value":"Mon, 16 Jan 2023 14:14:20 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/7.4.9"},{"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    \"message\": \"successfully created\"\n}"},{"id":"fc964f8f-aa68-4f2b-8ae8-57a7aa297063","name":"failed request : validation error","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"x-api-key","value":"{{x-api-key}}","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"subscription_id","value":"","description":"required | integer","type":"text"},{"key":"manager_name","value":"","description":"required | string","type":"text"},{"key":"company_name","value":"my company","description":"required | string","type":"text"},{"key":"capital","value":"12990","description":"required | float","type":"text"},{"key":"adress","value":"Rachidia 1 225","description":"required | string","type":"text"},{"key":"city","value":"Mohammedia","description":"required | string","type":"text"},{"key":"rc_number","value":"123 45T6 665","description":"required | string","type":"text"}]},"url":"https://likdom.ma/api/create/contract"},"status":"Unprocessable Content","code":422,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"127.0.0.1:8000"},{"key":"Date","value":"Mon, 16 Jan 2023 14:16:45 GMT"},{"key":"Date","value":"Mon, 16 Jan 2023 14:16:45 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/7.4.9"},{"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    \"message\": \"The given data was invalid.\",\n    \"errors\": {\n        \"subscription_id\": [\n            \"The subscription id field is required.\"\n        ],\n        \"manager_name\": [\n            \"The manager name field is required.\"\n        ]\n    }\n}"}],"_postman_id":"c6486fcb-c34f-4349-85e8-538f821ddb7a"}],"id":"64a52ed3-18ab-4940-8b25-144384445277","_postman_id":"64a52ed3-18ab-4940-8b25-144384445277","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"4|YOO4CGS2JqjZvn9wWaT80VpMGT0J85Lxln8fcICf"}]},"isInherited":true,"source":{"_postman_id":"8be1ba88-207a-4037-b0a6-57fddec8f3ad","id":"8be1ba88-207a-4037-b0a6-57fddec8f3ad","name":"likdom-API","type":"collection"}}},{"name":"get today date and time","id":"1e6650e9-c76f-4fde-b2fd-5a6a3336980b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"x-api-key","value":"{{x-api-key}}","type":"text"}],"url":"https://likdom.ma/api/get_date_time","urlObject":{"protocol":"https","path":["api","get_date_time"],"host":["likdom","ma"],"query":[],"variable":[]}},"response":[{"id":"c6920e14-0a67-42ac-85f0-ed1b4c6db230","name":"successful request","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"x-api-key","value":"{{x-api-key}}","type":"text"}],"url":"https://likdom.ma/api/get_date_time"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 20 Feb 2023 14:20:29 GMT"},{"key":"Server","value":"Apache"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"59"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"date\": \"2023-02-20\",\n    \"time\": \"15:20\"\n}"}],"_postman_id":"1e6650e9-c76f-4fde-b2fd-5a6a3336980b"},{"name":"Get notification state","id":"4c6be0a5-d217-4e2c-8e3a-6f38564860d4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"x-api-key","value":"{{x-api-key}}","type":"text"}],"url":"https://likdom.ma/api/get/notification-state","description":"<p>this endpoint return the notification state</p>\n<ul>\n<li><strong>True</strong> : the user have a pending (en attente) subscription / reservation. <em><strong>red dot is shown</strong></em></li>\n<li><strong>False</strong> : the user have no pending subscription / reservation. <em><strong>red dot is hidden</strong></em></li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"4|YOO4CGS2JqjZvn9wWaT80VpMGT0J85Lxln8fcICf"}]},"isInherited":true,"source":{"_postman_id":"8be1ba88-207a-4037-b0a6-57fddec8f3ad","id":"8be1ba88-207a-4037-b0a6-57fddec8f3ad","name":"likdom-API","type":"collection"}},"urlObject":{"protocol":"https","path":["api","get","notification-state"],"host":["likdom","ma"],"query":[],"variable":[]}},"response":[{"id":"c37f9a44-4aee-44d6-8d6d-6d27018b1c44","name":"successful request","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"x-api-key","value":"{{x-api-key}}","type":"text"}],"url":"https://likdom.ma/api/get/notification-state"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sun, 02 Apr 2023 12:20:03 GMT"},{"key":"Server","value":"Apache"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"55"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Vary","value":"Authorization"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"state\": true\n}"}],"_postman_id":"4c6be0a5-d217-4e2c-8e3a-6f38564860d4"}],"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"4|YOO4CGS2JqjZvn9wWaT80VpMGT0J85Lxln8fcICf"}]}},"event":[{"listen":"prerequest","script":{"id":"d479862d-7e22-421e-8e4c-94eeaa876c76","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"516e9d60-dfb6-4d64-91c2-0325ef0dcf20","type":"text/javascript","exec":[""]}}],"variable":[{"key":"token","value":"4|YOO4CGS2JqjZvn9wWaT80VpMGT0J85Lxln8fcICf"},{"value":"","type":"string","disabled":true}]}