{"info":{"_postman_id":"2ccd193b-fd2a-4d95-9130-6e33d93d962f","name":"Med_Sal API","description":"<html><head></head><body><p>This documentation descripes the API work in the med_sal project</p>\n<p>http://127.0.0.1:8000/api/v1 =&gt; 127.0.0.1:8000/api/v1/</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"26438410","collectionId":"2ccd193b-fd2a-4d95-9130-6e33d93d962f","publishedId":"2s9YeLX9QZ","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2023-12-10T18:12:19.000Z"},"item":[{"name":"appointments","item":[{"name":"specific appointment","item":[{"name":"read","id":"385e1d1e-e454-4866-bf44-4b598f27081d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MTUxMTQ1LCJpYXQiOjE3MDcxNDk5NDUsImp0aSI6ImVjYTg2YjU2MzQzMTRjOGM4ODQ5ZDE5NDIxZjBhNWRjIiwidXNlcl9pZCI6Mjl9.Nvwe8pUiojODkH1f_Nqi6RvAEDGDlSmfOcbNXbQ_JzI","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/appointments/30/","description":"<p>This HTTP GET request retrieves details of a specific appointment by providing the appointment ID in the URL.</p>\n<p><strong>This endpoint is for authenticated users.</strong></p>\n<p>The response will contain details such as appointment ID, timing, date, status, creation and update timestamps, service details, user details, location ID, provider details, and provider business name.</p>\n<p>The response will be in JSON format with a status code of 200.</p>\n","urlObject":{"protocol":"http","port":"8000","path":["api","v1","appointments","30",""],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[{"id":"4703ed27-bd07-4f51-927a-fb927347d0c6","name":"read","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MTUxMTQ1LCJpYXQiOjE3MDcxNDk5NDUsImp0aSI6ImVjYTg2YjU2MzQzMTRjOGM4ODQ5ZDE5NDIxZjBhNWRjIiwidXNlcl9pZCI6Mjl9.Nvwe8pUiojODkH1f_Nqi6RvAEDGDlSmfOcbNXbQ_JzI","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/appointments/30/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 05 Feb 2024 16:19:26 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.11.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language"},{"key":"Allow","value":"GET, PUT, PATCH, DELETE, HEAD, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"476"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 30,\n        \"diagonsis\": null,\n        \"from_time\": \"09:00:00\",\n        \"to_time\": \"10:00:00\",\n        \"date\": \"2023-12-15\",\n        \"status\": \"accepted\",\n        \"result\": \"Treatment_Finished\",\n        \"note\": null,\n        \"created_at\": \"2023-12-09T21:00:52.218347+03:00\",\n        \"updated_at\": \"2024-01-25T12:15:22.609253+03:00\",\n        \"service\": 12,\n        \"user\": 23,\n        \"user_email\": \"maamoun.haj.najeeb@gmail.com\",\n        \"service_title\": \"general check_up\",\n        \"location_id\": 5,\n        \"provider_id\": 31,\n        \"provider_email\": \"computerscience.magic@gmail.com\",\n        \"provider_business_name\": \"our_new_name\"\n    }\n]"}],"_postman_id":"385e1d1e-e454-4866-bf44-4b598f27081d"},{"name":"delete","id":"7ce559b4-ca77-40d9-93d9-2841dd2a960c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MTU3NTgyLCJpYXQiOjE3MDcxNTYzODIsImp0aSI6IjI1NzFhODA1YTk3YjQ4MDBhNzVkMjY3YzMxNTg1NGM5IiwidXNlcl9pZCI6MjN9.H2O2iY0lODPdbL4MR9k3l4ZAeMc80atpTKoBs61Tamw","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/appointments/34/","description":"<p>This endpoint sends an HTTP DELETE request to remove the appointment with the ID 34.</p>\n<p><strong>This endpoint is for admins.</strong></p>\n<p>The response returns a status code of 204 with a Content-Type of text/xml.</p>\n","urlObject":{"protocol":"http","port":"8000","path":["api","v1","appointments","34",""],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[{"id":"417d8f36-bfb9-4c59-9902-2145c86083a7","name":"delete","originalRequest":{"method":"DELETE","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MTU3NTgyLCJpYXQiOjE3MDcxNTYzODIsImp0aSI6IjI1NzFhODA1YTk3YjQ4MDBhNzVkMjY3YzMxNTg1NGM5IiwidXNlcl9pZCI6MjN9.H2O2iY0lODPdbL4MR9k3l4ZAeMc80atpTKoBs61Tamw","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/appointments/34/"},"status":"No Content","code":204,"_postman_previewlanguage":"plain","header":[{"key":"Date","value":"Mon, 05 Feb 2024 18:06:44 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.11.0"},{"key":"Vary","value":"Accept, origin, Accept-Language"},{"key":"Allow","value":"GET, PUT, PATCH, DELETE, HEAD, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"0"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":null}],"_postman_id":"7ce559b4-ca77-40d9-93d9-2841dd2a960c"},{"name":"create","id":"55cd1de7-aa13-4368-bcd1-30fe21e15512","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MTU3OTY1LCJpYXQiOjE3MDcxNTY3NjUsImp0aSI6ImQzYTM0YmMxOGVmNzQwMzQ5ZmYwZWIyYmRmMTlkNzAwIiwidXNlcl9pZCI6Mjl9.TW2HTiPXMWa4JMD6awqt8KHMAOFR_wFhKPOWmxT_By0","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"from_time\": \"12:00\",\r\n  \"to_time\": \"13:30\",\r\n  \"service\": 21,\r\n  \"diagonsis\": \"nothing\",\r\n  \"date\": \"2024-2-15\",\r\n  \"note\": \"no note\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/api/v1/appointments/create/","description":"<h1 id=\"create-appointment\">Create Appointment</h1>\n<p>This endpoint allows you to create a new appointment.</p>\n<p>This endpoint is for authenticated users.</p>\n<h2 id=\"request-body\">Request Body</h2>\n<ul>\n<li><code>from_time</code> (string, required): The start time of the appointment.</li>\n<li><code>to_time</code> (string, required): The end time of the appointment.</li>\n<li><code>service</code> (integer, required): The ID of the service for the appointment.</li>\n<li><code>diagonsis</code> (string, optional): The diagnosis for the appointment.</li>\n<li><code>date</code> (string, required): The date of the appointment.</li>\n<li><code>note</code> (string, optional): Any additional notes for the appointment.</li>\n</ul>\n<h2 id=\"response\">Response</h2>\n<ul>\n<li><code>id</code> (integer): The ID of the created appointment.</li>\n<li><code>from_time</code> (string): The start time of the appointment.</li>\n<li><code>to_time</code> (string): The end time of the appointment.</li>\n<li><code>date</code> (string): The date of the appointment.</li>\n<li><code>status</code> (string): The status of the appointment.</li>\n<li><code>created_at</code> (string): The timestamp of when the appointment was created.</li>\n<li><code>updated_at</code> (string): The timestamp of when the appointment was last updated.</li>\n<li><code>service</code> (integer): The ID of the service for the appointment.</li>\n<li><code>user</code> (integer): The ID of the user for the appointment.</li>\n<li><code>user_email</code> (string): The email of the user for the appointment.</li>\n<li><code>service_title</code> (string): The title of the service for the appointment.</li>\n<li><code>location_id</code> (integer): The ID of the location for the appointment.</li>\n<li><code>provider_id</code> (integer): The ID of the provider for the appointment.</li>\n<li><code>provider_email</code> (string): The email of the provider for the appointment.</li>\n<li><code>provider_business_name</code> (string): The business name of the provider for the appointment.</li>\n</ul>\n<h2 id=\"example-response\">Example Response</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"id\": 0,\n    \"from_time\": \"\",\n    \"to_time\": \"\",\n    \"date\": \"\",\n    \"status\": \"\",\n    \"created_at\": \"\",\n    \"updated_at\": \"\",\n    \"service\": 0,\n    \"user\": 0,\n    \"user_email\": \"\",\n    \"service_title\": \"\",\n    \"location_id\": 0,\n    \"provider_id\": 0,\n    \"provider_email\": \"\",\n    \"provider_business_name\": \"\"\n}\n\n</code></pre>\n","urlObject":{"protocol":"http","port":"8000","path":["api","v1","appointments","create",""],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[{"id":"c5961e5c-ee87-41ca-9ebf-212ee144f29a","name":"create","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MTU3OTY1LCJpYXQiOjE3MDcxNTY3NjUsImp0aSI6ImQzYTM0YmMxOGVmNzQwMzQ5ZmYwZWIyYmRmMTlkNzAwIiwidXNlcl9pZCI6Mjl9.TW2HTiPXMWa4JMD6awqt8KHMAOFR_wFhKPOWmxT_By0","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"from_time\": \"12:00\",\r\n  \"to_time\": \"13:30\",\r\n  \"service\": 21,\r\n  \"diagonsis\": \"nothing\",\r\n  \"date\": \"2024-2-15\",\r\n  \"note\": \"no note\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/api/v1/appointments/create/"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 05 Feb 2024 18:13:25 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.11.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language"},{"key":"Allow","value":"POST, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"457"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 37,\n    \"diagonsis\": \"nothing\",\n    \"from_time\": \"12:00:00\",\n    \"to_time\": \"13:30:00\",\n    \"date\": \"2024-02-15\",\n    \"status\": \"pending\",\n    \"result\": null,\n    \"note\": \"no note\",\n    \"created_at\": \"2024-02-05T21:13:25.331464+03:00\",\n    \"updated_at\": \"2024-02-05T21:13:25.331464+03:00\",\n    \"service\": 21,\n    \"user\": 29,\n    \"user_email\": \"maamoun.h.najeeb@gmail.com\",\n    \"service_title\": \"Dry milk\",\n    \"location_id\": 5,\n    \"provider_id\": 31,\n    \"provider_email\": \"computerscience.magic@gmail.com\",\n    \"provider_business_name\": \"our_new_name\"\n}"}],"_postman_id":"55cd1de7-aa13-4368-bcd1-30fe21e15512"},{"name":"update","id":"0cbcd242-c8f8-44fd-8f66-b435a2cf9ed9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MTUxMzUwLCJpYXQiOjE3MDcxNTAxNTAsImp0aSI6IjQzZjA4ZTNmMGYyYTQ2NWVhMGM5MWVlMThmNmZmYjY5IiwidXNlcl9pZCI6Mjl9.Op-aZE2amuMZhjpb1PIKU7mk4CF32sP2bllDhHov56c","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"status\": \"accepted\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/api/v1/appointments/33/","description":"<h1 id=\"update-appointment-status\">Update Appointment Status</h1>\n<p>This endpoint allows the client to update specific appointment details such as status.</p>\n<p><strong>This endpoint is for service providers and admins.</strong></p>\n<h2 id=\"request\">Request</h2>\n<h3 id=\"http-method\">HTTP Method</h3>\n<p>PATCH</p>\n<h3 id=\"endpoint\">Endpoint</h3>\n<p><code>http://127.0.0.1:8000/api/v1/appointments/33/</code></p>\n<h3 id=\"request-body\">Request Body</h3>\n<ul>\n<li><code>status</code> (string, required): The new status of the appointment.</li>\n</ul>\n<h2 id=\"response\">Response</h2>\n<ul>\n<li><code>id</code> (integer): The unique identifier of the appointment.</li>\n<li><code>from_time</code> (string): The start time of the appointment.</li>\n<li><code>to_time</code> (string): The end time of the appointment.</li>\n<li><code>date</code> (string): The date of the appointment.</li>\n<li><code>status</code> (string): The updated status of the appointment.</li>\n<li><code>created_at</code> (string): The timestamp when the appointment was created.</li>\n<li><code>updated_at</code> (string): The timestamp when the appointment was last updated.</li>\n<li><code>service</code> (integer): The ID of the service associated with the appointment.</li>\n<li><code>user</code> (integer): The ID of the user who scheduled the appointment.</li>\n<li><code>user_email</code> (string): The email of the user who scheduled the appointment.</li>\n<li><code>service_title</code> (string): The title of the service associated with the appointment.</li>\n<li><code>location_id</code> (integer): The ID of the location where the appointment is scheduled.</li>\n<li><code>provider_id</code> (integer): The ID of the provider associated with the appointment.</li>\n<li><code>provider_email</code> (string): The email of the provider associated with the appointment.</li>\n<li><code>provider_business_name</code> (string): The business name of the provider associated with the appointment.</li>\n</ul>\n","urlObject":{"protocol":"http","port":"8000","path":["api","v1","appointments","33",""],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[{"id":"ce423409-b74c-4f62-83c9-c46874bbb9c2","name":"update","originalRequest":{"method":"PATCH","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MTUxMzUwLCJpYXQiOjE3MDcxNTAxNTAsImp0aSI6IjQzZjA4ZTNmMGYyYTQ2NWVhMGM5MWVlMThmNmZmYjY5IiwidXNlcl9pZCI6Mjl9.Op-aZE2amuMZhjpb1PIKU7mk4CF32sP2bllDhHov56c","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"status\": \"accepted\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/api/v1/appointments/33/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 05 Feb 2024 16:22:45 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.11.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language"},{"key":"Allow","value":"GET, PUT, PATCH, DELETE, HEAD, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"468"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 33,\n    \"diagonsis\": null,\n    \"from_time\": \"14:00:00\",\n    \"to_time\": \"15:00:00\",\n    \"date\": \"2023-12-25\",\n    \"status\": \"accepted\",\n    \"result\": \"Treatment_Finished\",\n    \"note\": null,\n    \"created_at\": \"2023-12-23T08:06:07.054882+03:00\",\n    \"updated_at\": \"2024-02-05T19:22:44.963404+03:00\",\n    \"service\": 15,\n    \"user\": 23,\n    \"user_email\": \"maamoun.haj.najeeb@gmail.com\",\n    \"service_title\": \"check feet\",\n    \"location_id\": 6,\n    \"provider_id\": 31,\n    \"provider_email\": \"computerscience.magic@gmail.com\",\n    \"provider_business_name\": \"our_new_name\"\n}"}],"_postman_id":"0cbcd242-c8f8-44fd-8f66-b435a2cf9ed9"}],"id":"444399a7-e761-4c44-a109-83cb375c2b3c","_postman_id":"444399a7-e761-4c44-a109-83cb375c2b3c","description":""},{"name":"rejected","item":[{"name":"specific rejected appointment","item":[{"name":"delete","id":"8eb18815-681e-4974-a2a9-8aa90c5b8b99","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MjE0NTYzLCJpYXQiOjE3MDcyMTMzNjMsImp0aSI6ImQxMjg2ZTVmYzExZjQ0ODJhNWNlN2QzNTBmOWE4NGI3IiwidXNlcl9pZCI6MjN9.Bas5OdQL0jeosepUVdlOfCzhXKJMakRzrFYxeHyc3L4","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/appointments/rejected/9/","description":"<p>This endpoint delete the rejected appointment via ID.</p>\n<p><strong>This endpoint is for admins only.</strong></p>\n","urlObject":{"protocol":"http","port":"8000","path":["api","v1","appointments","rejected","9",""],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[{"id":"c54802be-749e-427c-bda3-e62c7068a284","name":"delete","originalRequest":{"method":"DELETE","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MjE0NTYzLCJpYXQiOjE3MDcyMTMzNjMsImp0aSI6ImQxMjg2ZTVmYzExZjQ0ODJhNWNlN2QzNTBmOWE4NGI3IiwidXNlcl9pZCI6MjN9.Bas5OdQL0jeosepUVdlOfCzhXKJMakRzrFYxeHyc3L4","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/appointments/rejected/9/"},"status":"No Content","code":204,"_postman_previewlanguage":"plain","header":[{"key":"Date","value":"Tue, 06 Feb 2024 10:00:30 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.11.0"},{"key":"Vary","value":"Accept, origin, Accept-Language"},{"key":"Allow","value":"GET, PUT, PATCH, DELETE, HEAD, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"0"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":null}],"_postman_id":"8eb18815-681e-4974-a2a9-8aa90c5b8b99"},{"name":"read","id":"68f5b3c5-c6c5-4ab2-8cd6-2ec6ac4ac3fa","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MjEzNjgzLCJpYXQiOjE3MDcyMTI0ODMsImp0aSI6IjNjMWRlY2ZkNDJlNjQ2NWQ4MzU1MzM0ZWM0MGU2MTIwIiwidXNlcl9pZCI6Mjl9.oFxNA_4K50p3F46-JktFDcZ6grRM2qjiHrgkY_Gw42g","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/api/v1/appointments/rejected/6/","description":"<p>This endpoint retrieves the rejected appointment via ID.</p>\n<p><strong>This endpoint is for authenticated users.</strong></p>\n","urlObject":{"protocol":"http","port":"8000","path":["api","v1","appointments","rejected","6",""],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[{"id":"53699129-78c4-4a8c-ab25-3614eac5ec97","name":"read","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MjEzNjgzLCJpYXQiOjE3MDcyMTI0ODMsImp0aSI6IjNjMWRlY2ZkNDJlNjQ2NWQ4MzU1MzM0ZWM0MGU2MTIwIiwidXNlcl9pZCI6Mjl9.oFxNA_4K50p3F46-JktFDcZ6grRM2qjiHrgkY_Gw42g","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/appointments/rejected/6/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 06 Feb 2024 09:41:42 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.11.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language"},{"key":"Allow","value":"GET, PUT, PATCH, DELETE, HEAD, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"231"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 6,\n        \"service_id\": 7,\n        \"service_title\": \"check stomach\",\n        \"appointment_id\": 25,\n        \"provider_id\": 30,\n        \"provider_email\": \"maamoun3911@gmail.com\",\n        \"locaiton_id\": 3,\n        \"reason\": \"I don't know\",\n        \"read\": false,\n        \"created_at\": \"2023-12-10T09:08:50.980268Z\"\n    }\n]"}],"_postman_id":"68f5b3c5-c6c5-4ab2-8cd6-2ec6ac4ac3fa"},{"name":"create","id":"127b23e6-6fda-4ab7-95ca-b9ee76393fd5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MjE1NjA2LCJpYXQiOjE3MDcyMTQ0MDYsImp0aSI6IjE0OWFiYmVhMjEzYjQzNjNhY2EzNWNlZjIyOWI5OTlmIiwidXNlcl9pZCI6MzB9.bqMX7m3tv5GVCq4Zm86FPP6BV6omsbjr9qcSrfvgOyg","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"reason\": \"Your appointment is rejected for no reason\",\r\n    \"appointment\":27\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/api/v1/appointments/rejected/create/","description":"<p>This endpoint used to create rejected appointments.</p>\n<p><strong>This endpoint is for service providers.</strong></p>\n","urlObject":{"protocol":"http","port":"8000","path":["api","v1","appointments","rejected","create",""],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[{"id":"9472820b-9c2e-449d-81ee-4fa0f1b7707f","name":"create","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MjE1NjA2LCJpYXQiOjE3MDcyMTQ0MDYsImp0aSI6IjE0OWFiYmVhMjEzYjQzNjNhY2EzNWNlZjIyOWI5OTlmIiwidXNlcl9pZCI6MzB9.bqMX7m3tv5GVCq4Zm86FPP6BV6omsbjr9qcSrfvgOyg","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"reason\": \"Your appointment is rejected for no reason\",\r\n    \"appointment\":27\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/api/v1/appointments/rejected/create/"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 06 Feb 2024 10:15:41 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.11.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language"},{"key":"Allow","value":"POST, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"256"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 10,\n    \"service_id\": 9,\n    \"service_title\": \"check ear\",\n    \"appointment_id\": 27,\n    \"provider_id\": 30,\n    \"provider_email\": \"maamoun3911@gmail.com\",\n    \"locaiton_id\": 4,\n    \"reason\": \"Your appointment is rejected for no reason\",\n    \"read\": false,\n    \"created_at\": \"2024-02-06T10:15:41.788532Z\"\n}"}],"_postman_id":"127b23e6-6fda-4ab7-95ca-b9ee76393fd5"},{"name":"patch","id":"e0c146c9-ce67-49f3-841b-65c867d5cf20","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MjE1Mzc3LCJpYXQiOjE3MDcyMTQxNzcsImp0aSI6IjY3MTBiNmFjMTc3MTRjNTlhYTViNzlmNTQ2ZTBlZjIyIiwidXNlcl9pZCI6MjN9.KYioorWcRZu1ZlJQ2GKv6Km7FyyLnCNp-S0ckW0fSvU","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"read\": true\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/api/v1/appointments/rejected/5/","description":"<p>This endpoint used to update on specific rejected appointment record.</p>\n<p><strong>This endpoint is for admins only.</strong></p>\n","urlObject":{"protocol":"http","port":"8000","path":["api","v1","appointments","rejected","5",""],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[{"id":"760f64bd-68a3-48e3-8a92-e4aeb04716cf","name":"patch","originalRequest":{"method":"PATCH","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MjE1Mzc3LCJpYXQiOjE3MDcyMTQxNzcsImp0aSI6IjY3MTBiNmFjMTc3MTRjNTlhYTViNzlmNTQ2ZTBlZjIyIiwidXNlcl9pZCI6MjN9.KYioorWcRZu1ZlJQ2GKv6Km7FyyLnCNp-S0ckW0fSvU","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"read\": true\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/api/v1/appointments/rejected/5/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 06 Feb 2024 10:10:04 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.11.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language"},{"key":"Allow","value":"GET, PUT, PATCH, DELETE, HEAD, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"238"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 5,\n    \"service_id\": 13,\n    \"service_title\": \"check kidney\",\n    \"appointment_id\": 15,\n    \"provider_id\": 31,\n    \"provider_email\": \"computerscience.magic@gmail.com\",\n    \"locaiton_id\": 6,\n    \"reason\": \"I don't know\",\n    \"read\": true,\n    \"created_at\": \"2023-12-10T09:03:27.989601Z\"\n}"}],"_postman_id":"e0c146c9-ce67-49f3-841b-65c867d5cf20"}],"id":"4580b71e-3576-4f36-98d5-f73c8e363ce4","_postman_id":"4580b71e-3576-4f36-98d5-f73c8e363ce4","description":""},{"name":"all rejected appointments","id":"2f107f38-4a41-41df-9da1-57d6f648ad56","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MjEzMzYzLCJpYXQiOjE3MDcyMTIxNjMsImp0aSI6Ijg4M2FmODVlYzg2ZTRiZWU5MGU1YjEwZDg0NmQyNmI3IiwidXNlcl9pZCI6MjN9.4i6464YCvdOe0NPedUCziJO1_hlC4vygQFAfNBw0hy8","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/appointments/rejected/","description":"<p>List all rejected appointments for service providers.</p>\n<p><strong>This endpoint is for admins only.</strong></p>\n","urlObject":{"protocol":"http","port":"8000","path":["api","v1","appointments","rejected",""],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[{"id":"f7ddf428-78fc-4d65-b9a3-768ee3d1f8dd","name":"rejected appointments","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MjEzMzYzLCJpYXQiOjE3MDcyMTIxNjMsImp0aSI6Ijg4M2FmODVlYzg2ZTRiZWU5MGU1YjEwZDg0NmQyNmI3IiwidXNlcl9pZCI6MjN9.4i6464YCvdOe0NPedUCziJO1_hlC4vygQFAfNBw0hy8","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/appointments/rejected/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 06 Feb 2024 09:36:20 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.11.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language"},{"key":"Allow","value":"GET, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"1887"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 4,\n        \"service_id\": 12,\n        \"service_title\": \"general check_up\",\n        \"appointment_id\": 14,\n        \"provider_id\": 31,\n        \"provider_email\": \"computerscience.magic@gmail.com\",\n        \"locaiton_id\": 5,\n        \"reason\": \"I don't know\",\n        \"read\": false,\n        \"created_at\": \"2023-12-10T09:03:24.120683Z\"\n    },\n    {\n        \"id\": 5,\n        \"service_id\": 13,\n        \"service_title\": \"check kidney\",\n        \"appointment_id\": 15,\n        \"provider_id\": 31,\n        \"provider_email\": \"computerscience.magic@gmail.com\",\n        \"locaiton_id\": 6,\n        \"reason\": \"I don't know\",\n        \"read\": false,\n        \"created_at\": \"2023-12-10T09:03:27.989601Z\"\n    },\n    {\n        \"id\": 6,\n        \"service_id\": 7,\n        \"service_title\": \"check stomach\",\n        \"appointment_id\": 25,\n        \"provider_id\": 30,\n        \"provider_email\": \"maamoun3911@gmail.com\",\n        \"locaiton_id\": 3,\n        \"reason\": \"I don't know\",\n        \"read\": false,\n        \"created_at\": \"2023-12-10T09:08:50.980268Z\"\n    },\n    {\n        \"id\": 7,\n        \"service_id\": 8,\n        \"service_title\": \"check Endocrine\",\n        \"appointment_id\": 26,\n        \"provider_id\": 30,\n        \"provider_email\": \"maamoun3911@gmail.com\",\n        \"locaiton_id\": 3,\n        \"reason\": \"I don't know\",\n        \"read\": false,\n        \"created_at\": \"2023-12-10T09:08:55.995102Z\"\n    },\n    {\n        \"id\": 2,\n        \"service_id\": 10,\n        \"service_title\": \"check eye\",\n        \"appointment_id\": 12,\n        \"provider_id\": 30,\n        \"provider_email\": \"maamoun3911@gmail.com\",\n        \"locaiton_id\": 4,\n        \"reason\": \"I don't know\",\n        \"read\": true,\n        \"created_at\": \"2023-12-10T09:02:55.369244Z\"\n    },\n    {\n        \"id\": 3,\n        \"service_id\": 11,\n        \"service_title\": \"check teeth\",\n        \"appointment_id\": 13,\n        \"provider_id\": 31,\n        \"provider_email\": \"computerscience.magic@gmail.com\",\n        \"locaiton_id\": 5,\n        \"reason\": \"I don't know\",\n        \"read\": true,\n        \"created_at\": \"2023-12-10T09:03:19.897571Z\"\n    },\n    {\n        \"id\": 8,\n        \"service_id\": 13,\n        \"service_title\": \"check kidney\",\n        \"appointment_id\": 31,\n        \"provider_id\": 31,\n        \"provider_email\": \"computerscience.magic@gmail.com\",\n        \"locaiton_id\": 6,\n        \"reason\": \"I don't know\",\n        \"read\": true,\n        \"created_at\": \"2023-12-10T09:09:04.736509Z\"\n    },\n    {\n        \"id\": 9,\n        \"service_id\": 15,\n        \"service_title\": \"check feet\",\n        \"appointment_id\": 32,\n        \"provider_id\": 31,\n        \"provider_email\": \"computerscience.magic@gmail.com\",\n        \"locaiton_id\": 6,\n        \"reason\": \"I don't know\",\n        \"read\": true,\n        \"created_at\": \"2023-12-10T09:09:08.358630Z\"\n    }\n]"}],"_postman_id":"2f107f38-4a41-41df-9da1-57d6f648ad56"},{"name":"location rejected appointments","id":"f05e8773-e4d2-487f-a3b5-aa813fb46c79","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MjE2NDA0LCJpYXQiOjE3MDcyMTUyMDQsImp0aSI6IjQ2YTY4ZTdmZjBmODRmMWU4NTY3MWEyOTExMGU2YTliIiwidXNlcl9pZCI6MzB9.0WovBN619BSHBPRTJc5WnkW6OLo32QtYFh6WCVWIz10","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/appointments/rejected/location/5/","description":"<p>This endpoint retrieves specific service provider location rejected appointments.</p>\n<p><strong>This endpoint for service providers &amp; admins.</strong></p>\n","urlObject":{"protocol":"http","port":"8000","path":["api","v1","appointments","rejected","location","5",""],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[{"id":"e2cd28d2-d20d-45a5-a017-618d11927c74","name":"location rejected appointments","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MjE2NDA0LCJpYXQiOjE3MDcyMTUyMDQsImp0aSI6IjQ2YTY4ZTdmZjBmODRmMWU4NTY3MWEyOTExMGU2YTliIiwidXNlcl9pZCI6MzB9.0WovBN619BSHBPRTJc5WnkW6OLo32QtYFh6WCVWIz10","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/appointments/rejected/location/5/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 06 Feb 2024 10:30:27 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.11.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language"},{"key":"Allow","value":"OPTIONS, GET"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"483"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 3,\n        \"service_id\": 11,\n        \"service_title\": \"check teeth\",\n        \"appointment_id\": 13,\n        \"provider_id\": 31,\n        \"provider_email\": \"computerscience.magic@gmail.com\",\n        \"locaiton_id\": 5,\n        \"reason\": \"I don't know\",\n        \"read\": true,\n        \"created_at\": \"2023-12-10T09:03:19.897571Z\"\n    },\n    {\n        \"id\": 4,\n        \"service_id\": 12,\n        \"service_title\": \"general check_up\",\n        \"appointment_id\": 14,\n        \"provider_id\": 31,\n        \"provider_email\": \"computerscience.magic@gmail.com\",\n        \"locaiton_id\": 5,\n        \"reason\": \"I don't know\",\n        \"read\": false,\n        \"created_at\": \"2023-12-10T09:03:24.120683Z\"\n    }\n]"}],"_postman_id":"f05e8773-e4d2-487f-a3b5-aa813fb46c79"},{"name":"provider rejected appointments","id":"0dfeddfc-3d04-4d6c-b896-05dcd7851575","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MjE2MzM0LCJpYXQiOjE3MDcyMTUxMzQsImp0aSI6IjRlYjk4YWRkYmIxMTQ0Zjk4Y2M0ZGQzM2Y2YzYzOTcxIiwidXNlcl9pZCI6MjN9.zu5qu8Ktsip5YqOwM6dUhCS5h3mJOXHq1bURx00MWqM","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/appointments/rejected/provider/30","description":"<p>This endpoint retrieves rejected appointments for specific service provider.</p>\n<p>Maybe the admin needs to see speicific service provider rejected appointments, add the service provider ID in the end of the url (see exampels).</p>\n<p><strong>This endpoint is for admins &amp; service providers</strong></p>\n","urlObject":{"protocol":"http","port":"8000","path":["api","v1","appointments","rejected","provider","30"],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[{"id":"6c411612-edb1-4fc7-8fff-a4e694930977","name":"provider rejected appointments","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MjE2MTUwLCJpYXQiOjE3MDcyMTQ5NTAsImp0aSI6Ijg0MDkwMGFkNGFhZTQxYzhiYTgxYmQ2N2NiZDJhNjIzIiwidXNlcl9pZCI6MzB9.jhdkRbuJPq5jSlmdcLZfGHBcEHNlvXr21QvrJQM-hrM","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/appointments/rejected/provider/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 06 Feb 2024 10:22:50 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.11.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language"},{"key":"Allow","value":"OPTIONS, GET"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"714"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 6,\n        \"service_id\": 7,\n        \"service_title\": \"check stomach\",\n        \"appointment_id\": 25,\n        \"provider_id\": 30,\n        \"provider_email\": \"maamoun3911@gmail.com\",\n        \"locaiton_id\": 3,\n        \"reason\": \"I don't know\",\n        \"read\": false,\n        \"created_at\": \"2023-12-10T09:08:50.980268Z\"\n    },\n    {\n        \"id\": 2,\n        \"service_id\": 10,\n        \"service_title\": \"check eye\",\n        \"appointment_id\": 12,\n        \"provider_id\": 30,\n        \"provider_email\": \"maamoun3911@gmail.com\",\n        \"locaiton_id\": 4,\n        \"reason\": \"I don't know\",\n        \"read\": true,\n        \"created_at\": \"2023-12-10T09:02:55.369244Z\"\n    },\n    {\n        \"id\": 10,\n        \"service_id\": 9,\n        \"service_title\": \"check ear\",\n        \"appointment_id\": 27,\n        \"provider_id\": 30,\n        \"provider_email\": \"maamoun3911@gmail.com\",\n        \"locaiton_id\": 4,\n        \"reason\": \"Your appointment is rejected for no reason\",\n        \"read\": false,\n        \"created_at\": \"2024-02-06T10:15:41.788532Z\"\n    }\n]"},{"id":"f6490eba-236e-43f9-89c7-4bddaccd4c5b","name":"provider rejected appointments (for admins)","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MjE2MzM0LCJpYXQiOjE3MDcyMTUxMzQsImp0aSI6IjRlYjk4YWRkYmIxMTQ0Zjk4Y2M0ZGQzM2Y2YzYzOTcxIiwidXNlcl9pZCI6MjN9.zu5qu8Ktsip5YqOwM6dUhCS5h3mJOXHq1bURx00MWqM","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/appointments/rejected/provider/30"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 06 Feb 2024 10:25:51 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.11.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language"},{"key":"Allow","value":"OPTIONS, GET"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"714"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 6,\n        \"service_id\": 7,\n        \"service_title\": \"check stomach\",\n        \"appointment_id\": 25,\n        \"provider_id\": 30,\n        \"provider_email\": \"maamoun3911@gmail.com\",\n        \"locaiton_id\": 3,\n        \"reason\": \"I don't know\",\n        \"read\": false,\n        \"created_at\": \"2023-12-10T09:08:50.980268Z\"\n    },\n    {\n        \"id\": 2,\n        \"service_id\": 10,\n        \"service_title\": \"check eye\",\n        \"appointment_id\": 12,\n        \"provider_id\": 30,\n        \"provider_email\": \"maamoun3911@gmail.com\",\n        \"locaiton_id\": 4,\n        \"reason\": \"I don't know\",\n        \"read\": true,\n        \"created_at\": \"2023-12-10T09:02:55.369244Z\"\n    },\n    {\n        \"id\": 10,\n        \"service_id\": 9,\n        \"service_title\": \"check ear\",\n        \"appointment_id\": 27,\n        \"provider_id\": 30,\n        \"provider_email\": \"maamoun3911@gmail.com\",\n        \"locaiton_id\": 4,\n        \"reason\": \"Your appointment is rejected for no reason\",\n        \"read\": false,\n        \"created_at\": \"2024-02-06T10:15:41.788532Z\"\n    }\n]"}],"_postman_id":"0dfeddfc-3d04-4d6c-b896-05dcd7851575"},{"name":"user rejected appointments","id":"60c4b2ef-c498-4bd9-8c04-ba6142605d24","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MjE2MDYwLCJpYXQiOjE3MDcyMTQ4NjAsImp0aSI6Ijg2ZjE2Zjc4YWUyMTRhZWJhNDY4ZWY5YThhNmVjYWIxIiwidXNlcl9pZCI6MjN9.bisxOUHZptYI0fUcu5gGi-Jjt8IMYsV-yPNbFoS3u0U","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/appointments/rejected/user/29","description":"<p>This endpoint retrieves the user rejected appointments.</p>\n<p><em>Maybe the admin needs to know the user rejected appointments you need to add the user ID in the end of the url (see examples).</em></p>\n<p><strong>This endpoint for admins &amp; users.</strong></p>\n","urlObject":{"protocol":"http","port":"8000","path":["api","v1","appointments","rejected","user","29"],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[{"id":"996701c5-d635-4955-bed3-3f05fe6e9094","name":"user rejected appointments","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MjE1ODg1LCJpYXQiOjE3MDcyMTQ2ODUsImp0aSI6ImRiZGM1YzhhMDFmNDRkZjg5OWVmYTAyMTgzYTY3NmU1IiwidXNlcl9pZCI6Mjl9.0_NroS-bBT_eAEi5CMxonBKXfArMxbSRZZ_8b2DN-js","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/appointments/rejected/user/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 06 Feb 2024 10:18:23 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.11.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language"},{"key":"Allow","value":"OPTIONS, GET"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"948"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 4,\n        \"service_id\": 12,\n        \"service_title\": \"general check_up\",\n        \"appointment_id\": 14,\n        \"provider_id\": 31,\n        \"provider_email\": \"computerscience.magic@gmail.com\",\n        \"locaiton_id\": 5,\n        \"reason\": \"I don't know\",\n        \"read\": false,\n        \"created_at\": \"2023-12-10T09:03:24.120683Z\"\n    },\n    {\n        \"id\": 2,\n        \"service_id\": 10,\n        \"service_title\": \"check eye\",\n        \"appointment_id\": 12,\n        \"provider_id\": 30,\n        \"provider_email\": \"maamoun3911@gmail.com\",\n        \"locaiton_id\": 4,\n        \"reason\": \"I don't know\",\n        \"read\": true,\n        \"created_at\": \"2023-12-10T09:02:55.369244Z\"\n    },\n    {\n        \"id\": 3,\n        \"service_id\": 11,\n        \"service_title\": \"check teeth\",\n        \"appointment_id\": 13,\n        \"provider_id\": 31,\n        \"provider_email\": \"computerscience.magic@gmail.com\",\n        \"locaiton_id\": 5,\n        \"reason\": \"I don't know\",\n        \"read\": true,\n        \"created_at\": \"2023-12-10T09:03:19.897571Z\"\n    },\n    {\n        \"id\": 5,\n        \"service_id\": 13,\n        \"service_title\": \"check kidney\",\n        \"appointment_id\": 15,\n        \"provider_id\": 31,\n        \"provider_email\": \"computerscience.magic@gmail.com\",\n        \"locaiton_id\": 6,\n        \"reason\": \"I don't know\",\n        \"read\": true,\n        \"created_at\": \"2023-12-10T09:03:27.989601Z\"\n    }\n]"},{"id":"ef8933fd-4382-4816-8046-a5a3a57fdffd","name":"user rejected appointments (for admins)","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MjE2MDYwLCJpYXQiOjE3MDcyMTQ4NjAsImp0aSI6Ijg2ZjE2Zjc4YWUyMTRhZWJhNDY4ZWY5YThhNmVjYWIxIiwidXNlcl9pZCI6MjN9.bisxOUHZptYI0fUcu5gGi-Jjt8IMYsV-yPNbFoS3u0U","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/appointments/rejected/user/29"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 06 Feb 2024 10:21:23 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.11.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language"},{"key":"Allow","value":"OPTIONS, GET"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"948"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 4,\n        \"service_id\": 12,\n        \"service_title\": \"general check_up\",\n        \"appointment_id\": 14,\n        \"provider_id\": 31,\n        \"provider_email\": \"computerscience.magic@gmail.com\",\n        \"locaiton_id\": 5,\n        \"reason\": \"I don't know\",\n        \"read\": false,\n        \"created_at\": \"2023-12-10T09:03:24.120683Z\"\n    },\n    {\n        \"id\": 2,\n        \"service_id\": 10,\n        \"service_title\": \"check eye\",\n        \"appointment_id\": 12,\n        \"provider_id\": 30,\n        \"provider_email\": \"maamoun3911@gmail.com\",\n        \"locaiton_id\": 4,\n        \"reason\": \"I don't know\",\n        \"read\": true,\n        \"created_at\": \"2023-12-10T09:02:55.369244Z\"\n    },\n    {\n        \"id\": 3,\n        \"service_id\": 11,\n        \"service_title\": \"check teeth\",\n        \"appointment_id\": 13,\n        \"provider_id\": 31,\n        \"provider_email\": \"computerscience.magic@gmail.com\",\n        \"locaiton_id\": 5,\n        \"reason\": \"I don't know\",\n        \"read\": true,\n        \"created_at\": \"2023-12-10T09:03:19.897571Z\"\n    },\n    {\n        \"id\": 5,\n        \"service_id\": 13,\n        \"service_title\": \"check kidney\",\n        \"appointment_id\": 15,\n        \"provider_id\": 31,\n        \"provider_email\": \"computerscience.magic@gmail.com\",\n        \"locaiton_id\": 6,\n        \"reason\": \"I don't know\",\n        \"read\": true,\n        \"created_at\": \"2023-12-10T09:03:27.989601Z\"\n    }\n]"}],"_postman_id":"60c4b2ef-c498-4bd9-8c04-ba6142605d24"}],"id":"4db33ce5-ce20-4975-a1bf-2fd8d6449165","_postman_id":"4db33ce5-ce20-4975-a1bf-2fd8d6449165","description":""},{"name":"provider appointments","item":[{"name":"provider appointments dashboard","id":"9215a873-f6a2-4170-9207-80c3f24e060d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MjA4ODAzLCJpYXQiOjE3MDcyMDc2MDMsImp0aSI6ImE5YmZjOTE4ZjQ4MDRiZTJhNjkxYjU2NDUxYzRkOGFjIiwidXNlcl9pZCI6MzB9.-IRJJ0jSWa45Tuni6cnG5GZpWZHoQfgVk7nYFIVm0dg","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/appointments/provider/dashboard/?provider_id=31","description":"<p>This endpoint makes an HTTP GET request to retrieve the appointmets with some statistics for a specific provider.</p>\n<p><em>Maybe the admin wants to see the service provider appointments and stats, so add provider_id to the query params (see example).</em></p>\n<p><strong>This endpoint is for service providers &amp; admins</strong></p>\n<p>The response contains statistics for all appointments, including the count of all, rejected, accepted, and pended appointments, as well as a list of appointments with their details such as date, time, patient information, service details, provider information, location, diagnosis, result, status, notes, and timestamps of creation and update.</p>\n<p>The response is in JSON format with a status code of 200.</p>\n","urlObject":{"protocol":"http","port":"8000","path":["api","v1","appointments","provider","dashboard",""],"host":["127","0","0","1"],"query":[{"key":"provider_id","value":"31"}],"variable":[]}},"response":[{"id":"ffb1a11f-7faf-402b-82cc-fa0cf8e6aeb9","name":"provider appointments dashboard","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MjA4ODAzLCJpYXQiOjE3MDcyMDc2MDMsImp0aSI6ImE5YmZjOTE4ZjQ4MDRiZTJhNjkxYjU2NDUxYzRkOGFjIiwidXNlcl9pZCI6MzB9.-IRJJ0jSWa45Tuni6cnG5GZpWZHoQfgVk7nYFIVm0dg","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/appointments/provider/dashboard/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 06 Feb 2024 08:21:31 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.11.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language"},{"key":"Allow","value":"OPTIONS, GET"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"3376"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"stats\": {\n        \"all\": 8,\n        \"rejected\": 3,\n        \"accepted\": 5,\n        \"pended\": 0\n    },\n    \"appointments\": [\n        {\n            \"date\": \"2023-12-15\",\n            \"details\": {\n                \"from_time\": \"09:00:00\",\n                \"to_time\": \"10:00:00\",\n                \"patient_id\": 23,\n                \"patient_email\": \"maamoun.haj.najeeb@gmail.com\",\n                \"service_id\": 8,\n                \"service_title\": \"check Endocrine\",\n                \"provider_id\": 30,\n                \"provider_business_name\": \"Remostart\",\n                \"location_id\": 3,\n                \"diagonsis\": null,\n                \"result\": null,\n                \"status\": \"rejected\",\n                \"note\": null,\n                \"created_at\": \"2023-12-09T18:00:32.948291Z\",\n                \"updated_at\": \"2023-12-10T09:06:48.549311Z\"\n            }\n        },\n        {\n            \"date\": \"2023-12-15\",\n            \"details\": {\n                \"from_time\": \"08:00:00\",\n                \"to_time\": \"09:00:00\",\n                \"patient_id\": 29,\n                \"patient_email\": \"maamoun.h.najeeb@gmail.com\",\n                \"service_id\": 8,\n                \"service_title\": \"check Endocrine\",\n                \"provider_id\": 30,\n                \"provider_business_name\": \"Remostart\",\n                \"location_id\": 3,\n                \"diagonsis\": null,\n                \"result\": \"General_Check\",\n                \"status\": \"accepted\",\n                \"note\": null,\n                \"created_at\": \"2023-12-09T17:56:54.340246Z\",\n                \"updated_at\": \"2024-01-25T09:15:22.586233Z\"\n            }\n        },\n        {\n            \"date\": \"2023-12-15\",\n            \"details\": {\n                \"from_time\": \"09:00:00\",\n                \"to_time\": \"10:00:00\",\n                \"patient_id\": 23,\n                \"patient_email\": \"maamoun.haj.najeeb@gmail.com\",\n                \"service_id\": 7,\n                \"service_title\": \"check stomach\",\n                \"provider_id\": 30,\n                \"provider_business_name\": \"Remostart\",\n                \"location_id\": 3,\n                \"diagonsis\": null,\n                \"result\": null,\n                \"status\": \"rejected\",\n                \"note\": null,\n                \"created_at\": \"2023-12-09T18:00:29.850293Z\",\n                \"updated_at\": \"2023-12-10T09:06:43.960841Z\"\n            }\n        },\n        {\n            \"date\": \"2023-12-15\",\n            \"details\": {\n                \"from_time\": \"08:00:00\",\n                \"to_time\": \"09:00:00\",\n                \"patient_id\": 29,\n                \"patient_email\": \"maamoun.h.najeeb@gmail.com\",\n                \"service_id\": 7,\n                \"service_title\": \"check stomach\",\n                \"provider_id\": 30,\n                \"provider_business_name\": \"Remostart\",\n                \"location_id\": 3,\n                \"diagonsis\": null,\n                \"result\": \"General_Check\",\n                \"status\": \"accepted\",\n                \"note\": null,\n                \"created_at\": \"2023-12-09T15:31:30.756170Z\",\n                \"updated_at\": \"2024-01-25T09:15:22.570393Z\"\n            }\n        },\n        {\n            \"date\": \"2023-12-15\",\n            \"details\": {\n                \"from_time\": \"09:00:00\",\n                \"to_time\": \"10:00:00\",\n                \"patient_id\": 23,\n                \"patient_email\": \"maamoun.haj.najeeb@gmail.com\",\n                \"service_id\": 10,\n                \"service_title\": \"check eye\",\n                \"provider_id\": 30,\n                \"provider_business_name\": \"Remostart\",\n                \"location_id\": 4,\n                \"diagonsis\": null,\n                \"result\": \"Treatment_Finished\",\n                \"status\": \"accepted\",\n                \"note\": null,\n                \"created_at\": \"2023-12-09T18:00:42.431956Z\",\n                \"updated_at\": \"2024-01-25T09:15:22.613736Z\"\n            }\n        },\n        {\n            \"date\": \"2023-12-15\",\n            \"details\": {\n                \"from_time\": \"08:00:00\",\n                \"to_time\": \"09:00:00\",\n                \"patient_id\": 29,\n                \"patient_email\": \"maamoun.h.najeeb@gmail.com\",\n                \"service_id\": 10,\n                \"service_title\": \"check eye\",\n                \"provider_id\": 30,\n                \"provider_business_name\": \"Remostart\",\n                \"location_id\": 4,\n                \"diagonsis\": null,\n                \"result\": null,\n                \"status\": \"rejected\",\n                \"note\": null,\n                \"created_at\": \"2023-12-09T17:57:09.278776Z\",\n                \"updated_at\": \"2023-12-10T08:26:51.252071Z\"\n            }\n        },\n        {\n            \"date\": \"2023-12-15\",\n            \"details\": {\n                \"from_time\": \"08:00:00\",\n                \"to_time\": \"09:00:00\",\n                \"patient_id\": 29,\n                \"patient_email\": \"maamoun.h.najeeb@gmail.com\",\n                \"service_id\": 9,\n                \"service_title\": \"check ear\",\n                \"provider_id\": 30,\n                \"provider_business_name\": \"Remostart\",\n                \"location_id\": 4,\n                \"diagonsis\": null,\n                \"result\": \"General_Check\",\n                \"status\": \"accepted\",\n                \"note\": null,\n                \"created_at\": \"2023-12-09T17:57:04.261432Z\",\n                \"updated_at\": \"2024-01-25T09:15:22.588010Z\"\n            }\n        },\n        {\n            \"date\": \"2023-12-15\",\n            \"details\": {\n                \"from_time\": \"09:00:00\",\n                \"to_time\": \"10:00:00\",\n                \"patient_id\": 23,\n                \"patient_email\": \"maamoun.haj.najeeb@gmail.com\",\n                \"service_id\": 9,\n                \"service_title\": \"check ear\",\n                \"provider_id\": 30,\n                \"provider_business_name\": \"Remostart\",\n                \"location_id\": 4,\n                \"diagonsis\": null,\n                \"result\": \"Treatment_Finished\",\n                \"status\": \"accepted\",\n                \"note\": null,\n                \"created_at\": \"2023-12-09T18:00:38.743626Z\",\n                \"updated_at\": \"2024-01-25T09:15:22.606015Z\"\n            }\n        }\n    ]\n}"},{"id":"3b51abc2-d461-4beb-b37f-9209ac4e3d03","name":"provider appointments dashboard (for admins)","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MjA4ODAzLCJpYXQiOjE3MDcyMDc2MDMsImp0aSI6ImE5YmZjOTE4ZjQ4MDRiZTJhNjkxYjU2NDUxYzRkOGFjIiwidXNlcl9pZCI6MzB9.-IRJJ0jSWa45Tuni6cnG5GZpWZHoQfgVk7nYFIVm0dg","type":"text"}],"url":{"raw":"http://127.0.0.1:8000/api/v1/appointments/provider/dashboard/?provider_id=31","protocol":"http","host":["127","0","0","1"],"port":"8000","path":["api","v1","appointments","provider","dashboard",""],"query":[{"key":"provider_id","value":"31"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 06 Feb 2024 08:22:25 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.11.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language"},{"key":"Allow","value":"OPTIONS, GET"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"4648"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"stats\": {\n        \"all\": 11,\n        \"rejected\": 5,\n        \"accepted\": 3,\n        \"pended\": 3\n    },\n    \"appointments\": [\n        {\n            \"date\": \"2023-12-15\",\n            \"details\": {\n                \"from_time\": \"09:00:00\",\n                \"to_time\": \"10:00:00\",\n                \"patient_id\": 23,\n                \"patient_email\": \"maamoun.haj.najeeb@gmail.com\",\n                \"service_id\": 12,\n                \"service_title\": \"general check_up\",\n                \"provider_id\": 31,\n                \"provider_business_name\": \"our_new_name\",\n                \"location_id\": 5,\n                \"diagonsis\": null,\n                \"result\": \"Treatment_Finished\",\n                \"status\": \"accepted\",\n                \"note\": null,\n                \"created_at\": \"2023-12-09T18:00:52.218347Z\",\n                \"updated_at\": \"2024-01-25T09:15:22.609253Z\"\n            }\n        },\n        {\n            \"date\": \"2023-12-15\",\n            \"details\": {\n                \"from_time\": \"08:00:00\",\n                \"to_time\": \"09:00:00\",\n                \"patient_id\": 29,\n                \"patient_email\": \"maamoun.h.najeeb@gmail.com\",\n                \"service_id\": 12,\n                \"service_title\": \"general check_up\",\n                \"provider_id\": 31,\n                \"provider_business_name\": \"our_new_name\",\n                \"location_id\": 5,\n                \"diagonsis\": null,\n                \"result\": \"General_Check\",\n                \"status\": \"rejected\",\n                \"note\": null,\n                \"created_at\": \"2023-12-09T17:57:15.961501Z\",\n                \"updated_at\": \"2024-01-25T09:15:22.592849Z\"\n            }\n        },\n        {\n            \"date\": \"2024-02-15\",\n            \"details\": {\n                \"from_time\": \"12:00:00\",\n                \"to_time\": \"13:30:00\",\n                \"patient_id\": 29,\n                \"patient_email\": \"maamoun.h.najeeb@gmail.com\",\n                \"service_id\": 21,\n                \"service_title\": \"Dry milk\",\n                \"provider_id\": 31,\n                \"provider_business_name\": \"our_new_name\",\n                \"location_id\": 5,\n                \"diagonsis\": \"nothing\",\n                \"result\": null,\n                \"status\": \"pending\",\n                \"note\": \"no note\",\n                \"created_at\": \"2024-02-05T18:13:25.331464Z\",\n                \"updated_at\": \"2024-02-05T18:13:25.331464Z\"\n            }\n        },\n        {\n            \"date\": \"2023-12-15\",\n            \"details\": {\n                \"from_time\": \"09:00:00\",\n                \"to_time\": \"10:00:00\",\n                \"patient_id\": 23,\n                \"patient_email\": \"maamoun.haj.najeeb@gmail.com\",\n                \"service_id\": 11,\n                \"service_title\": \"check teeth\",\n                \"provider_id\": 31,\n                \"provider_business_name\": \"our_new_name\",\n                \"location_id\": 5,\n                \"diagonsis\": null,\n                \"result\": \"Treatment_Finished\",\n                \"status\": \"accepted\",\n                \"note\": null,\n                \"created_at\": \"2023-12-09T18:00:45.778244Z\",\n                \"updated_at\": \"2024-01-25T09:15:22.607513Z\"\n            }\n        },\n        {\n            \"date\": \"2023-12-15\",\n            \"details\": {\n                \"from_time\": \"08:00:00\",\n                \"to_time\": \"09:00:00\",\n                \"patient_id\": 29,\n                \"patient_email\": \"maamoun.h.najeeb@gmail.com\",\n                \"service_id\": 11,\n                \"service_title\": \"check teeth\",\n                \"provider_id\": 31,\n                \"provider_business_name\": \"our_new_name\",\n                \"location_id\": 5,\n                \"diagonsis\": null,\n                \"result\": null,\n                \"status\": \"rejected\",\n                \"note\": null,\n                \"created_at\": \"2023-12-09T17:57:13.047250Z\",\n                \"updated_at\": \"2023-12-10T08:26:47.082359Z\"\n            }\n        },\n        {\n            \"date\": \"2024-01-25\",\n            \"details\": {\n                \"from_time\": \"14:00:00\",\n                \"to_time\": \"15:00:00\",\n                \"patient_id\": 29,\n                \"patient_email\": \"maamoun.h.najeeb@gmail.com\",\n                \"service_id\": 15,\n                \"service_title\": \"check feet\",\n                \"provider_id\": 31,\n                \"provider_business_name\": \"our_new_name\",\n                \"location_id\": 6,\n                \"diagonsis\": null,\n                \"result\": null,\n                \"status\": \"pending\",\n                \"note\": \"Any note\",\n                \"created_at\": \"2024-01-27T14:41:15.749154Z\",\n                \"updated_at\": \"2024-01-27T14:41:15.749154Z\"\n            }\n        },\n        {\n            \"date\": \"2024-01-27\",\n            \"details\": {\n                \"from_time\": \"14:00:00\",\n                \"to_time\": \"15:00:00\",\n                \"patient_id\": 29,\n                \"patient_email\": \"maamoun.h.najeeb@gmail.com\",\n                \"service_id\": 15,\n                \"service_title\": \"check feet\",\n                \"provider_id\": 31,\n                \"provider_business_name\": \"our_new_name\",\n                \"location_id\": 6,\n                \"diagonsis\": null,\n                \"result\": null,\n                \"status\": \"pending\",\n                \"note\": \"Any note\",\n                \"created_at\": \"2024-01-27T14:45:55.951227Z\",\n                \"updated_at\": \"2024-01-27T14:45:55.951227Z\"\n            }\n        },\n        {\n            \"date\": \"2023-12-15\",\n            \"details\": {\n                \"from_time\": \"09:00:00\",\n                \"to_time\": \"10:00:00\",\n                \"patient_id\": 23,\n                \"patient_email\": \"maamoun.haj.najeeb@gmail.com\",\n                \"service_id\": 15,\n                \"service_title\": \"check feet\",\n                \"provider_id\": 31,\n                \"provider_business_name\": \"our_new_name\",\n                \"location_id\": 6,\n                \"diagonsis\": null,\n                \"result\": null,\n                \"status\": \"rejected\",\n                \"note\": null,\n                \"created_at\": \"2023-12-09T18:01:01.147396Z\",\n                \"updated_at\": \"2023-12-10T09:07:00.655324Z\"\n            }\n        },\n        {\n            \"date\": \"2023-12-15\",\n            \"details\": {\n                \"from_time\": \"08:00:00\",\n                \"to_time\": \"09:00:00\",\n                \"patient_id\": 29,\n                \"patient_email\": \"maamoun.h.najeeb@gmail.com\",\n                \"service_id\": 15,\n                \"service_title\": \"check feet\",\n                \"provider_id\": 31,\n                \"provider_business_name\": \"our_new_name\",\n                \"location_id\": 6,\n                \"diagonsis\": null,\n                \"result\": \"General_Check\",\n                \"status\": \"accepted\",\n                \"note\": null,\n                \"created_at\": \"2023-12-09T17:57:22.638083Z\",\n                \"updated_at\": \"2024-01-25T09:15:22.589697Z\"\n            }\n        },\n        {\n            \"date\": \"2023-12-15\",\n            \"details\": {\n                \"from_time\": \"09:00:00\",\n                \"to_time\": \"10:00:00\",\n                \"patient_id\": 23,\n                \"patient_email\": \"maamoun.haj.najeeb@gmail.com\",\n                \"service_id\": 13,\n                \"service_title\": \"check kidney\",\n                \"provider_id\": 31,\n                \"provider_business_name\": \"our_new_name\",\n                \"location_id\": 6,\n                \"diagonsis\": null,\n                \"result\": null,\n                \"status\": \"rejected\",\n                \"note\": null,\n                \"created_at\": \"2023-12-09T18:00:55.988361Z\",\n                \"updated_at\": \"2023-12-10T09:06:56.740466Z\"\n            }\n        },\n        {\n            \"date\": \"2023-12-15\",\n            \"details\": {\n                \"from_time\": \"08:00:00\",\n                \"to_time\": \"09:00:00\",\n                \"patient_id\": 29,\n                \"patient_email\": \"maamoun.h.najeeb@gmail.com\",\n                \"service_id\": 13,\n                \"service_title\": \"check kidney\",\n                \"provider_id\": 31,\n                \"provider_business_name\": \"our_new_name\",\n                \"location_id\": 6,\n                \"diagonsis\": null,\n                \"result\": \"General_Check\",\n                \"status\": \"rejected\",\n                \"note\": null,\n                \"created_at\": \"2023-12-09T17:57:18.999548Z\",\n                \"updated_at\": \"2024-01-25T09:15:22.591241Z\"\n            }\n        }\n    ]\n}"}],"_postman_id":"9215a873-f6a2-4170-9207-80c3f24e060d"},{"name":"service provider appointments","id":"f3687fd8-21d0-44b8-a9f7-8b9c57a1cf63","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3NDkxNzk0LCJpYXQiOjE3MDc0OTA1OTQsImp0aSI6IjA3OTRmYTE2MjVjMDQyYTg4NmU2ZDBhMWQ2OGQzODE4IiwidXNlcl9pZCI6MzB9.zpA6iriWJaQj83xObZBxXoKdfR_27m2SIEa0E6fx6xA","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/appointments/provider/","description":"<p>This endpoint makes an HTTP GET request to retrieve a list of appointments for the service provider.</p>\n<p><em>Maybe the admin want to see the appointments for specific service provider, just add the service provider id in the end of the url.</em></p>\n<p><strong>This endpoint is for admins &amp; service provider.</strong></p>\n<p>The response will include an array of appointment objects, each containing the appointment date, time details, patient information, service details, provider information, location, and creation timestamp.</p>\n","urlObject":{"protocol":"http","port":"8000","path":["api","v1","appointments","provider",""],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[{"id":"b6ee8409-b5cb-4182-bbd6-857ca38ffbdc","name":"service provider appointments (for admins)","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MjA5ODg1LCJpYXQiOjE3MDcyMDg2ODUsImp0aSI6IjFlYjE2YmNhYzY0YjQ2NzVhNDcwZjYyOTQ3MDg3NzU0IiwidXNlcl9pZCI6MjN9.MCnQbwvNw4EgoG-QJZjtTHz1BavmNf6zYoGZquQl-Fs","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/appointments/provider/31"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 06 Feb 2024 08:38:21 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.11.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language"},{"key":"Allow","value":"GET, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"4575"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"date\": \"2023-12-15\",\n        \"details\": {\n            \"from_time\": \"09:00:00\",\n            \"to_time\": \"10:00:00\",\n            \"patient_id\": 23,\n            \"patient_email\": \"maamoun.haj.najeeb@gmail.com\",\n            \"service_id\": 12,\n            \"service_title\": \"general check_up\",\n            \"provider_id\": 31,\n            \"provider_business_name\": \"our_new_name\",\n            \"location_id\": 5,\n            \"diagonsis\": null,\n            \"result\": \"Treatment_Finished\",\n            \"status\": \"accepted\",\n            \"note\": null,\n            \"created_at\": \"2023-12-09T18:00:52.218347Z\",\n            \"updated_at\": \"2024-01-25T09:15:22.609253Z\"\n        }\n    },\n    {\n        \"date\": \"2023-12-15\",\n        \"details\": {\n            \"from_time\": \"08:00:00\",\n            \"to_time\": \"09:00:00\",\n            \"patient_id\": 29,\n            \"patient_email\": \"maamoun.h.najeeb@gmail.com\",\n            \"service_id\": 12,\n            \"service_title\": \"general check_up\",\n            \"provider_id\": 31,\n            \"provider_business_name\": \"our_new_name\",\n            \"location_id\": 5,\n            \"diagonsis\": null,\n            \"result\": \"General_Check\",\n            \"status\": \"rejected\",\n            \"note\": null,\n            \"created_at\": \"2023-12-09T17:57:15.961501Z\",\n            \"updated_at\": \"2024-01-25T09:15:22.592849Z\"\n        }\n    },\n    {\n        \"date\": \"2024-02-15\",\n        \"details\": {\n            \"from_time\": \"12:00:00\",\n            \"to_time\": \"13:30:00\",\n            \"patient_id\": 29,\n            \"patient_email\": \"maamoun.h.najeeb@gmail.com\",\n            \"service_id\": 21,\n            \"service_title\": \"Dry milk\",\n            \"provider_id\": 31,\n            \"provider_business_name\": \"our_new_name\",\n            \"location_id\": 5,\n            \"diagonsis\": \"nothing\",\n            \"result\": null,\n            \"status\": \"pending\",\n            \"note\": \"no note\",\n            \"created_at\": \"2024-02-05T18:13:25.331464Z\",\n            \"updated_at\": \"2024-02-05T18:13:25.331464Z\"\n        }\n    },\n    {\n        \"date\": \"2023-12-15\",\n        \"details\": {\n            \"from_time\": \"09:00:00\",\n            \"to_time\": \"10:00:00\",\n            \"patient_id\": 23,\n            \"patient_email\": \"maamoun.haj.najeeb@gmail.com\",\n            \"service_id\": 11,\n            \"service_title\": \"check teeth\",\n            \"provider_id\": 31,\n            \"provider_business_name\": \"our_new_name\",\n            \"location_id\": 5,\n            \"diagonsis\": null,\n            \"result\": \"Treatment_Finished\",\n            \"status\": \"accepted\",\n            \"note\": null,\n            \"created_at\": \"2023-12-09T18:00:45.778244Z\",\n            \"updated_at\": \"2024-01-25T09:15:22.607513Z\"\n        }\n    },\n    {\n        \"date\": \"2023-12-15\",\n        \"details\": {\n            \"from_time\": \"08:00:00\",\n            \"to_time\": \"09:00:00\",\n            \"patient_id\": 29,\n            \"patient_email\": \"maamoun.h.najeeb@gmail.com\",\n            \"service_id\": 11,\n            \"service_title\": \"check teeth\",\n            \"provider_id\": 31,\n            \"provider_business_name\": \"our_new_name\",\n            \"location_id\": 5,\n            \"diagonsis\": null,\n            \"result\": null,\n            \"status\": \"rejected\",\n            \"note\": null,\n            \"created_at\": \"2023-12-09T17:57:13.047250Z\",\n            \"updated_at\": \"2023-12-10T08:26:47.082359Z\"\n        }\n    },\n    {\n        \"date\": \"2024-01-25\",\n        \"details\": {\n            \"from_time\": \"14:00:00\",\n            \"to_time\": \"15:00:00\",\n            \"patient_id\": 29,\n            \"patient_email\": \"maamoun.h.najeeb@gmail.com\",\n            \"service_id\": 15,\n            \"service_title\": \"check feet\",\n            \"provider_id\": 31,\n            \"provider_business_name\": \"our_new_name\",\n            \"location_id\": 6,\n            \"diagonsis\": null,\n            \"result\": null,\n            \"status\": \"pending\",\n            \"note\": \"Any note\",\n            \"created_at\": \"2024-01-27T14:41:15.749154Z\",\n            \"updated_at\": \"2024-01-27T14:41:15.749154Z\"\n        }\n    },\n    {\n        \"date\": \"2024-01-27\",\n        \"details\": {\n            \"from_time\": \"14:00:00\",\n            \"to_time\": \"15:00:00\",\n            \"patient_id\": 29,\n            \"patient_email\": \"maamoun.h.najeeb@gmail.com\",\n            \"service_id\": 15,\n            \"service_title\": \"check feet\",\n            \"provider_id\": 31,\n            \"provider_business_name\": \"our_new_name\",\n            \"location_id\": 6,\n            \"diagonsis\": null,\n            \"result\": null,\n            \"status\": \"pending\",\n            \"note\": \"Any note\",\n            \"created_at\": \"2024-01-27T14:45:55.951227Z\",\n            \"updated_at\": \"2024-01-27T14:45:55.951227Z\"\n        }\n    },\n    {\n        \"date\": \"2023-12-15\",\n        \"details\": {\n            \"from_time\": \"09:00:00\",\n            \"to_time\": \"10:00:00\",\n            \"patient_id\": 23,\n            \"patient_email\": \"maamoun.haj.najeeb@gmail.com\",\n            \"service_id\": 15,\n            \"service_title\": \"check feet\",\n            \"provider_id\": 31,\n            \"provider_business_name\": \"our_new_name\",\n            \"location_id\": 6,\n            \"diagonsis\": null,\n            \"result\": null,\n            \"status\": \"rejected\",\n            \"note\": null,\n            \"created_at\": \"2023-12-09T18:01:01.147396Z\",\n            \"updated_at\": \"2023-12-10T09:07:00.655324Z\"\n        }\n    },\n    {\n        \"date\": \"2023-12-15\",\n        \"details\": {\n            \"from_time\": \"08:00:00\",\n            \"to_time\": \"09:00:00\",\n            \"patient_id\": 29,\n            \"patient_email\": \"maamoun.h.najeeb@gmail.com\",\n            \"service_id\": 15,\n            \"service_title\": \"check feet\",\n            \"provider_id\": 31,\n            \"provider_business_name\": \"our_new_name\",\n            \"location_id\": 6,\n            \"diagonsis\": null,\n            \"result\": \"General_Check\",\n            \"status\": \"accepted\",\n            \"note\": null,\n            \"created_at\": \"2023-12-09T17:57:22.638083Z\",\n            \"updated_at\": \"2024-01-25T09:15:22.589697Z\"\n        }\n    },\n    {\n        \"date\": \"2023-12-15\",\n        \"details\": {\n            \"from_time\": \"09:00:00\",\n            \"to_time\": \"10:00:00\",\n            \"patient_id\": 23,\n            \"patient_email\": \"maamoun.haj.najeeb@gmail.com\",\n            \"service_id\": 13,\n            \"service_title\": \"check kidney\",\n            \"provider_id\": 31,\n            \"provider_business_name\": \"our_new_name\",\n            \"location_id\": 6,\n            \"diagonsis\": null,\n            \"result\": null,\n            \"status\": \"rejected\",\n            \"note\": null,\n            \"created_at\": \"2023-12-09T18:00:55.988361Z\",\n            \"updated_at\": \"2023-12-10T09:06:56.740466Z\"\n        }\n    },\n    {\n        \"date\": \"2023-12-15\",\n        \"details\": {\n            \"from_time\": \"08:00:00\",\n            \"to_time\": \"09:00:00\",\n            \"patient_id\": 29,\n            \"patient_email\": \"maamoun.h.najeeb@gmail.com\",\n            \"service_id\": 13,\n            \"service_title\": \"check kidney\",\n            \"provider_id\": 31,\n            \"provider_business_name\": \"our_new_name\",\n            \"location_id\": 6,\n            \"diagonsis\": null,\n            \"result\": \"General_Check\",\n            \"status\": \"rejected\",\n            \"note\": null,\n            \"created_at\": \"2023-12-09T17:57:18.999548Z\",\n            \"updated_at\": \"2024-01-25T09:15:22.591241Z\"\n        }\n    }\n]"},{"id":"07a9cfaf-91da-4488-842b-1907f6d77685","name":"service provider appointments","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MjA5OTc1LCJpYXQiOjE3MDcyMDg3NzUsImp0aSI6IjZhOTkzYjJlMWMzZDRjMWU4NDI5NjBmZWU3OTFjZWFjIiwidXNlcl9pZCI6MzB9.rkpTmharAEZMcFg7rG02nHC1VcQKgvx9L35DIC1GQ4k","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/appointments/provider/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 06 Feb 2024 08:39:50 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.11.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language"},{"key":"Allow","value":"GET, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"3304"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"date\": \"2023-12-15\",\n        \"details\": {\n            \"from_time\": \"09:00:00\",\n            \"to_time\": \"10:00:00\",\n            \"patient_id\": 23,\n            \"patient_email\": \"maamoun.haj.najeeb@gmail.com\",\n            \"service_id\": 8,\n            \"service_title\": \"check Endocrine\",\n            \"provider_id\": 30,\n            \"provider_business_name\": \"Remostart\",\n            \"location_id\": 3,\n            \"diagonsis\": null,\n            \"result\": null,\n            \"status\": \"rejected\",\n            \"note\": null,\n            \"created_at\": \"2023-12-09T18:00:32.948291Z\",\n            \"updated_at\": \"2023-12-10T09:06:48.549311Z\"\n        }\n    },\n    {\n        \"date\": \"2023-12-15\",\n        \"details\": {\n            \"from_time\": \"08:00:00\",\n            \"to_time\": \"09:00:00\",\n            \"patient_id\": 29,\n            \"patient_email\": \"maamoun.h.najeeb@gmail.com\",\n            \"service_id\": 8,\n            \"service_title\": \"check Endocrine\",\n            \"provider_id\": 30,\n            \"provider_business_name\": \"Remostart\",\n            \"location_id\": 3,\n            \"diagonsis\": null,\n            \"result\": \"General_Check\",\n            \"status\": \"accepted\",\n            \"note\": null,\n            \"created_at\": \"2023-12-09T17:56:54.340246Z\",\n            \"updated_at\": \"2024-01-25T09:15:22.586233Z\"\n        }\n    },\n    {\n        \"date\": \"2023-12-15\",\n        \"details\": {\n            \"from_time\": \"09:00:00\",\n            \"to_time\": \"10:00:00\",\n            \"patient_id\": 23,\n            \"patient_email\": \"maamoun.haj.najeeb@gmail.com\",\n            \"service_id\": 7,\n            \"service_title\": \"check stomach\",\n            \"provider_id\": 30,\n            \"provider_business_name\": \"Remostart\",\n            \"location_id\": 3,\n            \"diagonsis\": null,\n            \"result\": null,\n            \"status\": \"rejected\",\n            \"note\": null,\n            \"created_at\": \"2023-12-09T18:00:29.850293Z\",\n            \"updated_at\": \"2023-12-10T09:06:43.960841Z\"\n        }\n    },\n    {\n        \"date\": \"2023-12-15\",\n        \"details\": {\n            \"from_time\": \"08:00:00\",\n            \"to_time\": \"09:00:00\",\n            \"patient_id\": 29,\n            \"patient_email\": \"maamoun.h.najeeb@gmail.com\",\n            \"service_id\": 7,\n            \"service_title\": \"check stomach\",\n            \"provider_id\": 30,\n            \"provider_business_name\": \"Remostart\",\n            \"location_id\": 3,\n            \"diagonsis\": null,\n            \"result\": \"General_Check\",\n            \"status\": \"accepted\",\n            \"note\": null,\n            \"created_at\": \"2023-12-09T15:31:30.756170Z\",\n            \"updated_at\": \"2024-01-25T09:15:22.570393Z\"\n        }\n    },\n    {\n        \"date\": \"2023-12-15\",\n        \"details\": {\n            \"from_time\": \"09:00:00\",\n            \"to_time\": \"10:00:00\",\n            \"patient_id\": 23,\n            \"patient_email\": \"maamoun.haj.najeeb@gmail.com\",\n            \"service_id\": 10,\n            \"service_title\": \"check eye\",\n            \"provider_id\": 30,\n            \"provider_business_name\": \"Remostart\",\n            \"location_id\": 4,\n            \"diagonsis\": null,\n            \"result\": \"Treatment_Finished\",\n            \"status\": \"accepted\",\n            \"note\": null,\n            \"created_at\": \"2023-12-09T18:00:42.431956Z\",\n            \"updated_at\": \"2024-01-25T09:15:22.613736Z\"\n        }\n    },\n    {\n        \"date\": \"2023-12-15\",\n        \"details\": {\n            \"from_time\": \"08:00:00\",\n            \"to_time\": \"09:00:00\",\n            \"patient_id\": 29,\n            \"patient_email\": \"maamoun.h.najeeb@gmail.com\",\n            \"service_id\": 10,\n            \"service_title\": \"check eye\",\n            \"provider_id\": 30,\n            \"provider_business_name\": \"Remostart\",\n            \"location_id\": 4,\n            \"diagonsis\": null,\n            \"result\": null,\n            \"status\": \"rejected\",\n            \"note\": null,\n            \"created_at\": \"2023-12-09T17:57:09.278776Z\",\n            \"updated_at\": \"2023-12-10T08:26:51.252071Z\"\n        }\n    },\n    {\n        \"date\": \"2023-12-15\",\n        \"details\": {\n            \"from_time\": \"08:00:00\",\n            \"to_time\": \"09:00:00\",\n            \"patient_id\": 29,\n            \"patient_email\": \"maamoun.h.najeeb@gmail.com\",\n            \"service_id\": 9,\n            \"service_title\": \"check ear\",\n            \"provider_id\": 30,\n            \"provider_business_name\": \"Remostart\",\n            \"location_id\": 4,\n            \"diagonsis\": null,\n            \"result\": \"General_Check\",\n            \"status\": \"accepted\",\n            \"note\": null,\n            \"created_at\": \"2023-12-09T17:57:04.261432Z\",\n            \"updated_at\": \"2024-01-25T09:15:22.588010Z\"\n        }\n    },\n    {\n        \"date\": \"2023-12-15\",\n        \"details\": {\n            \"from_time\": \"09:00:00\",\n            \"to_time\": \"10:00:00\",\n            \"patient_id\": 23,\n            \"patient_email\": \"maamoun.haj.najeeb@gmail.com\",\n            \"service_id\": 9,\n            \"service_title\": \"check ear\",\n            \"provider_id\": 30,\n            \"provider_business_name\": \"Remostart\",\n            \"location_id\": 4,\n            \"diagonsis\": null,\n            \"result\": \"Treatment_Finished\",\n            \"status\": \"accepted\",\n            \"note\": null,\n            \"created_at\": \"2023-12-09T18:00:38.743626Z\",\n            \"updated_at\": \"2024-01-25T09:15:22.606015Z\"\n        }\n    }\n]"}],"_postman_id":"f3687fd8-21d0-44b8-a9f7-8b9c57a1cf63"},{"name":"service provider today's appointments","id":"5436d196-c144-4efa-b95f-9523f5e2d992","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3NDkxNzk0LCJpYXQiOjE3MDc0OTA1OTQsImp0aSI6IjA3OTRmYTE2MjVjMDQyYTg4NmU2ZDBhMWQ2OGQzODE4IiwidXNlcl9pZCI6MzB9.zpA6iriWJaQj83xObZBxXoKdfR_27m2SIEa0E6fx6xA","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/appointments/provider/today/","description":"<p>This endpoint is for retrieving the last five done appointments and the today's appointments for service providers.</p>\n<p><strong>This endpoint is for service providers.</strong></p>\n","urlObject":{"protocol":"http","port":"8000","path":["api","v1","appointments","provider","today",""],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[{"id":"c4c549c1-a8f1-4705-85c2-f6462757adef","name":"service provider today's appointments","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MjA5OTc1LCJpYXQiOjE3MDcyMDg3NzUsImp0aSI6IjZhOTkzYjJlMWMzZDRjMWU4NDI5NjBmZWU3OTFjZWFjIiwidXNlcl9pZCI6MzB9.rkpTmharAEZMcFg7rG02nHC1VcQKgvx9L35DIC1GQ4k","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/appointments/provider/today/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 06 Feb 2024 08:42:50 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.11.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language"},{"key":"Allow","value":"OPTIONS, GET"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"58"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"last_five_done_appointments\": [],\n    \"today_appointments\": []\n}"}],"_postman_id":"5436d196-c144-4efa-b95f-9523f5e2d992"}],"id":"2ec33d3f-e79d-44f8-9acf-a62dc0ada623","_postman_id":"2ec33d3f-e79d-44f8-9acf-a62dc0ada623","description":""},{"name":"user appointments","item":[{"name":"user appointments","id":"595326b6-1fdb-4cab-8b52-d794b3ef503a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MjEwNjM4LCJpYXQiOjE3MDcyMDk0MzgsImp0aSI6IjUzMjY3ZGYwYzhkZjQ0ODdhYjQ0YmRlNTFkYTdiZTA4IiwidXNlcl9pZCI6MjN9.Ez5FKxaW_fYZzBTAtf9_kfp1zON66vqMva2QsWFC-8k","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/appointments/user/23","description":"<p>This endpoint makes an HTTP GET request to retrieve the appointmets for user.</p>\n<p><em>Maybe the admin wants to see users appointments, so add provider_id to the end of the url (see examples).</em></p>\n<p><strong>This endpoint is for users &amp; admins</strong></p>\n<p>The response is in JSON format with a status code of 200.</p>\n","urlObject":{"protocol":"http","port":"8000","path":["api","v1","appointments","user","23"],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[{"id":"2cbc28d8-a0d4-4c28-b6d7-dfe51313f935","name":"user appointments","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MjEwMzg0LCJpYXQiOjE3MDcyMDkxODQsImp0aSI6ImI2OTJjZDgyOWRmYzQ0ZWRiZjNjNzE0YWEwOWEyZTg1IiwidXNlcl9pZCI6Mjl9.KKzckY-mPm7A51XkkGiR1ya702exeyYvE16dVF6-CEo","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/appointments/user/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 06 Feb 2024 08:48:05 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.11.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language"},{"key":"Allow","value":"OPTIONS, GET"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"4550"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"date\": \"2024-01-25\",\n        \"details\": {\n            \"from_time\": \"14:00:00\",\n            \"to_time\": \"15:00:00\",\n            \"patient_id\": 29,\n            \"patient_email\": \"maamoun.h.najeeb@gmail.com\",\n            \"service_id\": 15,\n            \"service_title\": \"check feet\",\n            \"provider_id\": 31,\n            \"provider_business_name\": \"our_new_name\",\n            \"location_id\": 6,\n            \"diagonsis\": null,\n            \"result\": null,\n            \"status\": \"pending\",\n            \"note\": \"Any note\",\n            \"created_at\": \"2024-01-27T14:41:15.749154Z\",\n            \"updated_at\": \"2024-01-27T14:41:15.749154Z\"\n        }\n    },\n    {\n        \"date\": \"2024-01-27\",\n        \"details\": {\n            \"from_time\": \"14:00:00\",\n            \"to_time\": \"15:00:00\",\n            \"patient_id\": 29,\n            \"patient_email\": \"maamoun.h.najeeb@gmail.com\",\n            \"service_id\": 15,\n            \"service_title\": \"check feet\",\n            \"provider_id\": 31,\n            \"provider_business_name\": \"our_new_name\",\n            \"location_id\": 6,\n            \"diagonsis\": null,\n            \"result\": null,\n            \"status\": \"pending\",\n            \"note\": \"Any note\",\n            \"created_at\": \"2024-01-27T14:45:55.951227Z\",\n            \"updated_at\": \"2024-01-27T14:45:55.951227Z\"\n        }\n    },\n    {\n        \"date\": \"2024-02-15\",\n        \"details\": {\n            \"from_time\": \"12:00:00\",\n            \"to_time\": \"13:30:00\",\n            \"patient_id\": 29,\n            \"patient_email\": \"maamoun.h.najeeb@gmail.com\",\n            \"service_id\": 21,\n            \"service_title\": \"Dry milk\",\n            \"provider_id\": 31,\n            \"provider_business_name\": \"our_new_name\",\n            \"location_id\": 5,\n            \"diagonsis\": \"nothing\",\n            \"result\": null,\n            \"status\": \"pending\",\n            \"note\": \"no note\",\n            \"created_at\": \"2024-02-05T18:13:25.331464Z\",\n            \"updated_at\": \"2024-02-05T18:13:25.331464Z\"\n        }\n    },\n    {\n        \"date\": \"2023-12-15\",\n        \"details\": {\n            \"from_time\": \"08:00:00\",\n            \"to_time\": \"09:00:00\",\n            \"patient_id\": 29,\n            \"patient_email\": \"maamoun.h.najeeb@gmail.com\",\n            \"service_id\": 11,\n            \"service_title\": \"check teeth\",\n            \"provider_id\": 31,\n            \"provider_business_name\": \"our_new_name\",\n            \"location_id\": 5,\n            \"diagonsis\": null,\n            \"result\": null,\n            \"status\": \"rejected\",\n            \"note\": null,\n            \"created_at\": \"2023-12-09T17:57:13.047250Z\",\n            \"updated_at\": \"2023-12-10T08:26:47.082359Z\"\n        }\n    },\n    {\n        \"date\": \"2023-12-15\",\n        \"details\": {\n            \"from_time\": \"08:00:00\",\n            \"to_time\": \"09:00:00\",\n            \"patient_id\": 29,\n            \"patient_email\": \"maamoun.h.najeeb@gmail.com\",\n            \"service_id\": 10,\n            \"service_title\": \"check eye\",\n            \"provider_id\": 30,\n            \"provider_business_name\": \"Remostart\",\n            \"location_id\": 4,\n            \"diagonsis\": null,\n            \"result\": null,\n            \"status\": \"rejected\",\n            \"note\": null,\n            \"created_at\": \"2023-12-09T17:57:09.278776Z\",\n            \"updated_at\": \"2023-12-10T08:26:51.252071Z\"\n        }\n    },\n    {\n        \"date\": \"2023-12-15\",\n        \"details\": {\n            \"from_time\": \"08:00:00\",\n            \"to_time\": \"09:00:00\",\n            \"patient_id\": 29,\n            \"patient_email\": \"maamoun.h.najeeb@gmail.com\",\n            \"service_id\": 7,\n            \"service_title\": \"check stomach\",\n            \"provider_id\": 30,\n            \"provider_business_name\": \"Remostart\",\n            \"location_id\": 3,\n            \"diagonsis\": null,\n            \"result\": \"General_Check\",\n            \"status\": \"accepted\",\n            \"note\": null,\n            \"created_at\": \"2023-12-09T15:31:30.756170Z\",\n            \"updated_at\": \"2024-01-25T09:15:22.570393Z\"\n        }\n    },\n    {\n        \"date\": \"2023-12-15\",\n        \"details\": {\n            \"from_time\": \"08:00:00\",\n            \"to_time\": \"09:00:00\",\n            \"patient_id\": 29,\n            \"patient_email\": \"maamoun.h.najeeb@gmail.com\",\n            \"service_id\": 8,\n            \"service_title\": \"check Endocrine\",\n            \"provider_id\": 30,\n            \"provider_business_name\": \"Remostart\",\n            \"location_id\": 3,\n            \"diagonsis\": null,\n            \"result\": \"General_Check\",\n            \"status\": \"accepted\",\n            \"note\": null,\n            \"created_at\": \"2023-12-09T17:56:54.340246Z\",\n            \"updated_at\": \"2024-01-25T09:15:22.586233Z\"\n        }\n    },\n    {\n        \"date\": \"2023-12-15\",\n        \"details\": {\n            \"from_time\": \"08:00:00\",\n            \"to_time\": \"09:00:00\",\n            \"patient_id\": 29,\n            \"patient_email\": \"maamoun.h.najeeb@gmail.com\",\n            \"service_id\": 9,\n            \"service_title\": \"check ear\",\n            \"provider_id\": 30,\n            \"provider_business_name\": \"Remostart\",\n            \"location_id\": 4,\n            \"diagonsis\": null,\n            \"result\": \"General_Check\",\n            \"status\": \"accepted\",\n            \"note\": null,\n            \"created_at\": \"2023-12-09T17:57:04.261432Z\",\n            \"updated_at\": \"2024-01-25T09:15:22.588010Z\"\n        }\n    },\n    {\n        \"date\": \"2023-12-15\",\n        \"details\": {\n            \"from_time\": \"08:00:00\",\n            \"to_time\": \"09:00:00\",\n            \"patient_id\": 29,\n            \"patient_email\": \"maamoun.h.najeeb@gmail.com\",\n            \"service_id\": 15,\n            \"service_title\": \"check feet\",\n            \"provider_id\": 31,\n            \"provider_business_name\": \"our_new_name\",\n            \"location_id\": 6,\n            \"diagonsis\": null,\n            \"result\": \"General_Check\",\n            \"status\": \"accepted\",\n            \"note\": null,\n            \"created_at\": \"2023-12-09T17:57:22.638083Z\",\n            \"updated_at\": \"2024-01-25T09:15:22.589697Z\"\n        }\n    },\n    {\n        \"date\": \"2023-12-15\",\n        \"details\": {\n            \"from_time\": \"08:00:00\",\n            \"to_time\": \"09:00:00\",\n            \"patient_id\": 29,\n            \"patient_email\": \"maamoun.h.najeeb@gmail.com\",\n            \"service_id\": 13,\n            \"service_title\": \"check kidney\",\n            \"provider_id\": 31,\n            \"provider_business_name\": \"our_new_name\",\n            \"location_id\": 6,\n            \"diagonsis\": null,\n            \"result\": \"General_Check\",\n            \"status\": \"rejected\",\n            \"note\": null,\n            \"created_at\": \"2023-12-09T17:57:18.999548Z\",\n            \"updated_at\": \"2024-01-25T09:15:22.591241Z\"\n        }\n    },\n    {\n        \"date\": \"2023-12-15\",\n        \"details\": {\n            \"from_time\": \"08:00:00\",\n            \"to_time\": \"09:00:00\",\n            \"patient_id\": 29,\n            \"patient_email\": \"maamoun.h.najeeb@gmail.com\",\n            \"service_id\": 12,\n            \"service_title\": \"general check_up\",\n            \"provider_id\": 31,\n            \"provider_business_name\": \"our_new_name\",\n            \"location_id\": 5,\n            \"diagonsis\": null,\n            \"result\": \"General_Check\",\n            \"status\": \"rejected\",\n            \"note\": null,\n            \"created_at\": \"2023-12-09T17:57:15.961501Z\",\n            \"updated_at\": \"2024-01-25T09:15:22.592849Z\"\n        }\n    }\n]"},{"id":"2a6e85be-9531-4e17-adc1-c20892098e00","name":"user appointments (for admins)","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MjEwNjM4LCJpYXQiOjE3MDcyMDk0MzgsImp0aSI6IjUzMjY3ZGYwYzhkZjQ0ODdhYjQ0YmRlNTFkYTdiZTA4IiwidXNlcl9pZCI6MjN9.Ez5FKxaW_fYZzBTAtf9_kfp1zON66vqMva2QsWFC-8k","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/appointments/user/23"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 06 Feb 2024 08:50:57 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.11.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language"},{"key":"Allow","value":"OPTIONS, GET"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"3329"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"date\": \"2023-12-15\",\n        \"details\": {\n            \"from_time\": \"09:00:00\",\n            \"to_time\": \"10:00:00\",\n            \"patient_id\": 23,\n            \"patient_email\": \"maamoun.haj.najeeb@gmail.com\",\n            \"service_id\": 11,\n            \"service_title\": \"check teeth\",\n            \"provider_id\": 31,\n            \"provider_business_name\": \"our_new_name\",\n            \"location_id\": 5,\n            \"diagonsis\": null,\n            \"result\": \"Treatment_Finished\",\n            \"status\": \"accepted\",\n            \"note\": null,\n            \"created_at\": \"2023-12-09T18:00:45.778244Z\",\n            \"updated_at\": \"2024-01-25T09:15:22.607513Z\"\n        }\n    },\n    {\n        \"date\": \"2023-12-15\",\n        \"details\": {\n            \"from_time\": \"09:00:00\",\n            \"to_time\": \"10:00:00\",\n            \"patient_id\": 23,\n            \"patient_email\": \"maamoun.haj.najeeb@gmail.com\",\n            \"service_id\": 12,\n            \"service_title\": \"general check_up\",\n            \"provider_id\": 31,\n            \"provider_business_name\": \"our_new_name\",\n            \"location_id\": 5,\n            \"diagonsis\": null,\n            \"result\": \"Treatment_Finished\",\n            \"status\": \"accepted\",\n            \"note\": null,\n            \"created_at\": \"2023-12-09T18:00:52.218347Z\",\n            \"updated_at\": \"2024-01-25T09:15:22.609253Z\"\n        }\n    },\n    {\n        \"date\": \"2023-12-15\",\n        \"details\": {\n            \"from_time\": \"09:00:00\",\n            \"to_time\": \"10:00:00\",\n            \"patient_id\": 23,\n            \"patient_email\": \"maamoun.haj.najeeb@gmail.com\",\n            \"service_id\": 10,\n            \"service_title\": \"check eye\",\n            \"provider_id\": 30,\n            \"provider_business_name\": \"Remostart\",\n            \"location_id\": 4,\n            \"diagonsis\": null,\n            \"result\": \"Treatment_Finished\",\n            \"status\": \"accepted\",\n            \"note\": null,\n            \"created_at\": \"2023-12-09T18:00:42.431956Z\",\n            \"updated_at\": \"2024-01-25T09:15:22.613736Z\"\n        }\n    },\n    {\n        \"date\": \"2023-12-15\",\n        \"details\": {\n            \"from_time\": \"09:00:00\",\n            \"to_time\": \"10:00:00\",\n            \"patient_id\": 23,\n            \"patient_email\": \"maamoun.haj.najeeb@gmail.com\",\n            \"service_id\": 7,\n            \"service_title\": \"check stomach\",\n            \"provider_id\": 30,\n            \"provider_business_name\": \"Remostart\",\n            \"location_id\": 3,\n            \"diagonsis\": null,\n            \"result\": null,\n            \"status\": \"rejected\",\n            \"note\": null,\n            \"created_at\": \"2023-12-09T18:00:29.850293Z\",\n            \"updated_at\": \"2023-12-10T09:06:43.960841Z\"\n        }\n    },\n    {\n        \"date\": \"2023-12-15\",\n        \"details\": {\n            \"from_time\": \"09:00:00\",\n            \"to_time\": \"10:00:00\",\n            \"patient_id\": 23,\n            \"patient_email\": \"maamoun.haj.najeeb@gmail.com\",\n            \"service_id\": 8,\n            \"service_title\": \"check Endocrine\",\n            \"provider_id\": 30,\n            \"provider_business_name\": \"Remostart\",\n            \"location_id\": 3,\n            \"diagonsis\": null,\n            \"result\": null,\n            \"status\": \"rejected\",\n            \"note\": null,\n            \"created_at\": \"2023-12-09T18:00:32.948291Z\",\n            \"updated_at\": \"2023-12-10T09:06:48.549311Z\"\n        }\n    },\n    {\n        \"date\": \"2023-12-15\",\n        \"details\": {\n            \"from_time\": \"09:00:00\",\n            \"to_time\": \"10:00:00\",\n            \"patient_id\": 23,\n            \"patient_email\": \"maamoun.haj.najeeb@gmail.com\",\n            \"service_id\": 13,\n            \"service_title\": \"check kidney\",\n            \"provider_id\": 31,\n            \"provider_business_name\": \"our_new_name\",\n            \"location_id\": 6,\n            \"diagonsis\": null,\n            \"result\": null,\n            \"status\": \"rejected\",\n            \"note\": null,\n            \"created_at\": \"2023-12-09T18:00:55.988361Z\",\n            \"updated_at\": \"2023-12-10T09:06:56.740466Z\"\n        }\n    },\n    {\n        \"date\": \"2023-12-15\",\n        \"details\": {\n            \"from_time\": \"09:00:00\",\n            \"to_time\": \"10:00:00\",\n            \"patient_id\": 23,\n            \"patient_email\": \"maamoun.haj.najeeb@gmail.com\",\n            \"service_id\": 15,\n            \"service_title\": \"check feet\",\n            \"provider_id\": 31,\n            \"provider_business_name\": \"our_new_name\",\n            \"location_id\": 6,\n            \"diagonsis\": null,\n            \"result\": null,\n            \"status\": \"rejected\",\n            \"note\": null,\n            \"created_at\": \"2023-12-09T18:01:01.147396Z\",\n            \"updated_at\": \"2023-12-10T09:07:00.655324Z\"\n        }\n    },\n    {\n        \"date\": \"2023-12-15\",\n        \"details\": {\n            \"from_time\": \"09:00:00\",\n            \"to_time\": \"10:00:00\",\n            \"patient_id\": 23,\n            \"patient_email\": \"maamoun.haj.najeeb@gmail.com\",\n            \"service_id\": 9,\n            \"service_title\": \"check ear\",\n            \"provider_id\": 30,\n            \"provider_business_name\": \"Remostart\",\n            \"location_id\": 4,\n            \"diagonsis\": null,\n            \"result\": \"Treatment_Finished\",\n            \"status\": \"accepted\",\n            \"note\": null,\n            \"created_at\": \"2023-12-09T18:00:38.743626Z\",\n            \"updated_at\": \"2024-01-25T09:15:22.606015Z\"\n        }\n    }\n]"}],"_postman_id":"595326b6-1fdb-4cab-8b52-d794b3ef503a"}],"id":"5b69d106-0410-4b8c-86d3-ad0d2c710264","_postman_id":"5b69d106-0410-4b8c-86d3-ad0d2c710264","description":""},{"name":"location appointments","item":[{"name":"location appointments","id":"313db177-20e8-4e5e-a7a9-ac03cbb03f31","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MjEwNjM4LCJpYXQiOjE3MDcyMDk0MzgsImp0aSI6IjUzMjY3ZGYwYzhkZjQ0ODdhYjQ0YmRlNTFkYTdiZTA4IiwidXNlcl9pZCI6MjN9.Ez5FKxaW_fYZzBTAtf9_kfp1zON66vqMva2QsWFC-8k","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/appointments/location/5/","description":"<p>This endpoint makes an HTTP GET request to retrieve the appointmets for specific location.</p>\n<p><strong>This endpoint is for authenticated users.</strong></p>\n<p>The response is in JSON format with a status code of 200.</p>\n","urlObject":{"protocol":"http","port":"8000","path":["api","v1","appointments","location","5",""],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[{"id":"132d6a26-bb17-4622-a3f1-5c8140d1c54c","name":"location appointments","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MjEwNjM4LCJpYXQiOjE3MDcyMDk0MzgsImp0aSI6IjUzMjY3ZGYwYzhkZjQ0ODdhYjQ0YmRlNTFkYTdiZTA4IiwidXNlcl9pZCI6MjN9.Ez5FKxaW_fYZzBTAtf9_kfp1zON66vqMva2QsWFC-8k","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/appointments/location/5/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 06 Feb 2024 08:53:51 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.11.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language"},{"key":"Allow","value":"OPTIONS, GET"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"2099"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"date\": \"2023-12-15\",\n        \"details\": {\n            \"from_time\": \"09:00:00\",\n            \"to_time\": \"10:00:00\",\n            \"patient_id\": 23,\n            \"patient_email\": \"maamoun.haj.najeeb@gmail.com\",\n            \"service_id\": 11,\n            \"service_title\": \"check teeth\",\n            \"provider_id\": 31,\n            \"provider_business_name\": \"our_new_name\",\n            \"location_id\": 5,\n            \"diagonsis\": null,\n            \"result\": \"Treatment_Finished\",\n            \"status\": \"accepted\",\n            \"note\": null,\n            \"created_at\": \"2023-12-09T18:00:45.778244Z\",\n            \"updated_at\": \"2024-01-25T09:15:22.607513Z\"\n        }\n    },\n    {\n        \"date\": \"2023-12-15\",\n        \"details\": {\n            \"from_time\": \"09:00:00\",\n            \"to_time\": \"10:00:00\",\n            \"patient_id\": 23,\n            \"patient_email\": \"maamoun.haj.najeeb@gmail.com\",\n            \"service_id\": 12,\n            \"service_title\": \"general check_up\",\n            \"provider_id\": 31,\n            \"provider_business_name\": \"our_new_name\",\n            \"location_id\": 5,\n            \"diagonsis\": null,\n            \"result\": \"Treatment_Finished\",\n            \"status\": \"accepted\",\n            \"note\": null,\n            \"created_at\": \"2023-12-09T18:00:52.218347Z\",\n            \"updated_at\": \"2024-01-25T09:15:22.609253Z\"\n        }\n    },\n    {\n        \"date\": \"2024-02-15\",\n        \"details\": {\n            \"from_time\": \"12:00:00\",\n            \"to_time\": \"13:30:00\",\n            \"patient_id\": 29,\n            \"patient_email\": \"maamoun.h.najeeb@gmail.com\",\n            \"service_id\": 21,\n            \"service_title\": \"Dry milk\",\n            \"provider_id\": 31,\n            \"provider_business_name\": \"our_new_name\",\n            \"location_id\": 5,\n            \"diagonsis\": \"nothing\",\n            \"result\": null,\n            \"status\": \"pending\",\n            \"note\": \"no note\",\n            \"created_at\": \"2024-02-05T18:13:25.331464Z\",\n            \"updated_at\": \"2024-02-05T18:13:25.331464Z\"\n        }\n    },\n    {\n        \"date\": \"2023-12-15\",\n        \"details\": {\n            \"from_time\": \"08:00:00\",\n            \"to_time\": \"09:00:00\",\n            \"patient_id\": 29,\n            \"patient_email\": \"maamoun.h.najeeb@gmail.com\",\n            \"service_id\": 11,\n            \"service_title\": \"check teeth\",\n            \"provider_id\": 31,\n            \"provider_business_name\": \"our_new_name\",\n            \"location_id\": 5,\n            \"diagonsis\": null,\n            \"result\": null,\n            \"status\": \"rejected\",\n            \"note\": null,\n            \"created_at\": \"2023-12-09T17:57:13.047250Z\",\n            \"updated_at\": \"2023-12-10T08:26:47.082359Z\"\n        }\n    },\n    {\n        \"date\": \"2023-12-15\",\n        \"details\": {\n            \"from_time\": \"08:00:00\",\n            \"to_time\": \"09:00:00\",\n            \"patient_id\": 29,\n            \"patient_email\": \"maamoun.h.najeeb@gmail.com\",\n            \"service_id\": 12,\n            \"service_title\": \"general check_up\",\n            \"provider_id\": 31,\n            \"provider_business_name\": \"our_new_name\",\n            \"location_id\": 5,\n            \"diagonsis\": null,\n            \"result\": \"General_Check\",\n            \"status\": \"rejected\",\n            \"note\": null,\n            \"created_at\": \"2023-12-09T17:57:15.961501Z\",\n            \"updated_at\": \"2024-01-25T09:15:22.592849Z\"\n        }\n    }\n]"}],"_postman_id":"313db177-20e8-4e5e-a7a9-ac03cbb03f31"},{"name":"location today's appointments","id":"d54e137f-bf64-4c8a-8c38-b85273e18677","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MjEyNjUyLCJpYXQiOjE3MDcyMTE0NTIsImp0aSI6IjViZTI3YjBhODg4NjRlMTY4ZGFjNDc3YTVkMTIxZmIwIiwidXNlcl9pZCI6MzB9.qNknhbQPS31QPG9Q3nlz5fCcSIlEolslmfUUhBEjAeo","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/appointments/location/today/3/","description":"<p>This endpoint makes an HTTP GET request to retrieve the today's appointmets for specific location and the last five appointments for this location too.</p>\n<p><strong>This endpoint is for authenticated users.</strong></p>\n<p>The response is in JSON format with a status code of 200.</p>\n","urlObject":{"protocol":"http","port":"8000","path":["api","v1","appointments","location","today","3",""],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[{"id":"9a4d286b-1fa5-4c89-82c3-bbba565a24d2","name":"location today's appointments","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MjEyNjUyLCJpYXQiOjE3MDcyMTE0NTIsImp0aSI6IjViZTI3YjBhODg4NjRlMTY4ZGFjNDc3YTVkMTIxZmIwIiwidXNlcl9pZCI6MzB9.qNknhbQPS31QPG9Q3nlz5fCcSIlEolslmfUUhBEjAeo","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/appointments/location/today/3/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 06 Feb 2024 09:31:00 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.11.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language"},{"key":"Allow","value":"OPTIONS, GET"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"1035"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"date\": \"2023-12-15\",\n        \"details\": {\n            \"from_time\": \"08:00:00\",\n            \"to_time\": \"09:00:00\",\n            \"patient_id\": 29,\n            \"patient_email\": \"maamoun.h.najeeb@gmail.com\",\n            \"service_id\": 8,\n            \"service_title\": \"check Endocrine\",\n            \"provider_id\": 30,\n            \"provider_business_name\": \"Remostart\",\n            \"location_id\": 3,\n            \"diagonsis\": null,\n            \"result\": \"General_Check\",\n            \"status\": \"accepted\",\n            \"note\": null,\n            \"created_at\": \"2023-12-09T17:56:54.340246Z\",\n            \"updated_at\": \"2024-01-25T09:15:22.586233Z\",\n            \"patient_image\": \"D:\\\\new\\\\media\\\\profile_images\\\\2023\\\\12\\\\5\\\\704e2cea1c23445488ee1e401df551ea.png\"\n        }\n    },\n    {\n        \"date\": \"2023-12-15\",\n        \"details\": {\n            \"from_time\": \"08:00:00\",\n            \"to_time\": \"09:00:00\",\n            \"patient_id\": 29,\n            \"patient_email\": \"maamoun.h.najeeb@gmail.com\",\n            \"service_id\": 7,\n            \"service_title\": \"check stomach\",\n            \"provider_id\": 30,\n            \"provider_business_name\": \"Remostart\",\n            \"location_id\": 3,\n            \"diagonsis\": null,\n            \"result\": \"General_Check\",\n            \"status\": \"accepted\",\n            \"note\": null,\n            \"created_at\": \"2023-12-09T15:31:30.756170Z\",\n            \"updated_at\": \"2024-01-25T09:15:22.570393Z\",\n            \"patient_image\": \"D:\\\\new\\\\media\\\\profile_images\\\\2023\\\\12\\\\5\\\\704e2cea1c23445488ee1e401df551ea.png\"\n        }\n    }\n]"}],"_postman_id":"d54e137f-bf64-4c8a-8c38-b85273e18677"}],"id":"b77266b1-8f67-418e-bab3-ae53501d2ab5","_postman_id":"b77266b1-8f67-418e-bab3-ae53501d2ab5","description":""}],"id":"4cea6281-bbd1-446a-b74d-7e8f0158b69a","_postman_id":"4cea6281-bbd1-446a-b74d-7e8f0158b69a","description":""},{"name":"category","item":[{"name":"doctors","item":[{"name":"category doctors list","id":"6e0ab0ae-9091-4069-b2ec-b1f6272f2597","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://127.0.0.1:8000/api/v1/category/doctors/","description":"<p>An api that lists the doctors catagory and subcategories (All categories specified under the Doctor)</p>\n<p>Allowed for all</p>\n","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"f4b5e6ee-827e-4b12-9dee-c7eb774fe50c","id":"f4b5e6ee-827e-4b12-9dee-c7eb774fe50c","name":"category","type":"folder"}},"urlObject":{"path":["category","doctors",""],"host":["http://127.0.0.1:8000/api/v1"],"query":[],"variable":[]}},"response":[{"id":"5a24a585-ca8a-46db-8c52-5c636e9b4166","name":"category doctors list","originalRequest":{"method":"GET","header":[],"url":"http://127.0.0.1:8000/api/v1/category/doctors/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sun, 03 Dec 2023 23:06:29 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.9.10"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language, Cookie"},{"key":"Allow","value":"OPTIONS, GET"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"487"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"same-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 4,\n        \"user\": 4,\n        \"category\": 2,\n        \"bank_name\": \"service1\",\n        \"business_name\": \"service1\",\n        \"iban\": \"service1\",\n        \"swift_code\": \"service1\",\n        \"provider_file\": \"/media/service_providers/3149ab3e22d8444091c336ced4839a21.png\",\n        \"account_status\": \"rejected\"\n    },\n    {\n        \"id\": 5,\n        \"user\": 5,\n        \"category\": 4,\n        \"bank_name\": \"plasticplastic\",\n        \"business_name\": \"plasticplastic\",\n        \"iban\": \"plasticplastic\",\n        \"swift_code\": \"plasticplastic\",\n        \"provider_file\": \"/media/service_providers/75514e5882b04221a9f807ec9e6583cf.png\",\n        \"account_status\": \"rejected\"\n    }\n]"}],"_postman_id":"6e0ab0ae-9091-4069-b2ec-b1f6272f2597"}],"id":"d42b5fe5-480a-4187-afed-00fd346eb613","_postman_id":"d42b5fe5-480a-4187-afed-00fd346eb613","description":"","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"f4b5e6ee-827e-4b12-9dee-c7eb774fe50c","id":"f4b5e6ee-827e-4b12-9dee-c7eb774fe50c","name":"category","type":"folder"}}},{"name":"locations","item":[{"name":"category locations read","id":"0a74fa4b-1844-46ff-908e-72569f033a48","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://127.0.0.1:8000/api/v1/category/locations/1/","description":"<p>This API lists service_provider categories locations<br />category ID is required</p>\n<p>Allowed for all</p>\n","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"f4b5e6ee-827e-4b12-9dee-c7eb774fe50c","id":"f4b5e6ee-827e-4b12-9dee-c7eb774fe50c","name":"category","type":"folder"}},"urlObject":{"path":["category","locations","1",""],"host":["http://127.0.0.1:8000/api/v1"],"query":[],"variable":[]}},"response":[{"id":"3adb75e7-78a9-4e6e-9c1f-ffa2d78dc1be","name":"category locations read","originalRequest":{"method":"GET","header":[],"url":"http://127.0.0.1:8000/api/v1/category/locations/1/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sun, 03 Dec 2023 23:07:56 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.9.10"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language, Cookie"},{"key":"Allow","value":"OPTIONS, GET"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"221"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"same-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 1,\n        \"service_provider\": \"service\",\n        \"location\": {\n            \"type\": \"Point\",\n            \"coordinates\": [\n                0.994445655199845,\n                55.68752626472786\n            ]\n        },\n        \"opening\": \"16:17:32\",\n        \"closing\": \"06:00:00\",\n        \"crew\": \"maamoun\",\n        \"created_at\": \"2023-12-01T16:17:44.355450Z\"\n    }\n]"}],"_postman_id":"0a74fa4b-1844-46ff-908e-72569f033a48"}],"id":"9b100b53-e2d0-4fb0-8475-6a2c9221ed96","_postman_id":"9b100b53-e2d0-4fb0-8475-6a2c9221ed96","description":"","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"f4b5e6ee-827e-4b12-9dee-c7eb774fe50c","id":"f4b5e6ee-827e-4b12-9dee-c7eb774fe50c","name":"category","type":"folder"}}},{"name":"prime_categories","item":[{"name":"category prime categories list","id":"08821aa3-6ef1-42ea-9980-36f0c0d7c0e8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://127.0.0.1:8000/api/v1/category/prime_categories/","description":"<p>This API lists all prime categories<br />Allowed for all</p>\n","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"f4b5e6ee-827e-4b12-9dee-c7eb774fe50c","id":"f4b5e6ee-827e-4b12-9dee-c7eb774fe50c","name":"category","type":"folder"}},"urlObject":{"path":["category","prime_categories",""],"host":["http://127.0.0.1:8000/api/v1"],"query":[],"variable":[]}},"response":[{"id":"73d3e227-89b6-49be-950d-5f89421bbdb3","name":"category prime categories list","originalRequest":{"method":"GET","header":[],"url":"http://127.0.0.1:8000/api/v1/category/prime_categories/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 07 Dec 2023 22:53:00 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.9.10"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language, Cookie"},{"key":"Allow","value":"GET, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"24"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"same-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 1,\n        \"en_name\": \"DOCTOR\",\n        \"parent\": null\n    },\n    {\n        \"id\": 2,\n        \"en_name\": \"OPTICS\",\n        \"parent\": 1\n    }\n]\n"}],"_postman_id":"08821aa3-6ef1-42ea-9980-36f0c0d7c0e8"}],"id":"5f59decf-a773-4094-ad14-8a9f55332ba2","_postman_id":"5f59decf-a773-4094-ad14-8a9f55332ba2","description":"","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"f4b5e6ee-827e-4b12-9dee-c7eb774fe50c","id":"f4b5e6ee-827e-4b12-9dee-c7eb774fe50c","name":"category","type":"folder"}}},{"name":"search","item":[{"name":"category search list","id":"9200afb6-7cae-46ad-b634-a0dcc8379007","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://127.0.0.1:8000/api/v1/category/search/?query=optic","description":"<p>This API allows to search for a specific category using name via query params<br />?query=<br />Allowed for all</p>\n","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"f4b5e6ee-827e-4b12-9dee-c7eb774fe50c","id":"f4b5e6ee-827e-4b12-9dee-c7eb774fe50c","name":"category","type":"folder"}},"urlObject":{"path":["category","search",""],"host":["http://127.0.0.1:8000/api/v1"],"query":[{"key":"query","value":"optic"}],"variable":[]}},"response":[{"id":"d0895ca3-f0d8-4318-8024-9811c883e14a","name":"category search list","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://127.0.0.1:8000/api/v1/category/search/?query=optic","host":["http://127.0.0.1:8000/api/v1"],"path":["category","search",""],"query":[{"key":"query","value":"optic"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 07 Dec 2023 22:56:31 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.9.10"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language, Cookie"},{"key":"Allow","value":"GET, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"40"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"same-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 2,\n        \"en_name\": \"OPTICS\",\n        \"parent\": 1\n    }\n]"}],"_postman_id":"9200afb6-7cae-46ad-b634-a0dcc8379007"}],"id":"afbac968-c4c5-41c2-85ac-805f86e77ce7","_postman_id":"afbac968-c4c5-41c2-85ac-805f86e77ce7","description":"","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"f4b5e6ee-827e-4b12-9dee-c7eb774fe50c","id":"f4b5e6ee-827e-4b12-9dee-c7eb774fe50c","name":"category","type":"folder"}}},{"name":"sub_categories","item":[{"name":"category sub categories read","id":"3b032484-1ae2-4be0-b477-0ec5cb91e899","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://127.0.0.1:8000/api/v1/category/sub_categories/1/","description":"<p>This API returns all sub categories under a Parent category</p>\n<p>Allowed for all</p>\n","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"f4b5e6ee-827e-4b12-9dee-c7eb774fe50c","id":"f4b5e6ee-827e-4b12-9dee-c7eb774fe50c","name":"category","type":"folder"}},"urlObject":{"path":["category","sub_categories","1",""],"host":["http://127.0.0.1:8000/api/v1"],"query":[],"variable":[]}},"response":[{"id":"e722571f-5290-4f64-8072-ffbac8c5c6b2","name":"category sub categories read","originalRequest":{"method":"GET","header":[],"url":"http://127.0.0.1:8000/api/v1/category/sub_categories/1/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 07 Dec 2023 22:58:06 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.9.10"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language, Cookie"},{"key":"Allow","value":"GET, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"40"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"same-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 2,\n        \"en_name\": \"OPTICS\",\n        \"parent\": 1\n    }\n]"}],"_postman_id":"3b032484-1ae2-4be0-b477-0ec5cb91e899"}],"id":"d4638c8a-b660-437a-a025-8d0b00490b15","_postman_id":"d4638c8a-b660-437a-a025-8d0b00490b15","description":"","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"f4b5e6ee-827e-4b12-9dee-c7eb774fe50c","id":"f4b5e6ee-827e-4b12-9dee-c7eb774fe50c","name":"category","type":"folder"}}},{"name":"{id}","item":[{"name":"list specific category","id":"e7ae3d68-54f6-49ef-996c-e8cee3dc36fe","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"127.0.0.1:8000/api/v1/category/2","description":"<p>This API returns a specific category via the category ID<br />Allowed for all</p>\n","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"f4b5e6ee-827e-4b12-9dee-c7eb774fe50c","id":"f4b5e6ee-827e-4b12-9dee-c7eb774fe50c","name":"category","type":"folder"}},"urlObject":{"port":"8000","path":["api","v1","category","2"],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[{"id":"87a46e59-cd4c-4b6e-bb0d-044bb1179463","name":"list specific category","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"127.0.0.1:8000/api/v1/category/2"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sat, 23 Dec 2023 13:41:07 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.9.10"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language, Cookie"},{"key":"Allow","value":"GET, PUT, PATCH, DELETE, HEAD, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"37"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"same-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 2,\n        \"parent\": 1,\n        \"name\": \"OPTICS\"\n    }\n]"}],"_postman_id":"e7ae3d68-54f6-49ef-996c-e8cee3dc36fe"},{"name":"update specific category data","id":"0e47d6c9-0f35-45ee-a0c4-8d4b2c296419","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzAzMzM5OTUwLCJpYXQiOjE3MDMzMzg3NTAsImp0aSI6IjQ5NTAxODUxOGU4ODRkNzZiM2M0OTg5NGNmNmVjZGY4IiwidXNlcl9pZCI6MX0.FtnvLTLics-eyV1gEEa3VOptO6AoJVvduHpqRBv0x3U","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"en_name\": \"HOSPITAL\",\n  \"ar_name\": \"مستشفى\",\n  \"parent\": \"\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"127.0.0.1:8000/api/v1/category/update/1/","description":"<p>This API allows to update a specific category via the category ID<br />Allowed for admins</p>\n","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"f4b5e6ee-827e-4b12-9dee-c7eb774fe50c","id":"f4b5e6ee-827e-4b12-9dee-c7eb774fe50c","name":"category","type":"folder"}},"urlObject":{"port":"8000","path":["api","v1","category","update","1",""],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[{"id":"e7d90619-fd04-44b1-8183-0ff3d184cc85","name":"update specific category data","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzAzMzM5OTUwLCJpYXQiOjE3MDMzMzg3NTAsImp0aSI6IjQ5NTAxODUxOGU4ODRkNzZiM2M0OTg5NGNmNmVjZGY4IiwidXNlcl9pZCI6MX0.FtnvLTLics-eyV1gEEa3VOptO6AoJVvduHpqRBv0x3U","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"en_name\": \"HOSPITAL\",\n  \"ar_name\": \"مستشفى\",\n  \"parent\": \"\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"127.0.0.1:8000/api/v1/category/update/1/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sat, 23 Dec 2023 13:42:48 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.9.10"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language"},{"key":"Allow","value":"PUT, PATCH, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"68"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"same-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 1,\n    \"en_name\": \"HOSPITAL\",\n    \"ar_name\": \"مستشفى\",\n    \"parent\": null\n}"}],"_postman_id":"0e47d6c9-0f35-45ee-a0c4-8d4b2c296419"},{"name":"delete a specific category","id":"16bb62fe-1084-4a67-8207-08ebfe9631b6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzAxOTkxMzIyLCJpYXQiOjE3MDE5OTAxMjIsImp0aSI6IjRlNjU2ZWE5ODNiMjQ4YTViM2E2ODU1Y2RmNjcwN2EzIiwidXNlcl9pZCI6MX0.jAO8-PXIo9jFbdBuetqMWnr7vZ4fslvsNGPoXjDW2BU","type":"text"}],"url":"127.0.0.1:8000/api/v1/category/destroy/1/","description":"<p>This API allows to delete specific category via the category ID<br />Allowed for admins</p>\n","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"f4b5e6ee-827e-4b12-9dee-c7eb774fe50c","id":"f4b5e6ee-827e-4b12-9dee-c7eb774fe50c","name":"category","type":"folder"}},"urlObject":{"port":"8000","path":["api","v1","category","destroy","1",""],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[{"id":"75d753c8-304c-4d86-bd1b-d0f980c95c16","name":"Untitled Response","originalRequest":{"method":"DELETE","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzAxOTkxMzIyLCJpYXQiOjE3MDE5OTAxMjIsImp0aSI6IjRlNjU2ZWE5ODNiMjQ4YTViM2E2ODU1Y2RmNjcwN2EzIiwidXNlcl9pZCI6MX0.jAO8-PXIo9jFbdBuetqMWnr7vZ4fslvsNGPoXjDW2BU"}],"url":"127.0.0.1:8000/api/v1/category/destroy/3"},"status":"No Content","code":204,"_postman_previewlanguage":"text","header":[],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"16bb62fe-1084-4a67-8207-08ebfe9631b6"}],"id":"327cd743-70c2-4bdb-aab2-602931708d91","description":"<p>This view offers four API methods</p>\n<p>Everybody method: get method (including: searching, listing and get specific record)<br />Admins methods: post, update[patch, put] and delete methods</p>\n<p>you can assign parent category for each sub category by using the parent id with the form data</p>\n","_postman_id":"327cd743-70c2-4bdb-aab2-602931708d91","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"f4b5e6ee-827e-4b12-9dee-c7eb774fe50c","id":"f4b5e6ee-827e-4b12-9dee-c7eb774fe50c","name":"category","type":"folder"}}},{"name":"list all categories","id":"f99afc2a-07fd-4d1a-8883-165e476bf82d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"127.0.0.1:8000/api/v1/category/","description":"<p>This API returns all categories<br />Allowed for all</p>\n","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"f4b5e6ee-827e-4b12-9dee-c7eb774fe50c","id":"f4b5e6ee-827e-4b12-9dee-c7eb774fe50c","name":"category","type":"folder"}},"urlObject":{"port":"8000","path":["api","v1","category",""],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[{"id":"1fb359cb-98ca-4b1e-bcaa-fa3ce5238dc7","name":"list all categories","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"127.0.0.1:8000/api/v1/category/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sat, 23 Dec 2023 13:38:29 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.9.10"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language, Cookie"},{"key":"Allow","value":"GET, POST, HEAD, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"76"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"same-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 2,\n        \"parent\": 1,\n        \"name\": \"OPTICS\"\n    },\n    {\n        \"id\": 1,\n        \"parent\": null,\n        \"name\": \"DOCTOR\"\n    }\n]"}],"_postman_id":"f99afc2a-07fd-4d1a-8883-165e476bf82d"},{"name":"create category","id":"49afab99-7605-4bf9-a115-6fe092a44e04","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzAzMzM5OTUwLCJpYXQiOjE3MDMzMzg3NTAsImp0aSI6IjQ5NTAxODUxOGU4ODRkNzZiM2M0OTg5NGNmNmVjZGY4IiwidXNlcl9pZCI6MX0.FtnvLTLics-eyV1gEEa3VOptO6AoJVvduHpqRBv0x3U","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"en_name\": \"PHARMACY\",\n  \"ar_name\": \"صيدلية\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"127.0.0.1:8000/api/v1/category/create/","description":"<p>This API allows to create a new category<br />Allowed for admins</p>\n","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"f4b5e6ee-827e-4b12-9dee-c7eb774fe50c","id":"f4b5e6ee-827e-4b12-9dee-c7eb774fe50c","name":"category","type":"folder"}},"urlObject":{"port":"8000","path":["api","v1","category","create",""],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[{"id":"ceca2251-03ca-4169-a5a7-5d2a46fdd7b6","name":"create category","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzAzMzM5OTUwLCJpYXQiOjE3MDMzMzg3NTAsImp0aSI6IjQ5NTAxODUxOGU4ODRkNzZiM2M0OTg5NGNmNmVjZGY4IiwidXNlcl9pZCI6MX0.FtnvLTLics-eyV1gEEa3VOptO6AoJVvduHpqRBv0x3U","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"en_name\": \"PHARMACY\",\n  \"ar_name\": \"صيدلية\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"127.0.0.1:8000/api/v1/category/create/"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sat, 23 Dec 2023 13:39:43 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.9.10"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language"},{"key":"Allow","value":"POST, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"68"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"same-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 4,\n    \"en_name\": \"PHARMACY\",\n    \"ar_name\": \"صيدلية\",\n    \"parent\": null\n}"}],"_postman_id":"49afab99-7605-4bf9-a115-6fe092a44e04"}],"id":"f4b5e6ee-827e-4b12-9dee-c7eb774fe50c","description":"<p>This folder contains all categories APIs</p>\n","auth":{"type":"noauth","isInherited":false},"event":[{"listen":"prerequest","script":{"id":"c392f319-dc92-4718-ba8d-72c13962fc9e","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"19a1c0ae-d5e8-4d9a-ae70-29c7c79f8713","type":"text/javascript","exec":[""]}}],"_postman_id":"f4b5e6ee-827e-4b12-9dee-c7eb774fe50c"},{"name":"contact_us","item":[{"name":"specific record","item":[{"name":"get","id":"f196295f-fe33-476b-bf11-cc653e23a0c0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MTU4MjM1LCJpYXQiOjE3MDcxNTcwMzUsImp0aSI6IjNiYzYwMTYyNmYxNDQ0NjNiOTQ3ODgyMzU5NzYwYjIxIiwidXNlcl9pZCI6MjN9.LtwVDRMg265joM7QASWbAcGegGa87sbZOOdNfSreFbs","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/contact_us/2/","description":"<p>This API endpoint retrieves the details of a specific contact us form with the specified ID.</p>\n<p><strong>This endpoint is for admins only.</strong></p>\n<p>Upon a successful request, the server responds with a JSON object containing the ID, name, email, message, read status, and the ID of the user who read the message. An example response is shown below:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"id\": 0,\n    \"name\": \"\",\n    \"mail\": \"\",\n    \"message\": \"\",\n    \"read\": true,\n    \"read_by\": 0\n}\n\n</code></pre>\n","urlObject":{"path":["contact_us","2",""],"host":["http://127.0.0.1:8000/api/v1"],"query":[],"variable":[]}},"response":[{"id":"d5d9739c-eec8-4562-b8c5-972dabcaab9f","name":"get","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MTU4MjM1LCJpYXQiOjE3MDcxNTcwMzUsImp0aSI6IjNiYzYwMTYyNmYxNDQ0NjNiOTQ3ODgyMzU5NzYwYjIxIiwidXNlcl9pZCI6MjN9.LtwVDRMg265joM7QASWbAcGegGa87sbZOOdNfSreFbs","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/contact_us/2/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 05 Feb 2024 18:22:52 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.11.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language"},{"key":"Allow","value":"GET, PUT, PATCH, DELETE, HEAD, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"119"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 2,\n    \"name\": \"Maamoun Haj Najeeb\",\n    \"mail\": \"maamoun3911@gmail.com\",\n    \"message\": \"Nothing matter\",\n    \"read\": true,\n    \"read_by\": 23\n}"}],"_postman_id":"f196295f-fe33-476b-bf11-cc653e23a0c0"},{"name":"delete","id":"b8a8ec2c-879b-42b0-9bd1-d079b0105d17","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MTU4MjM1LCJpYXQiOjE3MDcxNTcwMzUsImp0aSI6IjNiYzYwMTYyNmYxNDQ0NjNiOTQ3ODgyMzU5NzYwYjIxIiwidXNlcl9pZCI6MjN9.LtwVDRMg265joM7QASWbAcGegGa87sbZOOdNfSreFbs","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/contact_us/1/","description":"<p>This endpoint is used to delete a specific contact us record information with the specified ID.</p>\n<p><strong>This endpoint is for admins only.</strong></p>\n<p>Upon successful deletion, the server returns a status code of 204 with a Content-Type of text/xml. No content is returned in the response body.</p>\n","urlObject":{"path":["contact_us","1",""],"host":["http://127.0.0.1:8000/api/v1"],"query":[],"variable":[]}},"response":[{"id":"3c5f8c8f-37be-43d4-8d76-d2490b980559","name":"delete","originalRequest":{"method":"DELETE","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MTU4MjM1LCJpYXQiOjE3MDcxNTcwMzUsImp0aSI6IjNiYzYwMTYyNmYxNDQ0NjNiOTQ3ODgyMzU5NzYwYjIxIiwidXNlcl9pZCI6MjN9.LtwVDRMg265joM7QASWbAcGegGa87sbZOOdNfSreFbs","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/contact_us/1/"},"status":"No Content","code":204,"_postman_previewlanguage":"plain","header":[{"key":"Date","value":"Mon, 05 Feb 2024 18:24:35 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.11.0"},{"key":"Vary","value":"Accept, origin, Accept-Language"},{"key":"Allow","value":"GET, PUT, PATCH, DELETE, HEAD, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"0"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":null}],"_postman_id":"b8a8ec2c-879b-42b0-9bd1-d079b0105d17"},{"name":"create","id":"1f11f71c-d858-4e6c-bc55-fb76b3bb5dc3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"Maamoun Haj Najeeb\",\r\n    \"mail\": \"maamoun3911@gmail.com\",\r\n    \"message\": \"Nothing matter\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/api/v1/contact_us/create/","description":"<p>This API endpoint allows you to create a new contact us form message.</p>\n<p><strong>This endpoint is for everybody.</strong></p>\n<h3 id=\"request-body\">Request Body</h3>\n<ul>\n<li><code>name</code>: (text) The name of the contact.</li>\n<li><code>mail</code>: (text) The email of the contact.</li>\n<li><code>message</code>: (text) The message from the contact.</li>\n</ul>\n<h3 id=\"response\">Response</h3>\n<ul>\n<li><p>Status: 400</p>\n</li>\n<li><p>Content-Type: application/json</p>\n</li>\n<li><p>Body:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"name\":[\"\"],\n    \"mail\":[\"\"],\n    \"message\":[\"\"]\n}\n\n</code></pre>\n<p>  The response indicates that the request was unsuccessful, and it provides an array of error messages for each field that was not provided.</p>\n</li>\n</ul>\n","urlObject":{"path":["contact_us","create",""],"host":["http://127.0.0.1:8000/api/v1"],"query":[],"variable":[]}},"response":[{"id":"42bc9f97-36f7-4de6-9edb-21c423e8c5eb","name":"create","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"Maamoun Haj Najeeb\",\r\n    \"mail\": \"maamoun3911@gmail.com\",\r\n    \"message\": \"Nothing matter\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/api/v1/contact_us/create/"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 05 Feb 2024 18:19:40 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.11.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language, Cookie"},{"key":"Allow","value":"POST, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"122"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 2,\n    \"name\": \"Maamoun Haj Najeeb\",\n    \"mail\": \"maamoun3911@gmail.com\",\n    \"message\": \"Nothing matter\",\n    \"read\": false,\n    \"read_by\": null\n}"}],"_postman_id":"1f11f71c-d858-4e6c-bc55-fb76b3bb5dc3"},{"name":"update","id":"671f5751-2199-4375-ac5e-4a1e123f8efb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MTU4MjM1LCJpYXQiOjE3MDcxNTcwMzUsImp0aSI6IjNiYzYwMTYyNmYxNDQ0NjNiOTQ3ODgyMzU5NzYwYjIxIiwidXNlcl9pZCI6MjN9.LtwVDRMg265joM7QASWbAcGegGa87sbZOOdNfSreFbs","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"read\": true\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/api/v1/contact_us/2/","description":"<p>This endpoint is used to update the \"contact_us\" record with the specified ID.</p>\n<p><strong>This endpoint is for admins only.</strong></p>\n<p>The HTTP PATCH request should be made to http://127.0.0.1:8000/api/v1/contact_us/2/ with a payload in raw request body type. The payload should include the \"read\" field with a boolean value to indicate whether the contact message has been read.</p>\n<h3 id=\"request-body\">Request Body</h3>\n<ul>\n<li><code>read</code> (boolean): Indicates whether the contact message has been read.</li>\n</ul>\n<h3 id=\"response\">Response</h3>\n<p>Upon a successful update, the endpoint returns a status code of 202 and a JSON object with the updated contact_us record, including the \"read\" field reflecting the updated value.</p>\n<p>Example Response:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"id\": 0,\n  \"name\": \"\",\n  \"mail\": \"\",\n  \"message\": \"\",\n  \"read\": true,\n  \"read_by\": 0\n}\n\n</code></pre>\n","urlObject":{"path":["contact_us","2",""],"host":["http://127.0.0.1:8000/api/v1"],"query":[],"variable":[]}},"response":[{"id":"cd3dba3e-dd02-41d8-b391-5a2a35205e14","name":"update","originalRequest":{"method":"PATCH","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MTU4MjM1LCJpYXQiOjE3MDcxNTcwMzUsImp0aSI6IjNiYzYwMTYyNmYxNDQ0NjNiOTQ3ODgyMzU5NzYwYjIxIiwidXNlcl9pZCI6MjN9.LtwVDRMg265joM7QASWbAcGegGa87sbZOOdNfSreFbs","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"read\": true\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/api/v1/contact_us/2/"},"status":"Accepted","code":202,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 05 Feb 2024 18:21:32 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.11.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language"},{"key":"Allow","value":"GET, PUT, PATCH, DELETE, HEAD, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"119"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 2,\n    \"name\": \"Maamoun Haj Najeeb\",\n    \"mail\": \"maamoun3911@gmail.com\",\n    \"message\": \"Nothing matter\",\n    \"read\": true,\n    \"read_by\": 23\n}"}],"_postman_id":"671f5751-2199-4375-ac5e-4a1e123f8efb"}],"id":"276ad005-195f-4cc3-bc10-93037c471ccf","_postman_id":"276ad005-195f-4cc3-bc10-93037c471ccf","description":""},{"name":"list all","id":"7ce3fa93-a6a5-46b9-b7ac-f610ac35ea17","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MTU4MjM1LCJpYXQiOjE3MDcxNTcwMzUsImp0aSI6IjNiYzYwMTYyNmYxNDQ0NjNiOTQ3ODgyMzU5NzYwYjIxIiwidXNlcl9pZCI6MjN9.LtwVDRMg265joM7QASWbAcGegGa87sbZOOdNfSreFbs","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/contact_us/list/","description":"<p>This endpoint retrieves a list of contact us messages.</p>\n<p><strong>This endpoint is for admins only.</strong></p>\n<p>The response will be a JSON array containing objects with the following fields:</p>\n<ul>\n<li>id (number): The unique identifier for the message.</li>\n<li>name (string): The name of the sender.</li>\n<li>mail (string): The email address of the sender.</li>\n<li>message (string): The content of the message.</li>\n<li>read (boolean): Indicates whether the message has been read.</li>\n<li>read_by (number): The user ID who read the message.</li>\n</ul>\n<p>Example response:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">[\n    {\n        \"id\": 0,\n        \"name\": \"\",\n        \"mail\": \"\",\n        \"message\": \"\",\n        \"read\": true,\n        \"read_by\": 0\n    }\n]\n\n</code></pre>\n","urlObject":{"path":["contact_us","list",""],"host":["http://127.0.0.1:8000/api/v1"],"query":[],"variable":[]}},"response":[{"id":"f8d78d43-2803-462f-a1bd-8648935e9f46","name":"list all","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MTU4MjM1LCJpYXQiOjE3MDcxNTcwMzUsImp0aSI6IjNiYzYwMTYyNmYxNDQ0NjNiOTQ3ODgyMzU5NzYwYjIxIiwidXNlcl9pZCI6MjN9.LtwVDRMg265joM7QASWbAcGegGa87sbZOOdNfSreFbs","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/contact_us/list/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 05 Feb 2024 18:17:28 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.11.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language"},{"key":"Allow","value":"GET, HEAD, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"123"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 1,\n        \"name\": \"Maamoun Haj Najeeb\",\n        \"mail\": \"maamoun.haj.najeeb@gmail.com\",\n        \"message\": \"thank you\",\n        \"read\": true,\n        \"read_by\": 23\n    }\n]"}],"_postman_id":"7ce3fa93-a6a5-46b9-b7ac-f610ac35ea17"}],"id":"cf48e184-c7d9-4d3e-b672-999e387f1eae","_postman_id":"cf48e184-c7d9-4d3e-b672-999e387f1eae","description":""},{"name":"delivery","item":[{"name":"specific delivery","item":[{"name":"read","id":"bc83ce79-2439-4663-8b3c-accb4ed06e6e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MTQ0Mjk0LCJpYXQiOjE3MDcxNDMwOTQsImp0aSI6IjlhNDA2ODhkYTM0MDRlYThhN2FmZDFkZmRmOGRlZDk4IiwidXNlcl9pZCI6Mjl9.cLqgEGDH3NNyW0CgxyoqPSmVoQXJL94HR-2Jj-CSb0s","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/delivery/58/","description":"<p>This endpoint retrieves delivery details for a specific delivery by it's ID.</p>\n<p><strong>This endpoint is for authenticated users.</strong></p>\n<p>The response will include the order ID, location, product ID, product title, and delivery status. The status code for a successful request is 200, and the response is in JSON format.</p>\n<p>Example response:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">[\n    {\n        \"order_id\": 0,\n        \"location\": \"\",\n        \"product_id\": 0,\n        \"product_title\": \"\",\n        \"delivered\": true\n    }\n]\n\n</code></pre>\n","urlObject":{"protocol":"http","port":"8000","path":["api","v1","delivery","58",""],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[{"id":"696b275c-7c0a-49bf-83cf-5ea75a9eb885","name":"read","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MTQ0Mjk0LCJpYXQiOjE3MDcxNDMwOTQsImp0aSI6IjlhNDA2ODhkYTM0MDRlYThhN2FmZDFkZmRmOGRlZDk4IiwidXNlcl9pZCI6Mjl9.cLqgEGDH3NNyW0CgxyoqPSmVoQXJL94HR-2Jj-CSb0s","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/delivery/58/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 05 Feb 2024 14:30:06 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.11.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language"},{"key":"Allow","value":"GET, PUT, PATCH, DELETE, HEAD, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"94"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"order_id\": 58,\n        \"location\": \"None\",\n        \"product_id\": 28,\n        \"product_title\": \"unadol\",\n        \"delivered\": false\n    }\n]"}],"_postman_id":"bc83ce79-2439-4663-8b3c-accb4ed06e6e"},{"name":"delete","id":"6445d58b-ea6b-452c-b5b8-ad833858ee71","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MTQ1NTU2LCJpYXQiOjE3MDcxNDQzNTYsImp0aSI6IjE2Y2NlYzZhODc5MDQ3NmZhN2NiNDAzM2VkZWFiYTgyIiwidXNlcl9pZCI6Mjl9.wOUWZrCkECcbUc3oQXLhSHZc2TsFpRsYYxgGRdzKOk0","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/delivery/58/","description":"<p>This endpoint makes an HTTP DELETE request to delete a specific delivery record.</p>\n<p><strong>This endpoint is for admins only.</strong></p>\n<p>The response returns a status code of 204 with a Content-Type of text/xml.</p>\n","urlObject":{"protocol":"http","port":"8000","path":["api","v1","delivery","58",""],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[{"id":"ed4e60dd-8d0f-4aa8-a485-e46f7341ece2","name":"delete","originalRequest":{"method":"DELETE","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MTQ1MDAyLCJpYXQiOjE3MDcxNDM4MDIsImp0aSI6IjJkMjQxMTNlZGIwYjQzNjM4MjM1MDU1ZWUzYThiNmMwIiwidXNlcl9pZCI6MjN9.n3Ckzfk3lFhNWxWnlOUIZlf-P0maiQ5QLAOhDfyXqmU","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/delivery/58/"},"status":"No Content","code":204,"_postman_previewlanguage":"plain","header":[{"key":"Date","value":"Mon, 05 Feb 2024 14:44:37 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.11.0"},{"key":"Vary","value":"Accept, origin, Accept-Language"},{"key":"Allow","value":"GET, PUT, PATCH, DELETE, HEAD, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"0"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":null}],"_postman_id":"6445d58b-ea6b-452c-b5b8-ad833858ee71"},{"name":"create","id":"7096e405-a185-4d00-896e-ef2d18f031d7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MTQ1ODU0LCJpYXQiOjE3MDcxNDQ2NTQsImp0aSI6IjVkOWRjNmEwN2ViODRmYjViNjRjMWIwODQyZTAyZGY0IiwidXNlcl9pZCI6MzB9.kTso3Qf4zHLQmKxNHR54oB4-wAr3n58MlxYlhmcCH20","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"order\":58\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/api/v1/delivery/","description":"<h3 id=\"add-delivery\">Add Delivery</h3>\n<p>This endpoint allows you to add a new delivery.</p>\n<p><strong>This endpoint is for service providers and admins.</strong></p>\n<h4 id=\"request\">Request</h4>\n<ul>\n<li><p>Method: POST</p>\n</li>\n<li><p>URL: <code>http://127.0.0.1:8000/api/v1/delivery/</code></p>\n</li>\n<li><p>Body:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"order\": 0\n}\n\n</code></pre>\n</li>\n</ul>\n<h4 id=\"response\">Response</h4>\n<ul>\n<li><p>Status: 201</p>\n</li>\n<li><p>Content-Type: application/json</p>\n</li>\n<li><p>Body:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"order_id\": 0,\n  \"location\": \"\",\n  \"product_id\": 0,\n  \"product_title\": \"\",\n  \"delivered\": true\n}\n\n</code></pre>\n</li>\n</ul>\n<h4 id=\"example\">Example</h4>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"order_id\": 0,\n  \"location\": \"\",\n  \"product_id\": 0,\n  \"product_title\": \"\",\n  \"delivered\": true\n}\n\n</code></pre>\n","urlObject":{"protocol":"http","port":"8000","path":["api","v1","delivery",""],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[{"id":"387733aa-536c-48ef-8824-e49b766ff4e3","name":"create","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MTQ1ODU0LCJpYXQiOjE3MDcxNDQ2NTQsImp0aSI6IjVkOWRjNmEwN2ViODRmYjViNjRjMWIwODQyZTAyZGY0IiwidXNlcl9pZCI6MzB9.kTso3Qf4zHLQmKxNHR54oB4-wAr3n58MlxYlhmcCH20","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"order\":58\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/api/v1/delivery/"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 05 Feb 2024 14:54:04 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.11.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language"},{"key":"Allow","value":"GET, POST, HEAD, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"92"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"order_id\": 58,\n    \"location\": \"None\",\n    \"product_id\": 28,\n    \"product_title\": \"unadol\",\n    \"delivered\": false\n}"}],"_postman_id":"7096e405-a185-4d00-896e-ef2d18f031d7"},{"name":"patch","id":"623bec81-d6a5-4c06-b50e-ca9b36e6e93d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MTQ1ODU0LCJpYXQiOjE3MDcxNDQ2NTQsImp0aSI6IjVkOWRjNmEwN2ViODRmYjViNjRjMWIwODQyZTAyZGY0IiwidXNlcl9pZCI6MzB9.kTso3Qf4zHLQmKxNHR54oB4-wAr3n58MlxYlhmcCH20","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"delivered\":true\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/api/v1/delivery/58/","description":"<p>This endpoint makes an HTTP PATCH request to update the delivery status for a specific order delivery record.</p>\n<p><strong>This endpoint is for admins and service providers.</strong></p>\n<p>The request payload should be in raw format and include the \"delivered\" field with a boolean value to indicate the delivery status.</p>\n<h3 id=\"request-body\">Request Body</h3>\n<ul>\n<li><code>delivered</code> (boolean): Indicates the delivery status.</li>\n</ul>\n<h3 id=\"response\">Response</h3>\n<ul>\n<li>Status: 200</li>\n<li>Content-Type: application/json</li>\n</ul>\n<h4 id=\"response-body\">Response Body</h4>\n<ul>\n<li><code>order_id</code> (integer): The ID of the order.</li>\n<li><code>location</code> (string): The location of the delivery.</li>\n<li><code>product_id</code> (integer): The ID of the product.</li>\n<li><code>product_title</code> (string): The title of the product.</li>\n<li><code>delivered</code> (boolean): Indicates the updated delivery status.</li>\n</ul>\n<h4 id=\"example-response\">Example Response</h4>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"order_id\": 0,\n    \"product_id\": 0,\n    \"product_title\": \"\",\n    \"delivered\": true\n}\n\n</code></pre>\n","urlObject":{"protocol":"http","port":"8000","path":["api","v1","delivery","58",""],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[{"id":"174a52f5-6768-4667-a34f-d1bc8a292312","name":"patch","originalRequest":{"method":"PATCH","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MTQ1ODU0LCJpYXQiOjE3MDcxNDQ2NTQsImp0aSI6IjVkOWRjNmEwN2ViODRmYjViNjRjMWIwODQyZTAyZGY0IiwidXNlcl9pZCI6MzB9.kTso3Qf4zHLQmKxNHR54oB4-wAr3n58MlxYlhmcCH20","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"delivered\":true\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/api/v1/delivery/58/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 05 Feb 2024 14:55:14 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.11.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language"},{"key":"Allow","value":"GET, PUT, PATCH, DELETE, HEAD, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"91"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"order_id\": 58,\n    \"location\": \"None\",\n    \"product_id\": 28,\n    \"product_title\": \"unadol\",\n    \"delivered\": true\n}"}],"_postman_id":"623bec81-d6a5-4c06-b50e-ca9b36e6e93d"}],"id":"049fc87f-35fe-4aef-9277-deaecf4f2cc2","_postman_id":"049fc87f-35fe-4aef-9277-deaecf4f2cc2","description":""},{"name":"all deliveries","id":"3b516902-669f-41a9-a32d-a551c88187f8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MTQ1MDAyLCJpYXQiOjE3MDcxNDM4MDIsImp0aSI6IjJkMjQxMTNlZGIwYjQzNjM4MjM1MDU1ZWUzYThiNmMwIiwidXNlcl9pZCI6MjN9.n3Ckzfk3lFhNWxWnlOUIZlf-P0maiQ5QLAOhDfyXqmU","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/delivery/list_all/","description":"<p>This endpoint makes an HTTP GET request to retrieve list of all deliveries.</p>\n<p><strong>This endpoint is for admins only.</strong></p>\n<p>It returns a JSON array containing details such as order ID, location, product ID, product title, and delivery status. The response status is 200, and the content type is application/json.</p>\n<p>Example response:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">[{\"order_id\":0,\"product_id\":0,\"product_title\":\"\",\"delivered\":true}]\n\n</code></pre>\n","urlObject":{"protocol":"http","port":"8000","path":["api","v1","delivery","list_all",""],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[{"id":"44a9fca2-e355-4837-8de4-0e75af7bf045","name":"list deliveries","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MTQ0Mjk0LCJpYXQiOjE3MDcxNDMwOTQsImp0aSI6IjlhNDA2ODhkYTM0MDRlYThhN2FmZDFkZmRmOGRlZDk4IiwidXNlcl9pZCI6Mjl9.cLqgEGDH3NNyW0CgxyoqPSmVoQXJL94HR-2Jj-CSb0s","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/delivery/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 05 Feb 2024 14:25:37 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.11.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language"},{"key":"Allow","value":"GET, POST, HEAD, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"873"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"order_id\": 57,\n        \"location\": \"None\",\n        \"product_id\": 31,\n        \"product_title\": \"unadol joint\",\n        \"delivered\": false\n    },\n    {\n        \"order_id\": 58,\n        \"location\": \"None\",\n        \"product_id\": 28,\n        \"product_title\": \"unadol\",\n        \"delivered\": false\n    },\n    {\n        \"order_id\": 59,\n        \"location\": \"None\",\n        \"product_id\": 26,\n        \"product_title\": \"bebelait\",\n        \"delivered\": false\n    },\n    {\n        \"order_id\": 60,\n        \"location\": \"None\",\n        \"product_id\": 24,\n        \"product_title\": \"childs milk\",\n        \"delivered\": false\n    },\n    {\n        \"order_id\": 61,\n        \"location\": \"None\",\n        \"product_id\": 30,\n        \"product_title\": \"unadol cold and flu\",\n        \"delivered\": false\n    },\n    {\n        \"order_id\": 62,\n        \"location\": \"None\",\n        \"product_id\": 29,\n        \"product_title\": \"unadol extra\",\n        \"delivered\": false\n    },\n    {\n        \"order_id\": 63,\n        \"location\": \"None\",\n        \"product_id\": 27,\n        \"product_title\": \"gicouz\",\n        \"delivered\": false\n    },\n    {\n        \"order_id\": 65,\n        \"location\": \"None\",\n        \"product_id\": 25,\n        \"product_title\": \"Nan\",\n        \"delivered\": false\n    },\n    {\n        \"order_id\": 67,\n        \"location\": \"None\",\n        \"product_id\": 29,\n        \"product_title\": \"unadol extra\",\n        \"delivered\": false\n    }\n]"}],"_postman_id":"3b516902-669f-41a9-a32d-a551c88187f8"},{"name":"user deliveries list","id":"a8193995-7a8c-4c31-8e33-ea31f8212cdd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MTQ2Mzc0LCJpYXQiOjE3MDcxNDUxNzQsImp0aSI6ImM2YzZlZTM4NzJjMzRjMTdhYzA2ZTU0YTg0MzYxZjFhIiwidXNlcl9pZCI6MjN9.wcur8XqLcIeiJRfRiJH5mg1WRic7MeeDeMI_gJi1ce4","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/delivery/user/29","description":"<p>This API endpoint retrieves deliveries list for a user.</p>\n<p><em>If the admin want to see delivery list for a user you should add users ID to the end of the url (see example).</em></p>\n<p><strong>This endpoint is for authetnicated users.</strong></p>\n<p>Upon a successful GET request to the specified URL, it returns a JSON array containing details of the delivery, including order ID, location, product ID, product title, and delivery status.</p>\n<h3 id=\"example-response\">Example Response</h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">[{\"order_id\":0,\"product_id\":0,\"product_title\":\"\",\"delivered\":true}]\n\n</code></pre>\n","urlObject":{"protocol":"http","port":"8000","path":["api","v1","delivery","user","29"],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[{"id":"2d4c81ad-558c-4074-a3ac-8a455b17cbef","name":"user deliveries list","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MTQ2MjMzLCJpYXQiOjE3MDcxNDUwMzMsImp0aSI6IjFlYTg5YjM2NjYwNjQ4NTliODRkNGVjZDI4ZGI5MmE1IiwidXNlcl9pZCI6Mjl9.EuYJJD7zW16xUdcDFalM1mz-QrXCqHnyijqdoO5trBo","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/delivery/user/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 05 Feb 2024 14:57:26 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.11.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language"},{"key":"Allow","value":"OPTIONS, GET"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"484"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"order_id\": 57,\n        \"location\": \"None\",\n        \"product_id\": 31,\n        \"product_title\": \"unadol joint\",\n        \"delivered\": false\n    },\n    {\n        \"order_id\": 58,\n        \"location\": \"None\",\n        \"product_id\": 28,\n        \"product_title\": \"unadol\",\n        \"delivered\": true\n    },\n    {\n        \"order_id\": 59,\n        \"location\": \"None\",\n        \"product_id\": 26,\n        \"product_title\": \"bebelait\",\n        \"delivered\": false\n    },\n    {\n        \"order_id\": 60,\n        \"location\": \"None\",\n        \"product_id\": 24,\n        \"product_title\": \"childs milk\",\n        \"delivered\": false\n    },\n    {\n        \"order_id\": 67,\n        \"location\": \"None\",\n        \"product_id\": 29,\n        \"product_title\": \"unadol extra\",\n        \"delivered\": false\n    }\n]"},{"id":"11fd623b-cf8f-4d1e-9a40-362001c4374b","name":"user deliveries list (for admin)","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MTQ2Mzc0LCJpYXQiOjE3MDcxNDUxNzQsImp0aSI6ImM2YzZlZTM4NzJjMzRjMTdhYzA2ZTU0YTg0MzYxZjFhIiwidXNlcl9pZCI6MjN9.wcur8XqLcIeiJRfRiJH5mg1WRic7MeeDeMI_gJi1ce4","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/delivery/user/29"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 05 Feb 2024 14:59:50 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.11.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language"},{"key":"Allow","value":"OPTIONS, GET"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"484"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"order_id\": 57,\n        \"location\": \"None\",\n        \"product_id\": 31,\n        \"product_title\": \"unadol joint\",\n        \"delivered\": false\n    },\n    {\n        \"order_id\": 58,\n        \"location\": \"None\",\n        \"product_id\": 28,\n        \"product_title\": \"unadol\",\n        \"delivered\": true\n    },\n    {\n        \"order_id\": 59,\n        \"location\": \"None\",\n        \"product_id\": 26,\n        \"product_title\": \"bebelait\",\n        \"delivered\": false\n    },\n    {\n        \"order_id\": 60,\n        \"location\": \"None\",\n        \"product_id\": 24,\n        \"product_title\": \"childs milk\",\n        \"delivered\": false\n    },\n    {\n        \"order_id\": 67,\n        \"location\": \"None\",\n        \"product_id\": 29,\n        \"product_title\": \"unadol extra\",\n        \"delivered\": false\n    }\n]"}],"_postman_id":"a8193995-7a8c-4c31-8e33-ea31f8212cdd"},{"name":"providers deliveries","id":"dea33b3d-fc48-41da-a20c-ef6c02b49668","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MTQ2NjMwLCJpYXQiOjE3MDcxNDU0MzAsImp0aSI6IjhkMzA0YmNhOGYxMzQ2YmI4NjcyZjliYjcyZmQzYjBlIiwidXNlcl9pZCI6MjN9.r7g8DpkHAD3hKWqes1wlXQ9ttvN5brv8g2KZ-4ySV7I","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/delivery/provider/31","description":"<p>This endpoint retrieves the deliveries list for specific service provider.</p>\n<p><em>If the admin wants to see the service providers deliveries list you should add the service provider ID at the end of the url.</em></p>\n<p><strong>This endpoint is for admins &amp; service providers.</strong></p>\n<p>The response will include a status code of 200, and the data will be in JSON format with details such as order ID, location, product ID, product title, and delivery status.</p>\n","urlObject":{"protocol":"http","port":"8000","path":["api","v1","delivery","provider","31"],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[{"id":"d12d6a87-71c2-4469-bd40-ac6f9cf7c76f","name":"providers deliveries list","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MTQ2NDY1LCJpYXQiOjE3MDcxNDUyNjUsImp0aSI6IjIwY2Y1MTEzMGZlYzRiMjFhZGIxMGI3MDIzMjIzMzNiIiwidXNlcl9pZCI6MzB9.vWRFgmJpbpWnIPbJz3Rqz4rurolHueHGJPEd8gdJTfo","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/delivery/provider/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 05 Feb 2024 15:01:18 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.11.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language"},{"key":"Allow","value":"OPTIONS, GET"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"496"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"order_id\": 61,\n        \"location\": \"None\",\n        \"product_id\": 30,\n        \"product_title\": \"unadol cold and flu\",\n        \"delivered\": false\n    },\n    {\n        \"order_id\": 57,\n        \"location\": \"None\",\n        \"product_id\": 31,\n        \"product_title\": \"unadol joint\",\n        \"delivered\": false\n    },\n    {\n        \"order_id\": 58,\n        \"location\": \"None\",\n        \"product_id\": 28,\n        \"product_title\": \"unadol\",\n        \"delivered\": true\n    },\n    {\n        \"order_id\": 62,\n        \"location\": \"None\",\n        \"product_id\": 29,\n        \"product_title\": \"unadol extra\",\n        \"delivered\": false\n    },\n    {\n        \"order_id\": 67,\n        \"location\": \"None\",\n        \"product_id\": 29,\n        \"product_title\": \"unadol extra\",\n        \"delivered\": false\n    }\n]"},{"id":"92e17922-f9fb-4aa8-998d-e5ffe03a2567","name":"providers deliveries list (for admins)","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MTQ2NjMwLCJpYXQiOjE3MDcxNDU0MzAsImp0aSI6IjhkMzA0YmNhOGYxMzQ2YmI4NjcyZjliYjcyZmQzYjBlIiwidXNlcl9pZCI6MjN9.r7g8DpkHAD3hKWqes1wlXQ9ttvN5brv8g2KZ-4ySV7I","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/delivery/provider/31"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 05 Feb 2024 15:04:02 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.11.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language"},{"key":"Allow","value":"OPTIONS, GET"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"377"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"order_id\": 59,\n        \"location\": \"None\",\n        \"product_id\": 26,\n        \"product_title\": \"bebelait\",\n        \"delivered\": false\n    },\n    {\n        \"order_id\": 63,\n        \"location\": \"None\",\n        \"product_id\": 27,\n        \"product_title\": \"gicouz\",\n        \"delivered\": false\n    },\n    {\n        \"order_id\": 60,\n        \"location\": \"None\",\n        \"product_id\": 24,\n        \"product_title\": \"childs milk\",\n        \"delivered\": false\n    },\n    {\n        \"order_id\": 65,\n        \"location\": \"None\",\n        \"product_id\": 25,\n        \"product_title\": \"Nan\",\n        \"delivered\": false\n    }\n]"}],"_postman_id":"dea33b3d-fc48-41da-a20c-ef6c02b49668"}],"id":"cc06d3f3-8c4e-4faa-a52d-ac1835ec9d6f","_postman_id":"cc06d3f3-8c4e-4faa-a52d-ac1835ec9d6f","description":""},{"name":"notifications","item":[{"name":"specific notification","item":[{"name":"get","id":"f850d28c-5452-44bf-a7f8-6863d3c1685b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA2OTg4NjY5LCJpYXQiOjE3MDY5ODc0NjksImp0aSI6IjcwZDhiMzI2NDQzYTQ1ZDBiM2ExZGIzNmI5ZjQyMTJjIiwidXNlcl9pZCI6MjN9.W8cvX5s-c1b8HJLAjOqmmMpBH_ELnvOubzVtPqDpQxE","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/notifications/187/","description":"<p>This endpoint sends an HTTP GET request to retrieve a notification with the specified ID.</p>\n<p><strong>This endpoint is for authenticated users.</strong></p>\n<p>The response will be in JSON format and will include the notification details such as ID, sender, sender type, receiver, receiver type, read status, and content.</p>\n<p>Example response:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">[\n    {\n        \"id\": 0,\n        \"sender\": \"m\",\n        \"sender_type\": \"User\",\n        \"receiver\": \"n\",\n        \"receiver_type\": \"System\",\n        \"read\": true,\n        \"content\": \"a\"\n    }\n]\n\n</code></pre>\n","urlObject":{"protocol":"http","port":"8000","path":["api","v1","notifications","187",""],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[{"id":"acd15278-43b3-45e6-b6fd-85fa8f4d8b83","name":"ServiceProvider notifications","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA2OTExODU1LCJpYXQiOjE3MDY5MTA2NTUsImp0aSI6IjdiNTZiYWRlNDAzODRiZjc5NjUzZTYxMzAzY2Q5MDdjIiwidXNlcl9pZCI6MX0.VN-pCJycAMsfijWAQkbI7NyBmnOJy8VNXUjxYenI6Ow","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/notifications/1"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 02 Feb 2024 21:52:16 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.9.10"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language"},{"key":"Allow","value":"GET, PUT, PATCH, DELETE, HEAD, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"111"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 1,\n        \"sender\": \"m\",\n        \"sender_type\": \"User\",\n        \"receiver\": \"n\",\n        \"reveiver_type\": \"System\",\n        \"read\": false,\n        \"content\": \"a\"\n    }\n]"}],"_postman_id":"f850d28c-5452-44bf-a7f8-6863d3c1685b"},{"name":"delete","id":"4ed1fb35-87f5-4a0c-b71d-514bbab3e45e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA2OTg4NjY5LCJpYXQiOjE3MDY5ODc0NjksImp0aSI6IjcwZDhiMzI2NDQzYTQ1ZDBiM2ExZGIzNmI5ZjQyMTJjIiwidXNlcl9pZCI6MjN9.W8cvX5s-c1b8HJLAjOqmmMpBH_ELnvOubzVtPqDpQxE","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/notifications/187/","description":"<p>This endpoint sends an HTTP DELETE request to the specified URL to delete a notification with the specified ID. Upon successful deletion, the server returns a 204 status code with no content in text/xml format.</p>\n<p><strong>This endpoint is for authenticated users.</strong></p>\n","urlObject":{"protocol":"http","port":"8000","path":["api","v1","notifications","187",""],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[],"_postman_id":"4ed1fb35-87f5-4a0c-b71d-514bbab3e45e"},{"name":"patch","id":"ab494df1-a40f-4851-b829-ffaebb2f0a2d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA2OTg4NjY5LCJpYXQiOjE3MDY5ODc0NjksImp0aSI6IjcwZDhiMzI2NDQzYTQ1ZDBiM2ExZGIzNmI5ZjQyMTJjIiwidXNlcl9pZCI6MjN9.W8cvX5s-c1b8HJLAjOqmmMpBH_ELnvOubzVtPqDpQxE","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"read\": true\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/api/v1/notifications/187/","description":"<p>This endpoint sends an HTTP PATCH request to update the notification with the specified ID.</p>\n<p><strong>This endpoint is for authenticated uses.</strong></p>\n<p>The request payload should be in raw format and include the \"read\" key with a boolean value to indicate whether the notification has been read.</p>\n<h3 id=\"request-body\">Request Body</h3>\n<ul>\n<li>raw (application/json)<ul>\n<li>read (boolean): Indicates whether the notification has been read.</li>\n</ul>\n</li>\n</ul>\n<h3 id=\"response\">Response</h3>\n<p>Upon a successful update, the endpoint returns a status code of 200 along with a JSON object containing the updated notification details, including the ID, sender, receiver, read status, and content.</p>\n","urlObject":{"protocol":"http","port":"8000","path":["api","v1","notifications","187",""],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[],"_postman_id":"ab494df1-a40f-4851-b829-ffaebb2f0a2d"}],"id":"d63b71a9-a8f2-4ba8-aa3d-ff4f57399e76","_postman_id":"d63b71a9-a8f2-4ba8-aa3d-ff4f57399e76","description":""},{"name":"All notifications","id":"1de109ca-187e-44f2-97f8-8e268cbc3024","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA2OTg4NjY5LCJpYXQiOjE3MDY5ODc0NjksImp0aSI6IjcwZDhiMzI2NDQzYTQ1ZDBiM2ExZGIzNmI5ZjQyMTJjIiwidXNlcl9pZCI6MjN9.W8cvX5s-c1b8HJLAjOqmmMpBH_ELnvOubzVtPqDpQxE","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/notifications/all/","description":"<p>This endpoint retrieves all notifications in the system.</p>\n<p><strong>This endpoint is for admins only.</strong></p>\n<p>The response will include an array of notification objects, each containing the following fields:</p>\n<ul>\n<li>id (number): The unique identifier for the notification</li>\n<li>sender (string): The sender of the notification</li>\n<li>sender_type (string): The type of the sender</li>\n<li>receiver (string): The receiver of the notification</li>\n<li>receiver_type (string): The type of the receiver</li>\n<li>read (boolean): Indicates whether the notification has been read</li>\n<li>content (string): The content of the notification</li>\n</ul>\n","urlObject":{"protocol":"http","port":"8000","path":["api","v1","notifications","all",""],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[{"id":"002a069c-fa79-4185-adf2-10835f811318","name":"All notifications","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA2OTExODU1LCJpYXQiOjE3MDY5MTA2NTUsImp0aSI6IjdiNTZiYWRlNDAzODRiZjc5NjUzZTYxMzAzY2Q5MDdjIiwidXNlcl9pZCI6MX0.VN-pCJycAMsfijWAQkbI7NyBmnOJy8VNXUjxYenI6Ow","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/notifications/all"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 02 Feb 2024 21:51:07 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.9.10"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language"},{"key":"Allow","value":"GET, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"111"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 1,\n        \"sender\": \"m\",\n        \"sender_type\": \"User\",\n        \"receiver\": \"n\",\n        \"reveiver_type\": \"System\",\n        \"read\": false,\n        \"content\": \"a\"\n    }\n]"}],"_postman_id":"1de109ca-187e-44f2-97f8-8e268cbc3024"},{"name":"notifications for specific user","id":"6d1b1308-154c-42fa-8387-8f16f704f816","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA2OTg4NTAwLCJpYXQiOjE3MDY5ODczMDAsImp0aSI6IjI0YTQzZDEzNGEyYTQ1MTRhMTRjMjQyYjU4NGY3NDhmIiwidXNlcl9pZCI6Mjl9.hlPsyRgO3UmKkZ5fCqUgzChy0QJWk1bsKq9kCC4w-us","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/notifications/specific_user/","description":"<p>This endpoint makes an HTTP GET request to retrieve notifications for a specific user (the authenticated user).</p>\n<p>This endpoint is for everybody.</p>\n<p>The response will contain a JSON array of notification objects, each including the ID, sender, sender type, receiver, receiver type, read status, and content.</p>\n<p>Example response:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">[\n    {\n        \"id\": 0,\n        \"sender\": \"\",\n        \"sender_type\": \"\",\n        \"receiver\": \"\",\n        \"receiver_type\": \"\",\n        \"read\": true,\n        \"content\": \"\"\n    }\n]\n\n</code></pre>\n","urlObject":{"protocol":"http","port":"8000","path":["api","v1","notifications","specific_user",""],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[{"id":"1d144a7f-143c-4b0a-a898-119341c0a92e","name":"System notifications","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzAzNDM1NTkwLCJpYXQiOjE3MDM0MzQzOTAsImp0aSI6IjhmYTE2ZGYyMWIzYjQ0Y2ZhOThlNjJhNzA5ODMzYjc5IiwidXNlcl9pZCI6MX0.AY-ymK-p8YRQbfEqqS-dEI6T7zQa3VzdDZR9m3qaFn8","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/notifications/usertype/System"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sun, 24 Dec 2023 16:15:07 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.9.10"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language"},{"key":"Allow","value":"OPTIONS, GET"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"141"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"sender\": \"System\",\n        \"sender_type\": \"System\",\n        \"receiver\": \"System\",\n        \"reveiver_type\": \"System\",\n        \"read\": false,\n        \"content\": \"A new rejected order added\"\n    }\n]"}],"_postman_id":"6d1b1308-154c-42fa-8387-8f16f704f816"}],"id":"574608ca-8207-4517-9959-e736feda3aba","_postman_id":"574608ca-8207-4517-9959-e736feda3aba","description":""},{"name":"orders","item":[{"name":"cart","item":[{"name":"specific cart","item":[{"name":"get","id":"5b600ddb-f5d0-4eed-b628-08312b678d32","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MDYwMDQ4LCJpYXQiOjE3MDcwNTg4NDgsImp0aSI6IjRiYjU0YmE4OTI0ZTRhNTdhYmMzYTQ4NzM3NTIwMjU0IiwidXNlcl9pZCI6Mjl9.XepZyOXn_Z-ydE0DgDQXFdcc7xFNkcr5naAGJiN0FtQ","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/orders/cart/16/","description":"<p>This endpoint retrieves the details of the item in the cart with the specific ID.</p>\n<p><strong>This endpoint for authenticated users.</strong></p>\n<p>The response will contain an array of objects, each representing an item in the cart. Each object includes the cart ID, patient ID, product ID, product name, quantity, location, and note. The response will have a status code of 200 upon successful execution.</p>\n<p>Example response:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">[\n    {\n        \"cart_id\": 0,\n        \"patient_id\": 0,\n        \"product_id\": 0,\n        \"product_name\": \"\",\n        \"quantity\": 0,\n        \"location\": \"\",\n        \"note\": \"\"\n    }\n]\n\n</code></pre>\n","urlObject":{"path":["orders","cart","16",""],"host":["http://127.0.0.1:8000/api/v1"],"query":[],"variable":[]}},"response":[{"id":"903e87c1-d925-492d-97d5-b030249d6d6e","name":"get","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MDYwMDQ4LCJpYXQiOjE3MDcwNTg4NDgsImp0aSI6IjRiYjU0YmE4OTI0ZTRhNTdhYmMzYTQ4NzM3NTIwMjU0IiwidXNlcl9pZCI6Mjl9.XepZyOXn_Z-ydE0DgDQXFdcc7xFNkcr5naAGJiN0FtQ","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/orders/cart/16/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sun, 04 Feb 2024 15:12:51 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.11.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language"},{"key":"Allow","value":"GET, PUT, PATCH, DELETE, HEAD, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"153"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"cart_id\": 16,\n        \"patient_id\": 29,\n        \"product_id\": 25,\n        \"product_name\": \"Nan\",\n        \"quantity\": 5,\n        \"location\": \"SRID=4326;POINT (32.6541 -987.256)\",\n        \"note\": \"Hello, world!\"\n    }\n]"}],"_postman_id":"5b600ddb-f5d0-4eed-b628-08312b678d32"},{"name":"delete","id":"d6fcd2a4-d9d7-4ff9-ba3e-218ac8b12e4f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MDYwMDQ4LCJpYXQiOjE3MDcwNTg4NDgsImp0aSI6IjRiYjU0YmE4OTI0ZTRhNTdhYmMzYTQ4NzM3NTIwMjU0IiwidXNlcl9pZCI6Mjl9.XepZyOXn_Z-ydE0DgDQXFdcc7xFNkcr5naAGJiN0FtQ","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/orders/cart/14/","description":"<p>This HTTP DELETE request is used to remove the order with the specific ID from the cart.</p>\n<p><strong>This endpoint is for authenticated users.</strong></p>\n<p>Upon successful execution, the server returns a 204 status code with no content in text/xml format. There are no specific examples of responses provided for this request.</p>\n","urlObject":{"path":["orders","cart","14",""],"host":["http://127.0.0.1:8000/api/v1"],"query":[],"variable":[]}},"response":[{"id":"fc4cffb0-2471-4c53-80d0-efb848ecc643","name":"delete","originalRequest":{"method":"DELETE","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MDYwMDQ4LCJpYXQiOjE3MDcwNTg4NDgsImp0aSI6IjRiYjU0YmE4OTI0ZTRhNTdhYmMzYTQ4NzM3NTIwMjU0IiwidXNlcl9pZCI6Mjl9.XepZyOXn_Z-ydE0DgDQXFdcc7xFNkcr5naAGJiN0FtQ","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/orders/cart/14/"},"status":"No Content","code":204,"_postman_previewlanguage":"plain","header":[{"key":"Date","value":"Sun, 04 Feb 2024 15:13:24 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.11.0"},{"key":"Vary","value":"Accept, origin, Accept-Language"},{"key":"Allow","value":"GET, PUT, PATCH, DELETE, HEAD, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"0"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":null}],"_postman_id":"d6fcd2a4-d9d7-4ff9-ba3e-218ac8b12e4f"},{"name":"create","id":"7a518825-9bdb-47d5-a524-9d80ecc0c29f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MDYwMDQ4LCJpYXQiOjE3MDcwNTg4NDgsImp0aSI6IjRiYjU0YmE4OTI0ZTRhNTdhYmMzYTQ4NzM3NTIwMjU0IiwidXNlcl9pZCI6Mjl9.XepZyOXn_Z-ydE0DgDQXFdcc7xFNkcr5naAGJiN0FtQ","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"product\": 29,\n  \"location\": \"SRID=4326;POINT (32.6541 -987.256)\",\n  \"note\": \"no note needed\",\n  \"quantity\": 89\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"http://127.0.0.1:8000/api/v1/orders/cart/","description":"<h3 id=\"add-a-product-to-cart\">Add a Product to Cart</h3>\n<p>This endpoint allows you to add a item to the cart.</p>\n<p><strong>This endpoint is for authenticated users.</strong></p>\n<h4 id=\"request-body\">Request Body</h4>\n<ul>\n<li><code>product</code> (number, required): The ID of the product to be added to the cart.</li>\n<li><code>location</code> (string, optional): The location for the product.</li>\n<li><code>note</code> (string, optional): Any additional notes for the product.</li>\n<li><code>quantity</code> (number, required): The quantity of the product to be added to the cart.</li>\n</ul>\n<h4 id=\"response\">Response</h4>\n<ul>\n<li>Status: 201 Created</li>\n<li>Content-Type: application/json</li>\n</ul>\n<p>Example response:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"cart_id\": 0,\n    \"patient_id\": 0,\n    \"product_id\": 0,\n    \"product_name\": \"\",\n    \"quantity\": 0,\n    \"location\": \"\",\n    \"note\": \"\"\n}\n\n</code></pre>\n","urlObject":{"path":["orders","cart",""],"host":["http://127.0.0.1:8000/api/v1"],"query":[],"variable":[]}},"response":[{"id":"d902a921-6f96-42f2-a29f-6c0beff66098","name":"create","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MDYwMDQ4LCJpYXQiOjE3MDcwNTg4NDgsImp0aSI6IjRiYjU0YmE4OTI0ZTRhNTdhYmMzYTQ4NzM3NTIwMjU0IiwidXNlcl9pZCI6Mjl9.XepZyOXn_Z-ydE0DgDQXFdcc7xFNkcr5naAGJiN0FtQ","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"product\": 29,\n  \"location\": \"SRID=4326;POINT (32.6541 -987.256)\",\n  \"note\": \"no note needed\",\n  \"quantity\": 89\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"http://127.0.0.1:8000/api/v1/orders/cart/"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sun, 04 Feb 2024 15:16:02 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.11.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language"},{"key":"Allow","value":"GET, POST, HEAD, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"162"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"cart_id\": 17,\n    \"patient_id\": 29,\n    \"product_id\": 29,\n    \"product_name\": \"unadol extra\",\n    \"quantity\": 89,\n    \"location\": \"SRID=4326;POINT (32.6541 -987.256)\",\n    \"note\": \"no note needed\"\n}"}],"_postman_id":"7a518825-9bdb-47d5-a524-9d80ecc0c29f"},{"name":"update","id":"25c4d97c-c395-4db6-b662-a5ffb4d28836","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MDYwMDQ4LCJpYXQiOjE3MDcwNTg4NDgsImp0aSI6IjRiYjU0YmE4OTI0ZTRhNTdhYmMzYTQ4NzM3NTIwMjU0IiwidXNlcl9pZCI6Mjl9.XepZyOXn_Z-ydE0DgDQXFdcc7xFNkcr5naAGJiN0FtQ","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"quantity\": 5\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"http://127.0.0.1:8000/api/v1/orders/cart/16/","description":"<h1 id=\"update-cart-order\">Update Cart Order</h1>\n<p>This endpoint is used to update the details of a specific cart item.</p>\n<p><strong>This endpoint is for authenticated users.</strong></p>\n<h2 id=\"request\">Request</h2>\n<ul>\n<li>Method: PATCH</li>\n<li>URL: http://127.0.0.1:8000/api/v1/orders/cart/16/</li>\n<li>Headers:<ul>\n<li>Content-Type: application/json</li>\n</ul>\n</li>\n<li>Body:<ul>\n<li>quantity (number): The updated quantity of the product in the cart.</li>\n</ul>\n</li>\n</ul>\n<h2 id=\"response\">Response</h2>\n<ul>\n<li><p>Status: 202</p>\n</li>\n<li><p>Headers:</p>\n<ul>\n<li>Content-Type: application/json</li>\n</ul>\n</li>\n<li><p>Body:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"cart_id\": 0,\n  \"patient_id\": 0,\n  \"product_id\": 0,\n  \"product_name\": \"\",\n  \"quantity\": 0,\n  \"location\": \"\",\n  \"note\": \"\"\n}\n\n</code></pre>\n<p>  The response includes the updated details of the cart order, such as the cart ID, patient ID, product ID, product name, quantity, location, and note.</p>\n</li>\n</ul>\n<h2 id=\"example\">Example</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"product\": \"\",\n  \"patient\": \"\",\n  \"id\": \"\",\n  \"quantity\": \"\"\n}\n\n</code></pre>\n","urlObject":{"path":["orders","cart","16",""],"host":["http://127.0.0.1:8000/api/v1"],"query":[],"variable":[]}},"response":[{"id":"ce77c93b-2d3f-4d6a-94a8-8e3d17592f98","name":"update","originalRequest":{"method":"PATCH","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MDYwMDQ4LCJpYXQiOjE3MDcwNTg4NDgsImp0aSI6IjRiYjU0YmE4OTI0ZTRhNTdhYmMzYTQ4NzM3NTIwMjU0IiwidXNlcl9pZCI6Mjl9.XepZyOXn_Z-ydE0DgDQXFdcc7xFNkcr5naAGJiN0FtQ","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"quantity\": 5\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"http://127.0.0.1:8000/api/v1/orders/cart/16/"},"status":"Accepted","code":202,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sun, 04 Feb 2024 15:12:07 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.11.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language"},{"key":"Allow","value":"GET, PUT, PATCH, DELETE, HEAD, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"151"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"cart_id\": 16,\n    \"patient_id\": 29,\n    \"product_id\": 25,\n    \"product_name\": \"Nan\",\n    \"quantity\": 5,\n    \"location\": \"SRID=4326;POINT (32.6541 -987.256)\",\n    \"note\": \"Hello, world!\"\n}"}],"_postman_id":"25c4d97c-c395-4db6-b662-a5ffb4d28836"}],"id":"feefba07-f977-4744-a510-a6e3cde107a4","_postman_id":"feefba07-f977-4744-a510-a6e3cde107a4","description":""},{"name":"user cart","id":"7af445a0-37d4-4b9f-b45e-1c8d925c0777","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MDYxMzYzLCJpYXQiOjE3MDcwNjAxNjMsImp0aSI6IjU2YzhhZDIwNzlmZTQ2OWFhNTFlNWIzNGQxNTBmMTYyIiwidXNlcl9pZCI6MjN9.k02iMcuHz3mcS5rTUrpglkYHPkcrPFBPxvkIFI_CrMc","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/orders/cart/user/23","description":"<p>This endpoint retrieves the details of the items in the user's cart.</p>\n<p><strong>If the admin need to know the contents of a specific user cart, you should add user id in the last of the url (see examples).</strong></p>\n<p><strong>This endpoint is for authenticated users.</strong></p>\n<p>The response will contain an array of objects, where each object represents an item in the cart and includes details such as cart_id, patient_id, product_id, product_name, quantity, location, and note.</p>\n<p>Example response:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">[\n    {\n        \"cart_id\": 0,\n        \"patient_id\": 0,\n        \"product_id\": 0,\n        \"product_name\": \"\",\n        \"quantity\": 0,\n        \"location\": \"\",\n        \"note\": null\n    }\n]\n\n</code></pre>\n","urlObject":{"path":["orders","cart","user","23"],"host":["http://127.0.0.1:8000/api/v1"],"query":[],"variable":[]}},"response":[{"id":"b4625705-d858-4a9e-8b26-71ba0fd68ac0","name":"user cart (for users)","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MDYwMDQ4LCJpYXQiOjE3MDcwNTg4NDgsImp0aSI6IjRiYjU0YmE4OTI0ZTRhNTdhYmMzYTQ4NzM3NTIwMjU0IiwidXNlcl9pZCI6Mjl9.XepZyOXn_Z-ydE0DgDQXFdcc7xFNkcr5naAGJiN0FtQ","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/orders/cart/user/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sun, 04 Feb 2024 15:19:21 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.11.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language"},{"key":"Allow","value":"GET, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"781"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"cart_id\": 6,\n        \"patient_id\": 29,\n        \"product_id\": 31,\n        \"product_name\": \"unadol joint\",\n        \"quantity\": 5,\n        \"location\": \"None\",\n        \"note\": null\n    },\n    {\n        \"cart_id\": 7,\n        \"patient_id\": 29,\n        \"product_id\": 28,\n        \"product_name\": \"unadol\",\n        \"quantity\": 4,\n        \"location\": \"None\",\n        \"note\": null\n    },\n    {\n        \"cart_id\": 8,\n        \"patient_id\": 29,\n        \"product_id\": 26,\n        \"product_name\": \"bebelait\",\n        \"quantity\": 3,\n        \"location\": \"None\",\n        \"note\": null\n    },\n    {\n        \"cart_id\": 9,\n        \"patient_id\": 29,\n        \"product_id\": 24,\n        \"product_name\": \"childs milk\",\n        \"quantity\": 2,\n        \"location\": \"None\",\n        \"note\": null\n    },\n    {\n        \"cart_id\": 16,\n        \"patient_id\": 29,\n        \"product_id\": 25,\n        \"product_name\": \"Nan\",\n        \"quantity\": 5,\n        \"location\": \"SRID=4326;POINT (32.6541 -987.256)\",\n        \"note\": \"Hello, world!\"\n    },\n    {\n        \"cart_id\": 17,\n        \"patient_id\": 29,\n        \"product_id\": 29,\n        \"product_name\": \"unadol extra\",\n        \"quantity\": 89,\n        \"location\": \"SRID=4326;POINT (32.6541 -987.256)\",\n        \"note\": \"no note needed\"\n    }\n]"},{"id":"e9947add-af3e-480d-acad-df7e22bded4c","name":"user cart (for admins)","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MDYxMzYzLCJpYXQiOjE3MDcwNjAxNjMsImp0aSI6IjU2YzhhZDIwNzlmZTQ2OWFhNTFlNWIzNGQxNTBmMTYyIiwidXNlcl9pZCI6MjN9.k02iMcuHz3mcS5rTUrpglkYHPkcrPFBPxvkIFI_CrMc","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/orders/cart/user/23"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sun, 04 Feb 2024 15:23:03 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.11.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language"},{"key":"Allow","value":"GET, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"473"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"cart_id\": 10,\n        \"patient_id\": 23,\n        \"product_id\": 30,\n        \"product_name\": \"unadol cold and flu\",\n        \"quantity\": 1,\n        \"location\": \"None\",\n        \"note\": null\n    },\n    {\n        \"cart_id\": 11,\n        \"patient_id\": 23,\n        \"product_id\": 29,\n        \"product_name\": \"unadol extra\",\n        \"quantity\": 5,\n        \"location\": \"None\",\n        \"note\": null\n    },\n    {\n        \"cart_id\": 12,\n        \"patient_id\": 23,\n        \"product_id\": 27,\n        \"product_name\": \"gicouz\",\n        \"quantity\": 4,\n        \"location\": \"None\",\n        \"note\": null\n    },\n    {\n        \"cart_id\": 13,\n        \"patient_id\": 23,\n        \"product_id\": 25,\n        \"product_name\": \"Nan\",\n        \"quantity\": 3,\n        \"location\": \"None\",\n        \"note\": null\n    }\n]"}],"_postman_id":"7af445a0-37d4-4b9f-b45e-1c8d925c0777"}],"id":"e77e1dbb-463f-46f8-a472-f81bac989544","_postman_id":"e77e1dbb-463f-46f8-a472-f81bac989544","description":""},{"name":"order items","item":[{"name":"specific order item","item":[{"name":"get","id":"96dc7719-bdc4-47d6-971f-4014e51e3654","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MTIxODY0LCJpYXQiOjE3MDcxMjA2NjQsImp0aSI6ImNmYjA5MGU5OWY5MjQyMGZhMzY1NTEyMTFkMzViNTQxIiwidXNlcl9pZCI6Mjl9.EpBD382QRtksNFDqyTBtwRdJpDH4nYabXl8EFr74ZEw","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/orders/items/67/","description":"<p>This endpoint retrieves details of a specific order item.</p>\n<p>This endpoint is for authenticated users.</p>\n<p>The response will be in JSON format with a 200 status code.</p>\n<p>An example response for this request would be an array containing objects with keys such as \"id\", \"order_id\", \"user_id\", \"user_email\", \"location_point\", \"product_id\", \"product_title\", \"quantity\", \"unit_price\", \"status\", \"note\", \"location\", and \"last_update\", each with corresponding values. The user_email, location_point, product_title, status, note, location, and last_update may contain empty strings.</p>\n","urlObject":{"path":["orders","items","67",""],"host":["http://127.0.0.1:8000/api/v1"],"query":[],"variable":[]}},"response":[{"id":"218838b1-348d-474a-94ce-89b1f258307f","name":"get","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MTIxODY0LCJpYXQiOjE3MDcxMjA2NjQsImp0aSI6ImNmYjA5MGU5OWY5MjQyMGZhMzY1NTEyMTFkMzViNTQxIiwidXNlcl9pZCI6Mjl9.EpBD382QRtksNFDqyTBtwRdJpDH4nYabXl8EFr74ZEw","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/orders/items/67/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 05 Feb 2024 08:11:25 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.11.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language"},{"key":"Allow","value":"GET, PUT, PATCH, DELETE, HEAD, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"322"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 67,\n        \"order_id\": 35,\n        \"user_id\": 29,\n        \"user_email\": \"maamoun.h.najeeb@gmail.com\",\n        \"location_point\": \"SRID=4326;POINT (-19.432432 32.345945)\",\n        \"product_id\": 29,\n        \"product_title\": \"unadol extra\",\n        \"quantity\": 3,\n        \"unit_price\": 4500.6,\n        \"status\": \"PENDING\",\n        \"note\": \"Hello, World!\",\n        \"location\": \"None\",\n        \"last_update\": \"2024-01-28T07:32:17.976748Z\"\n    }\n]"}],"_postman_id":"96dc7719-bdc4-47d6-971f-4014e51e3654"},{"name":"delete","id":"34629924-2b4b-4f66-b137-cf7fc8e2101f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MTIyNTAxLCJpYXQiOjE3MDcxMjEzMDEsImp0aSI6ImI5MDhjOTg5NTExNDQ4ZGNhNmI2OWVmOGRjNjA0ZTVkIiwidXNlcl9pZCI6MjN9.KKa9WCRUeU8CHgi8z8-1DW_MJ6ALvr4Zz4PgXlXGrBA","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/orders/items/68/","description":"<p>This HTTP DELETE request is used to delete a specific order item.</p>\n<p><strong>This endpoint is for admins only.</strong></p>\n<p>The request does not require any request body or parameters. Upon a successful deletion, the server returns a status code of 204 with a Content-Type of text/xml. The response body is empty.</p>\n","urlObject":{"path":["orders","items","68",""],"host":["http://127.0.0.1:8000/api/v1"],"query":[],"variable":[]}},"response":[{"id":"64160900-6082-426b-8238-b8aa655f6999","name":"delete","originalRequest":{"method":"DELETE","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MTIyNTAxLCJpYXQiOjE3MDcxMjEzMDEsImp0aSI6ImI5MDhjOTg5NTExNDQ4ZGNhNmI2OWVmOGRjNjA0ZTVkIiwidXNlcl9pZCI6MjN9.KKa9WCRUeU8CHgi8z8-1DW_MJ6ALvr4Zz4PgXlXGrBA","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/orders/items/68/"},"status":"No Content","code":204,"_postman_previewlanguage":"plain","header":[{"key":"Date","value":"Mon, 05 Feb 2024 08:21:56 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.11.0"},{"key":"Vary","value":"Accept, origin, Accept-Language"},{"key":"Allow","value":"GET, PUT, PATCH, DELETE, HEAD, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"0"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":null}],"_postman_id":"34629924-2b4b-4f66-b137-cf7fc8e2101f"},{"name":"patch","id":"d9ae9d63-b7ac-47f6-b05a-dfa14f50ca00","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MTI0MDkxLCJpYXQiOjE3MDcxMjI4OTEsImp0aSI6IjViNGYzNjFiMjNkZDRlZDhiYzY0ZjU5ODJjY2Y4M2RiIiwidXNlcl9pZCI6MzF9.hKeFsG0_OzWmCoqi3O5UVvd2WUHF16_ZkO0QriYIsrA","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"status\": \"REJECTED\"\n}\n","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"http://127.0.0.1:8000/api/v1/orders/items/66/","description":"<p>This HTTP PATCH request is used to update specific order item.</p>\n<p>Usually when you want to update an order item the update came from the service provider to accept or reject it, so this <strong>endpoint is for service providers only.</strong></p>\n<p>The request should be made to http://127.0.0.1:8000/api/v1/orders/items/68/ with a payload containing the updated fields.</p>\n<h3 id=\"request-body\">Request Body</h3>\n<ul>\n<li><p>Raw JSON</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">    {\n        \"status\": \"\"\n    }\n\n</code></pre>\n</li>\n</ul>\n<h3 id=\"response\">Response</h3>\n<ul>\n<li><p>Status: 202</p>\n</li>\n<li><p>Content-Type: application/json</p>\n</li>\n<li><p>Example Response Body:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">    {\n        \"id\": 0,\n        \"order_id\": 0,\n        \"user_id\": 0,\n        \"user_email\": \"\",\n        \"location_point\": \"\",\n        \"product_id\": 0,\n        \"product_title\": \"\",\n        \"quantity\": 0,\n        \"unit_price\": 0,\n        \"status\": \"\",\n        \"note\": \"\",\n        \"location\": \"\",\n        \"last_update\": \"\"\n    }\n\n</code></pre>\n</li>\n</ul>\n<h4 id=\"response-examples\">Response Examples</h4>\n<ol>\n<li><pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">    {\n        \"order\": \"\",\n        \"product\": \"\",\n        \"id\": \"\",\n        \"quantity\": \"\",\n        \"price\": \"\",\n        \"status\": \"\",\n        \"updated_at\": \"\"\n    }\n \n</code></pre>\n</li>\n<li><pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">    {\n        \"id\": 0,\n        \"order_id\": 0,\n        \"user_id\": 0,\n        \"user_email\": \"\",\n        \"location_point\": \"\",\n        \"product_id\": 0,\n        \"product_title\": \"\",\n        \"quantity\": 0,\n        \"unit_price\": 0,\n        \"status\": \"\",\n        \"note\": \"\",\n        \"location\": \"\",\n        \"last_update\": \"\"\n    }\n \n</code></pre>\n</li>\n</ol>\n","urlObject":{"path":["orders","items","66",""],"host":["http://127.0.0.1:8000/api/v1"],"query":[],"variable":[]}},"response":[{"id":"01825bcf-90bd-47e3-841a-722fe2e24b80","name":"patch","originalRequest":{"method":"PATCH","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MTIyMTA1LCJpYXQiOjE3MDcxMjA5MDUsImp0aSI6IjU2NjFhZTZhOGY0MTRiYmNiMzc1ZWU3ZTUwMmI1ZjBkIiwidXNlcl9pZCI6MzB9.5Y1SMvotW3QcagfzxpsAKB3S8Zo8tO1IX4MuolQ8Bjg","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"status\": \"ACCEPTED\"\n}\n","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"http://127.0.0.1:8000/api/v1/orders/items/68/"},"status":"Accepted","code":202,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 05 Feb 2024 08:17:33 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.11.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language"},{"key":"Allow","value":"GET, PUT, PATCH, DELETE, HEAD, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"351"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 68,\n    \"order_id\": 37,\n    \"user_id\": 29,\n    \"user_email\": \"maamoun.h.najeeb@gmail.com\",\n    \"location_point\": \"SRID=4326;POINT (-19.432432 32.345945)\",\n    \"product_id\": 29,\n    \"product_title\": \"unadol extra\",\n    \"quantity\": 3,\n    \"unit_price\": 4500.6,\n    \"status\": \"ACCEPTED\",\n    \"note\": \"Hello, World!\",\n    \"location\": \"SRID=4326;POINT (32.6541 -987.256)\",\n    \"last_update\": \"2024-02-05T08:17:33.132604Z\"\n}"}],"_postman_id":"d9ae9d63-b7ac-47f6-b05a-dfa14f50ca00"}],"id":"e0ebccfb-aade-474c-9d66-23d9e92d65c1","_postman_id":"e0ebccfb-aade-474c-9d66-23d9e92d65c1","description":""},{"name":"all order items","id":"5fdbb681-6a76-4de4-9f3f-411d1f2b6e5c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MTIyNTAxLCJpYXQiOjE3MDcxMjEzMDEsImp0aSI6ImI5MDhjOTg5NTExNDQ4ZGNhNmI2OWVmOGRjNjA0ZTVkIiwidXNlcl9pZCI6MjN9.KKa9WCRUeU8CHgi8z8-1DW_MJ6ALvr4Zz4PgXlXGrBA","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/orders/items/","description":"<h1 id=\"get-order-items\">Get Order Items</h1>\n<p>This endpoint retrieves a list of all order items in the system.</p>\n<p><strong>This endpoint is for admins only.</strong></p>\n<h2 id=\"response\">Response</h2>\n<p>The response will be a JSON array containing objects with the following properties:</p>\n<ul>\n<li><code>id</code> (number): The ID of the order item.</li>\n<li><code>order_id</code> (number): The ID of the order to which the item belongs.</li>\n<li><code>user_id</code> (number): The ID of the user who placed the order.</li>\n<li><code>user_email</code> (string): The email of the user who placed the order.</li>\n<li><code>location_point</code> (string): The location point of the order.</li>\n<li><code>product_id</code> (number): The ID of the product in the order.</li>\n<li><code>product_title</code> (string): The title of the product.</li>\n<li><code>quantity</code> (number): The quantity of the product in the order.</li>\n<li><code>unit_price</code> (number): The unit price of the product.</li>\n<li><code>status</code> (string): The status of the order item.</li>\n<li><code>note</code> (string): Additional note for the order item.</li>\n<li><code>location</code> (string): The location of the order.</li>\n<li><code>last_update</code> (string): The timestamp of the last update for the order item.</li>\n</ul>\n<h3 id=\"example-response\">Example Response</h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">[\n    {\n        \"id\": 0,\n        \"order_id\": 0,\n        \"product_id\": 0,\n        \"product_title\": \"\",\n        \"quantity\": 0,\n        \"status\": \"\",\n        \"updated_at\": \"\"\n    }\n]\n\n</code></pre>\n","urlObject":{"path":["orders","items",""],"host":["http://127.0.0.1:8000/api/v1"],"query":[],"variable":[]}},"response":[{"id":"3bab8f20-0a7e-4331-9a3c-58684c76b78a","name":"all order items","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MTIyNTAxLCJpYXQiOjE3MDcxMjEzMDEsImp0aSI6ImI5MDhjOTg5NTExNDQ4ZGNhNmI2OWVmOGRjNjA0ZTVkIiwidXNlcl9pZCI6MjN9.KKa9WCRUeU8CHgi8z8-1DW_MJ6ALvr4Zz4PgXlXGrBA","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/orders/items/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 05 Feb 2024 08:23:46 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.11.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language"},{"key":"Allow","value":"GET, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"3466"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 57,\n        \"order_id\": 29,\n        \"user_id\": 29,\n        \"user_email\": \"maamoun.h.najeeb@gmail.com\",\n        \"location_point\": \"SRID=4326;POINT (-116.234234 35.345345)\",\n        \"product_id\": 31,\n        \"product_title\": \"unadol joint\",\n        \"quantity\": 5,\n        \"unit_price\": 7501,\n        \"status\": \"ACCEPTED\",\n        \"note\": null,\n        \"location\": \"None\",\n        \"last_update\": \"2023-12-07T14:56:05.402396Z\"\n    },\n    {\n        \"id\": 58,\n        \"order_id\": 29,\n        \"user_id\": 29,\n        \"user_email\": \"maamoun.h.najeeb@gmail.com\",\n        \"location_point\": \"SRID=4326;POINT (-19.432432 32.345945)\",\n        \"product_id\": 28,\n        \"product_title\": \"unadol\",\n        \"quantity\": 4,\n        \"unit_price\": 6000.8,\n        \"status\": \"ACCEPTED\",\n        \"note\": null,\n        \"location\": \"None\",\n        \"last_update\": \"2023-12-07T14:56:05.402396Z\"\n    },\n    {\n        \"id\": 59,\n        \"order_id\": 29,\n        \"user_id\": 29,\n        \"user_email\": \"maamoun.h.najeeb@gmail.com\",\n        \"location_point\": \"SRID=4326;POINT (-190.432432 302.345945)\",\n        \"product_id\": 26,\n        \"product_title\": \"bebelait\",\n        \"quantity\": 3,\n        \"unit_price\": 4500.6,\n        \"status\": \"ACCEPTED\",\n        \"note\": null,\n        \"location\": \"None\",\n        \"last_update\": \"2023-12-07T14:59:53.290502Z\"\n    },\n    {\n        \"id\": 60,\n        \"order_id\": 30,\n        \"user_id\": 29,\n        \"user_email\": \"maamoun.h.najeeb@gmail.com\",\n        \"location_point\": \"SRID=4326;POINT (-90.432432 2.345945)\",\n        \"product_id\": 24,\n        \"product_title\": \"childs milk\",\n        \"quantity\": 2,\n        \"unit_price\": 3000.4,\n        \"status\": \"ACCEPTED\",\n        \"note\": null,\n        \"location\": \"None\",\n        \"last_update\": \"2023-12-07T15:00:02.341865Z\"\n    },\n    {\n        \"id\": 61,\n        \"order_id\": 31,\n        \"user_id\": 23,\n        \"user_email\": \"maamoun.haj.najeeb@gmail.com\",\n        \"location_point\": \"SRID=4326;POINT (-116.234234 35.345345)\",\n        \"product_id\": 30,\n        \"product_title\": \"unadol cold and flu\",\n        \"quantity\": 1,\n        \"unit_price\": 1500.2,\n        \"status\": \"ACCEPTED\",\n        \"note\": null,\n        \"location\": \"None\",\n        \"last_update\": \"2023-12-07T15:11:17.387457Z\"\n    },\n    {\n        \"id\": 62,\n        \"order_id\": 31,\n        \"user_id\": 23,\n        \"user_email\": \"maamoun.haj.najeeb@gmail.com\",\n        \"location_point\": \"SRID=4326;POINT (-19.432432 32.345945)\",\n        \"product_id\": 29,\n        \"product_title\": \"unadol extra\",\n        \"quantity\": 5,\n        \"unit_price\": 7501,\n        \"status\": \"ACCEPTED\",\n        \"note\": null,\n        \"location\": \"None\",\n        \"last_update\": \"2023-12-07T15:11:21.967035Z\"\n    },\n    {\n        \"id\": 63,\n        \"order_id\": 31,\n        \"user_id\": 23,\n        \"user_email\": \"maamoun.haj.najeeb@gmail.com\",\n        \"location_point\": \"SRID=4326;POINT (-190.432432 302.345945)\",\n        \"product_id\": 27,\n        \"product_title\": \"gicouz\",\n        \"quantity\": 4,\n        \"unit_price\": 6000.8,\n        \"status\": \"ACCEPTED\",\n        \"note\": null,\n        \"location\": \"None\",\n        \"last_update\": \"2023-12-07T15:11:52.271235Z\"\n    },\n    {\n        \"id\": 65,\n        \"order_id\": 33,\n        \"user_id\": 23,\n        \"user_email\": \"maamoun.haj.najeeb@gmail.com\",\n        \"location_point\": \"SRID=4326;POINT (-90.432432 2.345945)\",\n        \"product_id\": 25,\n        \"product_title\": \"Nan\",\n        \"quantity\": 3,\n        \"unit_price\": 4500.6,\n        \"status\": \"ACCEPTED\",\n        \"note\": null,\n        \"location\": \"None\",\n        \"last_update\": \"2023-12-07T17:54:20.250038Z\"\n    },\n    {\n        \"id\": 66,\n        \"order_id\": 34,\n        \"user_id\": 29,\n        \"user_email\": \"maamoun.h.najeeb@gmail.com\",\n        \"location_point\": \"SRID=4326;POINT (-90.432432 2.345945)\",\n        \"product_id\": 25,\n        \"product_title\": \"Nan\",\n        \"quantity\": 3,\n        \"unit_price\": 4500.6,\n        \"status\": \"PENDING\",\n        \"note\": \"Hello, World!\",\n        \"location\": \"None\",\n        \"last_update\": \"2024-01-27T16:39:54.220868Z\"\n    },\n    {\n        \"id\": 69,\n        \"order_id\": 38,\n        \"user_id\": 29,\n        \"user_email\": \"maamoun.h.najeeb@gmail.com\",\n        \"location_point\": \"SRID=4326;POINT (-19.432432 32.345945)\",\n        \"product_id\": 29,\n        \"product_title\": \"unadol extra\",\n        \"quantity\": 3,\n        \"unit_price\": 4500.6,\n        \"status\": \"PENDING\",\n        \"note\": \"Hello, World!\",\n        \"location\": \"SRID=4326;POINT (32.6541 -987.256)\",\n        \"last_update\": \"2024-01-28T07:37:04.853653Z\"\n    },\n    {\n        \"id\": 67,\n        \"order_id\": 35,\n        \"user_id\": 29,\n        \"user_email\": \"maamoun.h.najeeb@gmail.com\",\n        \"location_point\": \"SRID=4326;POINT (-19.432432 32.345945)\",\n        \"product_id\": 29,\n        \"product_title\": \"unadol extra\",\n        \"quantity\": 3,\n        \"unit_price\": 4500.6,\n        \"status\": \"ACCEPTED\",\n        \"note\": \"Hello, World!\",\n        \"location\": \"None\",\n        \"last_update\": \"2024-02-05T08:15:39.761840Z\"\n    }\n]"}],"_postman_id":"5fdbb681-6a76-4de4-9f3f-411d1f2b6e5c"},{"name":"user order items","id":"748b7bb1-4709-4208-99c3-828b1e88bf42","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MTIyOTkyLCJpYXQiOjE3MDcxMjE3OTIsImp0aSI6IjAxYjI3MzdlOTYxYzRjNWVhZjg4OTZmMTAyN2Y3OTdkIiwidXNlcl9pZCI6MjN9.ZlKNm3f31jQ0Iz_EmYWys2VJCVwCRuwC71OQ1Z_IUMY","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/orders/items/user/23","description":"<p>This endpoint retrieves the list of order items for a specific user.</p>\n<p><em>you can add a user id in the end of the url if the admin needs to know specific user order items (see example)</em>.</p>\n<p><strong>This endpoint is for authenticated user.</strong></p>\n<p>The response will include the details of each item such as its ID, order ID, user ID, user email, product ID, product title, quantity, unit price, status, and last update timestamp.</p>\n","urlObject":{"path":["orders","items","user","23"],"host":["http://127.0.0.1:8000/api/v1"],"query":[],"variable":[]}},"response":[{"id":"5114ee1b-0d82-4674-a5d2-3b76b79ee733","name":"user order items","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MTIyNzA0LCJpYXQiOjE3MDcxMjE1MDQsImp0aSI6ImNmYTgxNjQ0YWZiMjQ2NzJiNjlhYTlkOWIwZTc2MDQyIiwidXNlcl9pZCI6Mjl9.e11YmILd-Ux1N-xrROET7FXACjqKWu3NL8I4XmpWTQg","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/orders/items/user/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 05 Feb 2024 08:25:24 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.11.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language"},{"key":"Allow","value":"GET, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"2220"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 57,\n        \"order_id\": 29,\n        \"user_id\": 29,\n        \"user_email\": \"maamoun.h.najeeb@gmail.com\",\n        \"location_point\": \"SRID=4326;POINT (-116.234234 35.345345)\",\n        \"product_id\": 31,\n        \"product_title\": \"unadol joint\",\n        \"quantity\": 5,\n        \"unit_price\": 7501,\n        \"status\": \"ACCEPTED\",\n        \"note\": null,\n        \"location\": \"None\",\n        \"last_update\": \"2023-12-07T14:56:05.402396Z\"\n    },\n    {\n        \"id\": 58,\n        \"order_id\": 29,\n        \"user_id\": 29,\n        \"user_email\": \"maamoun.h.najeeb@gmail.com\",\n        \"location_point\": \"SRID=4326;POINT (-19.432432 32.345945)\",\n        \"product_id\": 28,\n        \"product_title\": \"unadol\",\n        \"quantity\": 4,\n        \"unit_price\": 6000.8,\n        \"status\": \"ACCEPTED\",\n        \"note\": null,\n        \"location\": \"None\",\n        \"last_update\": \"2023-12-07T14:56:05.402396Z\"\n    },\n    {\n        \"id\": 59,\n        \"order_id\": 29,\n        \"user_id\": 29,\n        \"user_email\": \"maamoun.h.najeeb@gmail.com\",\n        \"location_point\": \"SRID=4326;POINT (-190.432432 302.345945)\",\n        \"product_id\": 26,\n        \"product_title\": \"bebelait\",\n        \"quantity\": 3,\n        \"unit_price\": 4500.6,\n        \"status\": \"ACCEPTED\",\n        \"note\": null,\n        \"location\": \"None\",\n        \"last_update\": \"2023-12-07T14:59:53.290502Z\"\n    },\n    {\n        \"id\": 60,\n        \"order_id\": 30,\n        \"user_id\": 29,\n        \"user_email\": \"maamoun.h.najeeb@gmail.com\",\n        \"location_point\": \"SRID=4326;POINT (-90.432432 2.345945)\",\n        \"product_id\": 24,\n        \"product_title\": \"childs milk\",\n        \"quantity\": 2,\n        \"unit_price\": 3000.4,\n        \"status\": \"ACCEPTED\",\n        \"note\": null,\n        \"location\": \"None\",\n        \"last_update\": \"2023-12-07T15:00:02.341865Z\"\n    },\n    {\n        \"id\": 66,\n        \"order_id\": 34,\n        \"user_id\": 29,\n        \"user_email\": \"maamoun.h.najeeb@gmail.com\",\n        \"location_point\": \"SRID=4326;POINT (-90.432432 2.345945)\",\n        \"product_id\": 25,\n        \"product_title\": \"Nan\",\n        \"quantity\": 3,\n        \"unit_price\": 4500.6,\n        \"status\": \"PENDING\",\n        \"note\": \"Hello, World!\",\n        \"location\": \"None\",\n        \"last_update\": \"2024-01-27T16:39:54.220868Z\"\n    },\n    {\n        \"id\": 69,\n        \"order_id\": 38,\n        \"user_id\": 29,\n        \"user_email\": \"maamoun.h.najeeb@gmail.com\",\n        \"location_point\": \"SRID=4326;POINT (-19.432432 32.345945)\",\n        \"product_id\": 29,\n        \"product_title\": \"unadol extra\",\n        \"quantity\": 3,\n        \"unit_price\": 4500.6,\n        \"status\": \"PENDING\",\n        \"note\": \"Hello, World!\",\n        \"location\": \"SRID=4326;POINT (32.6541 -987.256)\",\n        \"last_update\": \"2024-01-28T07:37:04.853653Z\"\n    },\n    {\n        \"id\": 67,\n        \"order_id\": 35,\n        \"user_id\": 29,\n        \"user_email\": \"maamoun.h.najeeb@gmail.com\",\n        \"location_point\": \"SRID=4326;POINT (-19.432432 32.345945)\",\n        \"product_id\": 29,\n        \"product_title\": \"unadol extra\",\n        \"quantity\": 3,\n        \"unit_price\": 4500.6,\n        \"status\": \"ACCEPTED\",\n        \"note\": \"Hello, World!\",\n        \"location\": \"None\",\n        \"last_update\": \"2024-02-05T08:15:39.761840Z\"\n    }\n]"},{"id":"a68410e3-1820-445f-a073-1857072a1933","name":"user order items (for admins)","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MTIyOTkyLCJpYXQiOjE3MDcxMjE3OTIsImp0aSI6IjAxYjI3MzdlOTYxYzRjNWVhZjg4OTZmMTAyN2Y3OTdkIiwidXNlcl9pZCI6MjN9.ZlKNm3f31jQ0Iz_EmYWys2VJCVwCRuwC71OQ1Z_IUMY","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/orders/items/user/23"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 05 Feb 2024 08:30:10 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.11.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language"},{"key":"Allow","value":"GET, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"1247"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 61,\n        \"order_id\": 31,\n        \"user_id\": 23,\n        \"user_email\": \"maamoun.haj.najeeb@gmail.com\",\n        \"location_point\": \"SRID=4326;POINT (-116.234234 35.345345)\",\n        \"product_id\": 30,\n        \"product_title\": \"unadol cold and flu\",\n        \"quantity\": 1,\n        \"unit_price\": 1500.2,\n        \"status\": \"ACCEPTED\",\n        \"note\": null,\n        \"location\": \"None\",\n        \"last_update\": \"2023-12-07T15:11:17.387457Z\"\n    },\n    {\n        \"id\": 62,\n        \"order_id\": 31,\n        \"user_id\": 23,\n        \"user_email\": \"maamoun.haj.najeeb@gmail.com\",\n        \"location_point\": \"SRID=4326;POINT (-19.432432 32.345945)\",\n        \"product_id\": 29,\n        \"product_title\": \"unadol extra\",\n        \"quantity\": 5,\n        \"unit_price\": 7501,\n        \"status\": \"ACCEPTED\",\n        \"note\": null,\n        \"location\": \"None\",\n        \"last_update\": \"2023-12-07T15:11:21.967035Z\"\n    },\n    {\n        \"id\": 63,\n        \"order_id\": 31,\n        \"user_id\": 23,\n        \"user_email\": \"maamoun.haj.najeeb@gmail.com\",\n        \"location_point\": \"SRID=4326;POINT (-190.432432 302.345945)\",\n        \"product_id\": 27,\n        \"product_title\": \"gicouz\",\n        \"quantity\": 4,\n        \"unit_price\": 6000.8,\n        \"status\": \"ACCEPTED\",\n        \"note\": null,\n        \"location\": \"None\",\n        \"last_update\": \"2023-12-07T15:11:52.271235Z\"\n    },\n    {\n        \"id\": 65,\n        \"order_id\": 33,\n        \"user_id\": 23,\n        \"user_email\": \"maamoun.haj.najeeb@gmail.com\",\n        \"location_point\": \"SRID=4326;POINT (-90.432432 2.345945)\",\n        \"product_id\": 25,\n        \"product_title\": \"Nan\",\n        \"quantity\": 3,\n        \"unit_price\": 4500.6,\n        \"status\": \"ACCEPTED\",\n        \"note\": null,\n        \"location\": \"None\",\n        \"last_update\": \"2023-12-07T17:54:20.250038Z\"\n    }\n]"}],"_postman_id":"748b7bb1-4709-4208-99c3-828b1e88bf42"},{"name":"specific provider order items","id":"5e85bf0e-f79e-4735-bf56-65e642d98006","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MTIzMTA0LCJpYXQiOjE3MDcxMjE5MDQsImp0aSI6IjZmYTc0OTZhNzk0ZTQxMzg5YzczMmZmN2FmYTQxOTI4IiwidXNlcl9pZCI6MzB9.IYrXQZC3jjxNzpYMqHibcf0bBjzAWK19ni_YXIBwA78","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/orders/provider/items/","description":"<p>This HTTP GET request retrieves a list of order items for service provider.</p>\n<p><strong>This endpoint is for admins and service providers.</strong></p>\n<p><em>This endpoint is one of the two main endpoints for service provider dashboard.</em></p>\n<p>The response will be in JSON format and will include details such as the item ID, order ID, user ID, user email, location point, product ID, product title, quantity, unit price, status, note, location, and last update. An example response for this request is also provided.</p>\n","urlObject":{"path":["orders","provider","items",""],"host":["http://127.0.0.1:8000/api/v1"],"query":[],"variable":[]}},"response":[{"id":"ffc2c4a8-87b0-43ca-a9b3-e4aad3df3505","name":"specific provider order items","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MTIzMTA0LCJpYXQiOjE3MDcxMjE5MDQsImp0aSI6IjZmYTc0OTZhNzk0ZTQxMzg5YzczMmZmN2FmYTQxOTI4IiwidXNlcl9pZCI6MzB9.IYrXQZC3jjxNzpYMqHibcf0bBjzAWK19ni_YXIBwA78","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/orders/provider/items/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 05 Feb 2024 08:31:59 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.11.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language"},{"key":"Allow","value":"GET, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"1925"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 61,\n        \"order_id\": 31,\n        \"user_id\": 23,\n        \"user_email\": \"maamoun.haj.najeeb@gmail.com\",\n        \"location_point\": \"SRID=4326;POINT (-116.234234 35.345345)\",\n        \"product_id\": 30,\n        \"product_title\": \"unadol cold and flu\",\n        \"quantity\": 1,\n        \"unit_price\": 1500.2,\n        \"status\": \"ACCEPTED\",\n        \"note\": null,\n        \"location\": \"None\",\n        \"last_update\": \"2023-12-07T15:11:17.387457Z\"\n    },\n    {\n        \"id\": 57,\n        \"order_id\": 29,\n        \"user_id\": 29,\n        \"user_email\": \"maamoun.h.najeeb@gmail.com\",\n        \"location_point\": \"SRID=4326;POINT (-116.234234 35.345345)\",\n        \"product_id\": 31,\n        \"product_title\": \"unadol joint\",\n        \"quantity\": 5,\n        \"unit_price\": 7501,\n        \"status\": \"ACCEPTED\",\n        \"note\": null,\n        \"location\": \"None\",\n        \"last_update\": \"2023-12-07T14:56:05.402396Z\"\n    },\n    {\n        \"id\": 58,\n        \"order_id\": 29,\n        \"user_id\": 29,\n        \"user_email\": \"maamoun.h.najeeb@gmail.com\",\n        \"location_point\": \"SRID=4326;POINT (-19.432432 32.345945)\",\n        \"product_id\": 28,\n        \"product_title\": \"unadol\",\n        \"quantity\": 4,\n        \"unit_price\": 6000.8,\n        \"status\": \"ACCEPTED\",\n        \"note\": null,\n        \"location\": \"None\",\n        \"last_update\": \"2023-12-07T14:56:05.402396Z\"\n    },\n    {\n        \"id\": 62,\n        \"order_id\": 31,\n        \"user_id\": 23,\n        \"user_email\": \"maamoun.haj.najeeb@gmail.com\",\n        \"location_point\": \"SRID=4326;POINT (-19.432432 32.345945)\",\n        \"product_id\": 29,\n        \"product_title\": \"unadol extra\",\n        \"quantity\": 5,\n        \"unit_price\": 7501,\n        \"status\": \"ACCEPTED\",\n        \"note\": null,\n        \"location\": \"None\",\n        \"last_update\": \"2023-12-07T15:11:21.967035Z\"\n    },\n    {\n        \"id\": 69,\n        \"order_id\": 38,\n        \"user_id\": 29,\n        \"user_email\": \"maamoun.h.najeeb@gmail.com\",\n        \"location_point\": \"SRID=4326;POINT (-19.432432 32.345945)\",\n        \"product_id\": 29,\n        \"product_title\": \"unadol extra\",\n        \"quantity\": 3,\n        \"unit_price\": 4500.6,\n        \"status\": \"PENDING\",\n        \"note\": \"Hello, World!\",\n        \"location\": \"SRID=4326;POINT (32.6541 -987.256)\",\n        \"last_update\": \"2024-01-28T07:37:04.853653Z\"\n    },\n    {\n        \"id\": 67,\n        \"order_id\": 35,\n        \"user_id\": 29,\n        \"user_email\": \"maamoun.h.najeeb@gmail.com\",\n        \"location_point\": \"SRID=4326;POINT (-19.432432 32.345945)\",\n        \"product_id\": 29,\n        \"product_title\": \"unadol extra\",\n        \"quantity\": 3,\n        \"unit_price\": 4500.6,\n        \"status\": \"ACCEPTED\",\n        \"note\": \"Hello, World!\",\n        \"location\": \"None\",\n        \"last_update\": \"2024-02-05T08:15:39.761840Z\"\n    }\n]"}],"_postman_id":"5e85bf0e-f79e-4735-bf56-65e642d98006"},{"name":"specific serveice provider orders items stats","id":"fd5ba55f-9339-4f8b-95bc-18dda8db0445","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MTIzMTA0LCJpYXQiOjE3MDcxMjE5MDQsImp0aSI6IjZmYTc0OTZhNzk0ZTQxMzg5YzczMmZmN2FmYTQxOTI4IiwidXNlcl9pZCI6MzB9.IYrXQZC3jjxNzpYMqHibcf0bBjzAWK19ni_YXIBwA78","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/orders/provider/stats/","description":"<h3 id=\"get-provider-order-statistics\">Get Provider Order Statistics</h3>\n<p>This endpoint retrieves statistics related to sold order items for the service provider.</p>\n<p><strong>This endpoint is for admins and service providers.</strong></p>\n<p><em>This endpoint is one of the two main endpoints for service provider dashboard.</em></p>\n<h4 id=\"request\">Request</h4>\n<ul>\n<li>Method: GET</li>\n<li>URL: <code>http://127.0.0.1:8000/api/v1/orders/provider/stats/</code></li>\n</ul>\n<h4 id=\"response\">Response</h4>\n<p>Upon a successful request, the server will respond with a status code of 200 and a JSON object containing the following fields:</p>\n<ul>\n<li><code>stats</code> (object)<ul>\n<li><code>all</code> (number): Total number of orders</li>\n<li><code>last</code> (number): Number of last orders</li>\n<li><code>pended</code> (number): Number of pended orders</li>\n<li><code>accepted</code> (number): Number of accepted orders</li>\n<li><code>rejected</code> (number): Number of rejected orders</li>\n</ul>\n</li>\n<li><code>orders</code> (array)<ul>\n<li><code>id</code> (number): Order ID</li>\n<li><code>order_id</code> (number): Unique order ID</li>\n<li><code>user_id</code> (number): User ID associated with the order</li>\n<li><code>user_email</code> (string): Email of the user</li>\n<li><code>location_point</code> (string): Location point of the order</li>\n<li><code>product_id</code> (number): Product ID</li>\n<li><code>product_title</code> (string): Title of the product</li>\n<li><code>quantity</code> (number): Quantity of the product</li>\n<li><code>unit_price</code> (number): Price per unit</li>\n<li><code>status</code> (string): Current status of the order</li>\n<li><code>note</code> (string): Additional note for the order</li>\n<li><code>location</code> (string): Location of the order</li>\n<li><code>last_update</code> (string): Timestamp of the last update for the order</li>\n</ul>\n</li>\n</ul>\n","urlObject":{"path":["orders","provider","stats",""],"host":["http://127.0.0.1:8000/api/v1"],"query":[],"variable":[]}},"response":[{"id":"ab12ab51-bbb1-4bed-9e2c-12a27d165a12","name":"specific serveice provider orders items stats","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MTIzMTA0LCJpYXQiOjE3MDcxMjE5MDQsImp0aSI6IjZmYTc0OTZhNzk0ZTQxMzg5YzczMmZmN2FmYTQxOTI4IiwidXNlcl9pZCI6MzB9.IYrXQZC3jjxNzpYMqHibcf0bBjzAWK19ni_YXIBwA78","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/orders/provider/stats/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 05 Feb 2024 08:36:24 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.11.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language"},{"key":"Allow","value":"GET, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"2000"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"stats\": {\n        \"all\": 6,\n        \"last\": 1,\n        \"pended\": 1,\n        \"accepted\": 5,\n        \"rejected\": 0\n    },\n    \"orders\": [\n        {\n            \"id\": 61,\n            \"order_id\": 31,\n            \"user_id\": 23,\n            \"user_email\": \"maamoun.haj.najeeb@gmail.com\",\n            \"location_point\": \"SRID=4326;POINT (-116.234234 35.345345)\",\n            \"product_id\": 30,\n            \"product_title\": \"unadol cold and flu\",\n            \"quantity\": 1,\n            \"unit_price\": 1500.2,\n            \"status\": \"ACCEPTED\",\n            \"note\": null,\n            \"location\": \"None\",\n            \"last_update\": \"2023-12-07T15:11:17.387457Z\"\n        },\n        {\n            \"id\": 57,\n            \"order_id\": 29,\n            \"user_id\": 29,\n            \"user_email\": \"maamoun.h.najeeb@gmail.com\",\n            \"location_point\": \"SRID=4326;POINT (-116.234234 35.345345)\",\n            \"product_id\": 31,\n            \"product_title\": \"unadol joint\",\n            \"quantity\": 5,\n            \"unit_price\": 7501,\n            \"status\": \"ACCEPTED\",\n            \"note\": null,\n            \"location\": \"None\",\n            \"last_update\": \"2023-12-07T14:56:05.402396Z\"\n        },\n        {\n            \"id\": 58,\n            \"order_id\": 29,\n            \"user_id\": 29,\n            \"user_email\": \"maamoun.h.najeeb@gmail.com\",\n            \"location_point\": \"SRID=4326;POINT (-19.432432 32.345945)\",\n            \"product_id\": 28,\n            \"product_title\": \"unadol\",\n            \"quantity\": 4,\n            \"unit_price\": 6000.8,\n            \"status\": \"ACCEPTED\",\n            \"note\": null,\n            \"location\": \"None\",\n            \"last_update\": \"2023-12-07T14:56:05.402396Z\"\n        },\n        {\n            \"id\": 62,\n            \"order_id\": 31,\n            \"user_id\": 23,\n            \"user_email\": \"maamoun.haj.najeeb@gmail.com\",\n            \"location_point\": \"SRID=4326;POINT (-19.432432 32.345945)\",\n            \"product_id\": 29,\n            \"product_title\": \"unadol extra\",\n            \"quantity\": 5,\n            \"unit_price\": 7501,\n            \"status\": \"ACCEPTED\",\n            \"note\": null,\n            \"location\": \"None\",\n            \"last_update\": \"2023-12-07T15:11:21.967035Z\"\n        },\n        {\n            \"id\": 69,\n            \"order_id\": 38,\n            \"user_id\": 29,\n            \"user_email\": \"maamoun.h.najeeb@gmail.com\",\n            \"location_point\": \"SRID=4326;POINT (-19.432432 32.345945)\",\n            \"product_id\": 29,\n            \"product_title\": \"unadol extra\",\n            \"quantity\": 3,\n            \"unit_price\": 4500.6,\n            \"status\": \"PENDING\",\n            \"note\": \"Hello, World!\",\n            \"location\": \"SRID=4326;POINT (32.6541 -987.256)\",\n            \"last_update\": \"2024-01-28T07:37:04.853653Z\"\n        },\n        {\n            \"id\": 67,\n            \"order_id\": 35,\n            \"user_id\": 29,\n            \"user_email\": \"maamoun.h.najeeb@gmail.com\",\n            \"location_point\": \"SRID=4326;POINT (-19.432432 32.345945)\",\n            \"product_id\": 29,\n            \"product_title\": \"unadol extra\",\n            \"quantity\": 3,\n            \"unit_price\": 4500.6,\n            \"status\": \"ACCEPTED\",\n            \"note\": \"Hello, World!\",\n            \"location\": \"None\",\n            \"last_update\": \"2024-02-05T08:15:39.761840Z\"\n        }\n    ]\n}"}],"_postman_id":"fd5ba55f-9339-4f8b-95bc-18dda8db0445"}],"id":"2da97ef8-9b62-41d3-b100-9a21f15dcd6e","_postman_id":"2da97ef8-9b62-41d3-b100-9a21f15dcd6e","description":""},{"name":"rejected orders","item":[{"name":"specific rejected order item","item":[{"name":"get","id":"90c48532-0ae5-4a7d-9afc-c9c48d5f9874","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MTI0MzQwLCJpYXQiOjE3MDcxMjMxNDAsImp0aSI6IjhiZTJlY2QzY2FmZjRkOTA4ZGE4ZTk0ZmIyMzczNGMxIiwidXNlcl9pZCI6MzF9.2TciqAgObzfL61NB5EI0EWZRrPjIexRptynu-pzuc7U","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/orders/rejected/66/","description":"<p>This endpoint retrieves the details of a rejected order with the specified ID, the ID in the url is the same ID of the rejected order item.</p>\n<p><strong>This endpoint is for authenticated users.</strong></p>\n<p>The response will include the order ID, location, user email, reason for rejection, and a flag indicating whether the response has been read.</p>\n<h3 id=\"response\">Response</h3>\n<ul>\n<li><code>order_id</code> (number): The ID of the rejected order.</li>\n<li><code>location</code> (string): The location associated with the rejected order.</li>\n<li><code>user_email</code> (string): The email of the user associated with the rejected order.</li>\n<li><code>reason</code> (string): The reason for rejection.</li>\n<li><code>read</code> (boolean): Indicates whether the response has been read.</li>\n</ul>\n","urlObject":{"path":["orders","rejected","66",""],"host":["http://127.0.0.1:8000/api/v1"],"query":[],"variable":[]}},"response":[{"id":"0c34abbf-cdab-41a9-8f79-ebb5647052fd","name":"get","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MTI0MzQwLCJpYXQiOjE3MDcxMjMxNDAsImp0aSI6IjhiZTJlY2QzY2FmZjRkOTA4ZGE4ZTk0ZmIyMzczNGMxIiwidXNlcl9pZCI6MzF9.2TciqAgObzfL61NB5EI0EWZRrPjIexRptynu-pzuc7U","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/orders/rejected/66/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 05 Feb 2024 08:55:36 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.11.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language"},{"key":"Allow","value":"GET, PUT, PATCH, DELETE, HEAD, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"130"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"order_id\": 66,\n    \"location\": \"None\",\n    \"user_email\": \"maamoun.h.najeeb@gmail.com\",\n    \"reason\": \"I have some issues in the work\",\n    \"read\": false\n}"}],"_postman_id":"90c48532-0ae5-4a7d-9afc-c9c48d5f9874"},{"name":"delete","id":"5cd2d8f0-f8b4-4feb-9043-b240d77f5e92","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MTI0OTIwLCJpYXQiOjE3MDcxMjM3MjAsImp0aSI6ImVhNjNkYmVjZDAyNDRiNWRhOWMwMmI0ZDk5YjNiYzcyIiwidXNlcl9pZCI6MzB9.TcRKU-w-o_2m9oEgD-j1QUEJs1IO-_XSnJt9bUr6ZE8","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/orders/rejected/66/","description":"<p>This endpoint is used to delete a specific rejected order item.</p>\n<p><strong>This endpoint is for admins and service providers.</strong></p>\n","urlObject":{"path":["orders","rejected","66",""],"host":["http://127.0.0.1:8000/api/v1"],"query":[],"variable":[]}},"response":[{"id":"00e79494-65d0-492f-a597-673454c23f53","name":"delete","originalRequest":{"method":"DELETE","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MTI0OTIwLCJpYXQiOjE3MDcxMjM3MjAsImp0aSI6ImVhNjNkYmVjZDAyNDRiNWRhOWMwMmI0ZDk5YjNiYzcyIiwidXNlcl9pZCI6MzB9.TcRKU-w-o_2m9oEgD-j1QUEJs1IO-_XSnJt9bUr6ZE8","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/orders/rejected/66/"},"status":"No Content","code":204,"_postman_previewlanguage":"plain","header":[{"key":"Date","value":"Mon, 05 Feb 2024 09:02:15 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.11.0"},{"key":"Vary","value":"Accept, origin, Accept-Language"},{"key":"Allow","value":"GET, PUT, PATCH, DELETE, HEAD, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"0"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":null}],"_postman_id":"5cd2d8f0-f8b4-4feb-9043-b240d77f5e92"},{"name":"create","id":"73de9c21-4fd1-41ff-a005-33e672810d75","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MTI1MTc4LCJpYXQiOjE3MDcxMjM5NzgsImp0aSI6IjE1N2E0NmEyZmMwMTQzODc5MzhmMmFmODA0MDEzMjAzIiwidXNlcl9pZCI6MzF9.XezfLHouZ3aEaUYc1LQWVmejY5yzwibgKQo3PGIKsq8","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"order\": 69,\r\n    \"reason\": \"I have some issues in the work\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/api/v1/orders/rejected/","description":"<h3 id=\"add-order-rejection\">Add Order Rejection</h3>\n<p>This endpoint is used to reject an order by providing the order ID and a reason for rejection.</p>\n<p><strong>This endpoint is for service providers only.</strong></p>\n<h4 id=\"request-body\">Request Body</h4>\n<ul>\n<li><code>order</code> (number): The ID of the order to be rejected.</li>\n<li><code>reason</code> (string): The reason for rejecting the order.</li>\n</ul>\n<h4 id=\"response\">Response</h4>\n<p>Upon successful rejection of the order, the endpoint returns a status code of 201 and a JSON object containing the following fields:</p>\n<ul>\n<li><code>order_id</code> (number): The ID of the rejected order.</li>\n<li><code>location</code> (string): The location of the rejected order.</li>\n<li><code>user_email</code> (string): The email of the user associated with the rejected order.</li>\n<li><code>reason</code> (string): The reason for rejection.</li>\n<li><code>read</code> (boolean): Indicates whether the rejection notification has been read.</li>\n</ul>\n","urlObject":{"path":["orders","rejected",""],"host":["http://127.0.0.1:8000/api/v1"],"query":[],"variable":[]}},"response":[{"id":"953ac939-58da-4b22-8294-43912cb28db3","name":"create","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MTI0MzQwLCJpYXQiOjE3MDcxMjMxNDAsImp0aSI6IjhiZTJlY2QzY2FmZjRkOTA4ZGE4ZTk0ZmIyMzczNGMxIiwidXNlcl9pZCI6MzF9.2TciqAgObzfL61NB5EI0EWZRrPjIexRptynu-pzuc7U","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"order\": 66,\r\n    \"reason\": \"I have some issues in the work\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/api/v1/orders/rejected/"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 05 Feb 2024 08:52:38 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.11.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language"},{"key":"Allow","value":"GET, POST, HEAD, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"130"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"order_id\": 66,\n    \"location\": \"None\",\n    \"user_email\": \"maamoun.h.najeeb@gmail.com\",\n    \"reason\": \"I have some issues in the work\",\n    \"read\": false\n}"}],"_postman_id":"73de9c21-4fd1-41ff-a005-33e672810d75"},{"name":"update","id":"cb159f17-5824-400c-8cc7-9ef0245fd28b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MTI0ODQ4LCJpYXQiOjE3MDcxMjM2NDgsImp0aSI6ImJjMTlhNThmNWNjNzQ0MmZiYjNhYzQ3OWNkMTBmNzQyIiwidXNlcl9pZCI6MjN9.3CSyNWuOO7reGzQwxIHDHUj_qChXWv705Nsz36zkHb0","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"read\": true\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/api/v1/orders/rejected/66/","description":"<p>This HTTP PATCH request is used to update the rejected order details.</p>\n<p><em>Typically, only admins should edit on rejected orders record.</em></p>\n<p><strong>This endpoint is for admins and service providers.</strong></p>\n<h3 id=\"request-body\">Request Body</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Key</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>read</td>\n<td>JSON</td>\n<td>Indicates whether the order has been read or not.</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"response\">Response</h3>\n<p>Upon a successful execution of the request, the server will respond with a status code of 200 and a JSON object containing the updated details of the order.</p>\n<h4 id=\"response-body\">Response Body</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Key</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>order_id</td>\n<td>The ID of the order.</td>\n</tr>\n<tr>\n<td>location</td>\n<td>The location of the order.</td>\n</tr>\n<tr>\n<td>user_email</td>\n<td>The email of the user associated with the order.</td>\n</tr>\n<tr>\n<td>reason</td>\n<td>The reason for rejection.</td>\n</tr>\n<tr>\n<td>read</td>\n<td>Indicates whether the order has been read or not.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"example-response\">Example Response</h4>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"order_id\": 0,\n  \"location\": \"\",\n  \"user_email\": \"\",\n  \"reason\": \"\",\n  \"read\": true\n}\n\n</code></pre>\n","urlObject":{"path":["orders","rejected","66",""],"host":["http://127.0.0.1:8000/api/v1"],"query":[],"variable":[]}},"response":[{"id":"bfe4543d-0232-4d27-b9ea-177519adbbee","name":"update","originalRequest":{"method":"PATCH","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MTI0ODQ4LCJpYXQiOjE3MDcxMjM2NDgsImp0aSI6ImJjMTlhNThmNWNjNzQ0MmZiYjNhYzQ3OWNkMTBmNzQyIiwidXNlcl9pZCI6MjN9.3CSyNWuOO7reGzQwxIHDHUj_qChXWv705Nsz36zkHb0","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"read\": true\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/api/v1/orders/rejected/66/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 05 Feb 2024 09:01:04 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.11.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language"},{"key":"Allow","value":"GET, PUT, PATCH, DELETE, HEAD, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"129"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"order_id\": 66,\n    \"location\": \"None\",\n    \"user_email\": \"maamoun.h.najeeb@gmail.com\",\n    \"reason\": \"I have some issues in the work\",\n    \"read\": true\n}"}],"_postman_id":"cb159f17-5824-400c-8cc7-9ef0245fd28b"}],"id":"6135eb7e-6b09-4f52-a34e-cbf58be89281","_postman_id":"6135eb7e-6b09-4f52-a34e-cbf58be89281","description":""},{"name":"list all rejected order items","id":"5020339e-109d-4939-97bd-5fd4f7f434c6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MTI0OTIwLCJpYXQiOjE3MDcxMjM3MjAsImp0aSI6ImVhNjNkYmVjZDAyNDRiNWRhOWMwMmI0ZDk5YjNiYzcyIiwidXNlcl9pZCI6MzB9.TcRKU-w-o_2m9oEgD-j1QUEJs1IO-_XSnJt9bUr6ZE8","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/orders/rejected/","description":"<p>This endpoint is used to retrieve a list of rejected orders.</p>\n<p><strong>This endpoint is for admins only.</strong></p>\n<p>the server will respond with a status code of 200 and an empty JSON array as the response body.</p>\n","urlObject":{"path":["orders","rejected",""],"host":["http://127.0.0.1:8000/api/v1"],"query":[],"variable":[]}},"response":[{"id":"85655762-f30d-414e-88c1-ff1ca9abbcdd","name":"list all rejected order items","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MTI0OTIwLCJpYXQiOjE3MDcxMjM3MjAsImp0aSI6ImVhNjNkYmVjZDAyNDRiNWRhOWMwMmI0ZDk5YjNiYzcyIiwidXNlcl9pZCI6MzB9.TcRKU-w-o_2m9oEgD-j1QUEJs1IO-_XSnJt9bUr6ZE8","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/orders/rejected/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 05 Feb 2024 09:06:38 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.11.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language"},{"key":"Allow","value":"GET, POST, HEAD, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"162"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"order_id\": 69,\n        \"location\": \"SRID=4326;POINT (32.6541 -987.256)\",\n        \"user_email\": \"maamoun.h.najeeb@gmail.com\",\n        \"reason\": \"I have some issues in the work\",\n        \"read\": false\n    }\n]"}],"_postman_id":"5020339e-109d-4939-97bd-5fd4f7f434c6"},{"name":"user rejected order items","id":"26ac03a6-b30e-46e6-a55c-356c30ce2252","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MTI1NTA4LCJpYXQiOjE3MDcxMjQzMDgsImp0aSI6IjA1YzEzODY4OGE4ZDRkODI5Y2U1ZGMwMmRiN2Y4NzAzIiwidXNlcl9pZCI6MjN9.0_JTrsXQIl5BjALn1q8DV6ju-XJ6H6sQ8c103PK_d8g","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/orders/rejected/user/29","description":"<p>This endpoint retrieves a list of rejected order items for a specific user.</p>\n<p><em>Maybe admins want to know rejected oredr items for specifc user so add user ID in the end of the url (see examples)</em></p>\n<p><strong>This endpoint is for authenticated users.</strong></p>\n<p>The HTTP GET request should be made to http://127.0.0.1:8000/api/v1/orders/rejected/user/29. The response will be in JSON format and will include the details of the rejected orders, such as order ID, location, user email, reason for rejection, and whether the order has been read.</p>\n<p>Example response:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">[\n    {\n        \"order_id\": 0,\n        \"location\": \"\",\n        \"user_email\": \"\",\n        \"reason\": \"\",\n        \"read\": true\n    }\n]\n\n</code></pre>\n","urlObject":{"path":["orders","rejected","user","29"],"host":["http://127.0.0.1:8000/api/v1"],"query":[],"variable":[]}},"response":[{"id":"5ae2b382-024b-447d-bc70-16c89e7b162c","name":"user rejected order items","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MTI1MzgwLCJpYXQiOjE3MDcxMjQxODAsImp0aSI6ImNkZGRiOGJlY2VlNjRjMDM5MzA4ZjQwYTIzZTc2NzVmIiwidXNlcl9pZCI6Mjl9.emXejO49BTBPfU3wHW1D5IIHER1Tl_pF_Yv6gbTFwqI","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/orders/rejected/user/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 05 Feb 2024 09:09:54 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.11.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language"},{"key":"Allow","value":"OPTIONS, GET"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"162"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"order_id\": 69,\n        \"location\": \"SRID=4326;POINT (32.6541 -987.256)\",\n        \"user_email\": \"maamoun.h.najeeb@gmail.com\",\n        \"reason\": \"I have some issues in the work\",\n        \"read\": false\n    }\n]"},{"id":"a8685a43-6a4b-4ee8-b33f-0459b4090b9b","name":"user rejected order items","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MTI1NTA4LCJpYXQiOjE3MDcxMjQzMDgsImp0aSI6IjA1YzEzODY4OGE4ZDRkODI5Y2U1ZGMwMmRiN2Y4NzAzIiwidXNlcl9pZCI6MjN9.0_JTrsXQIl5BjALn1q8DV6ju-XJ6H6sQ8c103PK_d8g","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/orders/rejected/user/29"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 05 Feb 2024 09:12:00 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.11.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language"},{"key":"Allow","value":"OPTIONS, GET"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"162"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"order_id\": 69,\n        \"location\": \"SRID=4326;POINT (32.6541 -987.256)\",\n        \"user_email\": \"maamoun.h.najeeb@gmail.com\",\n        \"reason\": \"I have some issues in the work\",\n        \"read\": false\n    }\n]"}],"_postman_id":"26ac03a6-b30e-46e6-a55c-356c30ce2252"},{"name":"service provider rejected order items","id":"27df022c-229a-4b45-bef6-b519681f231f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MTI1NTQ4LCJpYXQiOjE3MDcxMjQzNDgsImp0aSI6IjRhZDE3NjYxMTk0MDQ0NTJiZDdjNjc0OWI2YTEyODlkIiwidXNlcl9pZCI6MzB9.hqpkYZ62-2pGe5P4auCUK1jE1rZA4exkBAf-IEN-IXM","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/orders/rejected/provider/30","description":"<p>This endpoint retrieves a list of rejected orders from the provider.</p>\n<p><em>Maybe admins want to know rejected order items for specifc service provider so add user ID in the end of the url (see examples)</em></p>\n<p><strong>This endpoint is for service provider and admins.</strong></p>\n<p>The response will contain an array of objects, where each object represents a rejected order and includes the order ID, location, user email, reason for rejection, and a flag indicating whether the order has been read.</p>\n<p>The response will have a status code of 200 and a content type of application/json. Here is an example of the response:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">[{\"order_id\":0,\"location\":\"\",\"user_email\":\"\",\"reason\":\"\",\"read\":true}]\n\n</code></pre>\n","urlObject":{"path":["orders","rejected","provider","30"],"host":["http://127.0.0.1:8000/api/v1"],"query":[],"variable":[]}},"response":[{"id":"181bf372-4ee0-4084-a858-b62b987d4481","name":"service provider rejected order items","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MTI1NTQ4LCJpYXQiOjE3MDcxMjQzNDgsImp0aSI6IjRhZDE3NjYxMTk0MDQ0NTJiZDdjNjc0OWI2YTEyODlkIiwidXNlcl9pZCI6MzB9.hqpkYZ62-2pGe5P4auCUK1jE1rZA4exkBAf-IEN-IXM","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/orders/rejected/provider/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 05 Feb 2024 09:13:28 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.11.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language"},{"key":"Allow","value":"OPTIONS, GET"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"162"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"order_id\": 69,\n        \"location\": \"SRID=4326;POINT (32.6541 -987.256)\",\n        \"user_email\": \"maamoun.h.najeeb@gmail.com\",\n        \"reason\": \"I have some issues in the work\",\n        \"read\": false\n    }\n]"},{"id":"749496f8-ad85-4020-a793-f3256a01bed2","name":"service provider rejected order items (for admins)","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MTI1NTQ4LCJpYXQiOjE3MDcxMjQzNDgsImp0aSI6IjRhZDE3NjYxMTk0MDQ0NTJiZDdjNjc0OWI2YTEyODlkIiwidXNlcl9pZCI6MzB9.hqpkYZ62-2pGe5P4auCUK1jE1rZA4exkBAf-IEN-IXM","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/orders/rejected/provider/30"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 05 Feb 2024 09:17:10 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.11.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language"},{"key":"Allow","value":"OPTIONS, GET"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"162"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"order_id\": 69,\n        \"location\": \"SRID=4326;POINT (32.6541 -987.256)\",\n        \"user_email\": \"maamoun.h.najeeb@gmail.com\",\n        \"reason\": \"I have some issues in the work\",\n        \"read\": false\n    }\n]"}],"_postman_id":"27df022c-229a-4b45-bef6-b519681f231f"},{"name":"service provider location rejected order items","id":"e3933df5-219c-4198-abba-e67b5b83d84b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MTI1OTc3LCJpYXQiOjE3MDcxMjQ3NzcsImp0aSI6ImFlMzM1MjhkMzE0ZTQyODNhMWVjOWVjNDM4MDE5Yzk3IiwidXNlcl9pZCI6MzB9.kh3o97D-jYULjs79-dxs0dplPhP_3ZnS22U6rk8vSLA","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/orders/rejected/location/4/","description":"<p>This endpoint retrieves rejected orders from service provider at a specific location.</p>\n<p><strong>This endpoint is for admins and service providers only.</strong></p>\n<p>The response will include an array of objects, where each object represents a rejected order and contains the following fields:</p>\n<ul>\n<li><code>order_id</code> (number): The ID of the rejected order.</li>\n<li><code>location</code> (string): The location of the rejected order.</li>\n<li><code>user_email</code> (string): The email of the user associated with the rejected order.</li>\n<li><code>reason</code> (string): The reason for rejection.</li>\n<li><code>read</code> (boolean): Indicates whether the rejection notification has been read.</li>\n</ul>\n<p>Example response:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">[{\"order_id\":0,\"location\":\"\",\"user_email\":\"\",\"reason\":\"\",\"read\":true}]\n\n</code></pre>\n","urlObject":{"path":["orders","rejected","location","4",""],"host":["http://127.0.0.1:8000/api/v1"],"query":[],"variable":[]}},"response":[{"id":"bf00ca70-1dbc-482e-b135-33b414053ac0","name":"service provider location rejected order items","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MTI1OTc3LCJpYXQiOjE3MDcxMjQ3NzcsImp0aSI6ImFlMzM1MjhkMzE0ZTQyODNhMWVjOWVjNDM4MDE5Yzk3IiwidXNlcl9pZCI6MzB9.kh3o97D-jYULjs79-dxs0dplPhP_3ZnS22U6rk8vSLA","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/orders/rejected/location/4/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 05 Feb 2024 09:20:11 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.11.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language"},{"key":"Allow","value":"GET, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"162"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"order_id\": 69,\n        \"location\": \"SRID=4326;POINT (32.6541 -987.256)\",\n        \"user_email\": \"maamoun.h.najeeb@gmail.com\",\n        \"reason\": \"I have some issues in the work\",\n        \"read\": false\n    }\n]"}],"_postman_id":"e3933df5-219c-4198-abba-e67b5b83d84b"}],"id":"ffd5b1ae-b4e7-4910-9afe-a147f32a92e2","_postman_id":"ffd5b1ae-b4e7-4910-9afe-a147f32a92e2","description":""},{"name":"reports","item":[{"name":"provider items report","id":"0b4c4af7-b075-43c6-828c-361e7018d7bf","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MDcyODU1LCJpYXQiOjE3MDcwNzE2NTUsImp0aSI6IjM5MjE3NWU4ZWVhZTQzNjdiOTlkZDc4MjE1N2YxYjNmIiwidXNlcl9pZCI6MzB9.pTQwMAMDFCjFVNUSK4A2gOcPcoDTgSqUc8_hmkUm_OM","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/orders/provider/reports/items/","description":"<p>This endpoint retrieves a list of items which service provider sell (like report).</p>\n<p><strong>This endpoint is for authenticated service providers and admins.</strong></p>\n<p>The response will include an array of objects, where each object represents an item and contains details such as the item ID, order ID, user ID, user email, location, product ID, product title, quantity, unit price, status, note, and last update timestamp.</p>\n","urlObject":{"path":["orders","provider","reports","items",""],"host":["http://127.0.0.1:8000/api/v1"],"query":[],"variable":[]}},"response":[{"id":"ffdb8138-c2be-4199-b34d-b7b9738983a4","name":"provider report","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MDcyODU1LCJpYXQiOjE3MDcwNzE2NTUsImp0aSI6IjM5MjE3NWU4ZWVhZTQzNjdiOTlkZDc4MjE1N2YxYjNmIiwidXNlcl9pZCI6MzB9.pTQwMAMDFCjFVNUSK4A2gOcPcoDTgSqUc8_hmkUm_OM","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/orders/provider/reports/items/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sun, 04 Feb 2024 18:37:43 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.11.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language"},{"key":"Allow","value":"OPTIONS, GET"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"1252"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 61,\n        \"order_id\": 31,\n        \"user_id\": 23,\n        \"user_email\": \"maamoun.haj.najeeb@gmail.com\",\n        \"location_point\": \"SRID=4326;POINT (-116.234234 35.345345)\",\n        \"product_id\": 30,\n        \"product_title\": \"unadol cold and flu\",\n        \"quantity\": 1,\n        \"unit_price\": 1500.2,\n        \"status\": \"ACCEPTED\",\n        \"note\": null,\n        \"location\": \"None\",\n        \"last_update\": \"2023-12-07T15:11:17.387457Z\"\n    },\n    {\n        \"id\": 57,\n        \"order_id\": 29,\n        \"user_id\": 29,\n        \"user_email\": \"maamoun.h.najeeb@gmail.com\",\n        \"location_point\": \"SRID=4326;POINT (-116.234234 35.345345)\",\n        \"product_id\": 31,\n        \"product_title\": \"unadol joint\",\n        \"quantity\": 5,\n        \"unit_price\": 7501,\n        \"status\": \"ACCEPTED\",\n        \"note\": null,\n        \"location\": \"None\",\n        \"last_update\": \"2023-12-07T14:56:05.402396Z\"\n    },\n    {\n        \"id\": 58,\n        \"order_id\": 29,\n        \"user_id\": 29,\n        \"user_email\": \"maamoun.h.najeeb@gmail.com\",\n        \"location_point\": \"SRID=4326;POINT (-19.432432 32.345945)\",\n        \"product_id\": 28,\n        \"product_title\": \"unadol\",\n        \"quantity\": 4,\n        \"unit_price\": 6000.8,\n        \"status\": \"ACCEPTED\",\n        \"note\": null,\n        \"location\": \"None\",\n        \"last_update\": \"2023-12-07T14:56:05.402396Z\"\n    },\n    {\n        \"id\": 62,\n        \"order_id\": 31,\n        \"user_id\": 23,\n        \"user_email\": \"maamoun.haj.najeeb@gmail.com\",\n        \"location_point\": \"SRID=4326;POINT (-19.432432 32.345945)\",\n        \"product_id\": 29,\n        \"product_title\": \"unadol extra\",\n        \"quantity\": 5,\n        \"unit_price\": 7501,\n        \"status\": \"ACCEPTED\",\n        \"note\": null,\n        \"location\": \"None\",\n        \"last_update\": \"2023-12-07T15:11:21.967035Z\"\n    }\n]"}],"_postman_id":"0b4c4af7-b075-43c6-828c-361e7018d7bf"},{"name":"location report","id":"7282f10f-7b32-46ee-8b9c-16b71ecefdd4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MDcyODU1LCJpYXQiOjE3MDcwNzE2NTUsImp0aSI6IjM5MjE3NWU4ZWVhZTQzNjdiOTlkZDc4MjE1N2YxYjNmIiwidXNlcl9pZCI6MzB9.pTQwMAMDFCjFVNUSK4A2gOcPcoDTgSqUc8_hmkUm_OM","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/orders/location/reports/items/4/","description":"<p>This endpoint retrieves a report for the items sold in a specific location for a particular service provider. It makes an HTTP GET request to the specified URL with the location ID as a path parameter.</p>\n<p><strong>This endpoint is for service providers and admins.</strong></p>\n<p>Here is an example of the response:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">[{\"id\":0,\"order_id\":0,\"user_id\":0,\"user_email\":\"\",\"location_point\":\"\",\"product_id\":0,\"product_title\":\"\",\"quantity\":0,\"unit_price\":0,\"status\":\"\",\"note\":null,\"location\":\"\",\"last_update\":\"\"}]\n\n</code></pre>\n","urlObject":{"path":["orders","location","reports","items","4",""],"host":["http://127.0.0.1:8000/api/v1"],"query":[],"variable":[]}},"response":[{"id":"c10043e4-53d7-4381-bbee-f3c1b3179bf6","name":"location report","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MDcyODU1LCJpYXQiOjE3MDcwNzE2NTUsImp0aSI6IjM5MjE3NWU4ZWVhZTQzNjdiOTlkZDc4MjE1N2YxYjNmIiwidXNlcl9pZCI6MzB9.pTQwMAMDFCjFVNUSK4A2gOcPcoDTgSqUc8_hmkUm_OM","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/orders/location/reports/items/4/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sun, 04 Feb 2024 18:42:20 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.11.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language"},{"key":"Allow","value":"GET, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"619"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 58,\n        \"order_id\": 29,\n        \"user_id\": 29,\n        \"user_email\": \"maamoun.h.najeeb@gmail.com\",\n        \"location_point\": \"SRID=4326;POINT (-19.432432 32.345945)\",\n        \"product_id\": 28,\n        \"product_title\": \"unadol\",\n        \"quantity\": 4,\n        \"unit_price\": 6000.8,\n        \"status\": \"ACCEPTED\",\n        \"note\": null,\n        \"location\": \"None\",\n        \"last_update\": \"2023-12-07T14:56:05.402396Z\"\n    },\n    {\n        \"id\": 62,\n        \"order_id\": 31,\n        \"user_id\": 23,\n        \"user_email\": \"maamoun.haj.najeeb@gmail.com\",\n        \"location_point\": \"SRID=4326;POINT (-19.432432 32.345945)\",\n        \"product_id\": 29,\n        \"product_title\": \"unadol extra\",\n        \"quantity\": 5,\n        \"unit_price\": 7501,\n        \"status\": \"ACCEPTED\",\n        \"note\": null,\n        \"location\": \"None\",\n        \"last_update\": \"2023-12-07T15:11:21.967035Z\"\n    }\n]"}],"_postman_id":"7282f10f-7b32-46ee-8b9c-16b71ecefdd4"},{"name":"user report","id":"c517b747-0f8a-443f-a317-7bf863f96401","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MDczNTU1LCJpYXQiOjE3MDcwNzIzNTUsImp0aSI6ImFkYzRhNzEzMTI1MzRhZmE5NWYyNTY4ZmQ3ZjVhOGQ5IiwidXNlcl9pZCI6MjN9.3QSQLjmjZGDEi0lJQve0Xl1YbiZmbqIsdF3Di8FqOVE","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/orders/user/reports/items/29","description":"<p>This endpoint retrieves a list of order items for specific user.</p>\n<p>you could add the user id in the end of the url for admin (see examples).</p>\n<p><strong>This endpoint is for authenticated users.</strong></p>\n<p>The response will be in JSON format and will include details such as the item ID, order ID, user ID, user email, location point, product ID, product title, quantity, unit price, status, note, location, and last update.</p>\n<p>An example response for this request would be:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">[\n    {\n        \"id\": 0,\n        \"order_id\": 0,\n        \"user_id\": 0,\n        \"user_email\": \"\",\n        \"product_id\": 0,\n        \"product_title\": \"\",\n        \"quantity\": 0,\n        \"unit_price\": 0,\n        \"total_price\": 0,\n        \"status\": \"\",\n        \"last_update\": \"\"\n    }\n]\n\n</code></pre>\n","urlObject":{"path":["orders","user","reports","items","29"],"host":["http://127.0.0.1:8000/api/v1"],"query":[],"variable":[]}},"response":[{"id":"547c83d2-1ee9-4d38-a518-f3a0301b578b","name":"user report","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MDczNTU1LCJpYXQiOjE3MDcwNzIzNTUsImp0aSI6ImFkYzRhNzEzMTI1MzRhZmE5NWYyNTY4ZmQ3ZjVhOGQ5IiwidXNlcl9pZCI6MjN9.3QSQLjmjZGDEi0lJQve0Xl1YbiZmbqIsdF3Di8FqOVE","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/orders/user/reports/items/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sun, 04 Feb 2024 18:46:15 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.11.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language"},{"key":"Allow","value":"OPTIONS, GET"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"1247"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 61,\n        \"order_id\": 31,\n        \"user_id\": 23,\n        \"user_email\": \"maamoun.haj.najeeb@gmail.com\",\n        \"location_point\": \"SRID=4326;POINT (-116.234234 35.345345)\",\n        \"product_id\": 30,\n        \"product_title\": \"unadol cold and flu\",\n        \"quantity\": 1,\n        \"unit_price\": 1500.2,\n        \"status\": \"ACCEPTED\",\n        \"note\": null,\n        \"location\": \"None\",\n        \"last_update\": \"2023-12-07T15:11:17.387457Z\"\n    },\n    {\n        \"id\": 62,\n        \"order_id\": 31,\n        \"user_id\": 23,\n        \"user_email\": \"maamoun.haj.najeeb@gmail.com\",\n        \"location_point\": \"SRID=4326;POINT (-19.432432 32.345945)\",\n        \"product_id\": 29,\n        \"product_title\": \"unadol extra\",\n        \"quantity\": 5,\n        \"unit_price\": 7501,\n        \"status\": \"ACCEPTED\",\n        \"note\": null,\n        \"location\": \"None\",\n        \"last_update\": \"2023-12-07T15:11:21.967035Z\"\n    },\n    {\n        \"id\": 63,\n        \"order_id\": 31,\n        \"user_id\": 23,\n        \"user_email\": \"maamoun.haj.najeeb@gmail.com\",\n        \"location_point\": \"SRID=4326;POINT (-190.432432 302.345945)\",\n        \"product_id\": 27,\n        \"product_title\": \"gicouz\",\n        \"quantity\": 4,\n        \"unit_price\": 6000.8,\n        \"status\": \"ACCEPTED\",\n        \"note\": null,\n        \"location\": \"None\",\n        \"last_update\": \"2023-12-07T15:11:52.271235Z\"\n    },\n    {\n        \"id\": 65,\n        \"order_id\": 33,\n        \"user_id\": 23,\n        \"user_email\": \"maamoun.haj.najeeb@gmail.com\",\n        \"location_point\": \"SRID=4326;POINT (-90.432432 2.345945)\",\n        \"product_id\": 25,\n        \"product_title\": \"Nan\",\n        \"quantity\": 3,\n        \"unit_price\": 4500.6,\n        \"status\": \"ACCEPTED\",\n        \"note\": null,\n        \"location\": \"None\",\n        \"last_update\": \"2023-12-07T17:54:20.250038Z\"\n    }\n]"},{"id":"143f2a37-9881-4ade-9fa9-ab3f69bb5238","name":"user report by admin","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MDczNTU1LCJpYXQiOjE3MDcwNzIzNTUsImp0aSI6ImFkYzRhNzEzMTI1MzRhZmE5NWYyNTY4ZmQ3ZjVhOGQ5IiwidXNlcl9pZCI6MjN9.3QSQLjmjZGDEi0lJQve0Xl1YbiZmbqIsdF3Di8FqOVE","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/orders/user/reports/items/29"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sun, 04 Feb 2024 18:48:26 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.11.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language"},{"key":"Allow","value":"OPTIONS, GET"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"2570"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 57,\n        \"order_id\": 29,\n        \"user_id\": 29,\n        \"user_email\": \"maamoun.h.najeeb@gmail.com\",\n        \"location_point\": \"SRID=4326;POINT (-116.234234 35.345345)\",\n        \"product_id\": 31,\n        \"product_title\": \"unadol joint\",\n        \"quantity\": 5,\n        \"unit_price\": 7501,\n        \"status\": \"ACCEPTED\",\n        \"note\": null,\n        \"location\": \"None\",\n        \"last_update\": \"2023-12-07T14:56:05.402396Z\"\n    },\n    {\n        \"id\": 58,\n        \"order_id\": 29,\n        \"user_id\": 29,\n        \"user_email\": \"maamoun.h.najeeb@gmail.com\",\n        \"location_point\": \"SRID=4326;POINT (-19.432432 32.345945)\",\n        \"product_id\": 28,\n        \"product_title\": \"unadol\",\n        \"quantity\": 4,\n        \"unit_price\": 6000.8,\n        \"status\": \"ACCEPTED\",\n        \"note\": null,\n        \"location\": \"None\",\n        \"last_update\": \"2023-12-07T14:56:05.402396Z\"\n    },\n    {\n        \"id\": 59,\n        \"order_id\": 29,\n        \"user_id\": 29,\n        \"user_email\": \"maamoun.h.najeeb@gmail.com\",\n        \"location_point\": \"SRID=4326;POINT (-190.432432 302.345945)\",\n        \"product_id\": 26,\n        \"product_title\": \"bebelait\",\n        \"quantity\": 3,\n        \"unit_price\": 4500.6,\n        \"status\": \"ACCEPTED\",\n        \"note\": null,\n        \"location\": \"None\",\n        \"last_update\": \"2023-12-07T14:59:53.290502Z\"\n    },\n    {\n        \"id\": 60,\n        \"order_id\": 30,\n        \"user_id\": 29,\n        \"user_email\": \"maamoun.h.najeeb@gmail.com\",\n        \"location_point\": \"SRID=4326;POINT (-90.432432 2.345945)\",\n        \"product_id\": 24,\n        \"product_title\": \"childs milk\",\n        \"quantity\": 2,\n        \"unit_price\": 3000.4,\n        \"status\": \"ACCEPTED\",\n        \"note\": null,\n        \"location\": \"None\",\n        \"last_update\": \"2023-12-07T15:00:02.341865Z\"\n    },\n    {\n        \"id\": 66,\n        \"order_id\": 34,\n        \"user_id\": 29,\n        \"user_email\": \"maamoun.h.najeeb@gmail.com\",\n        \"location_point\": \"SRID=4326;POINT (-90.432432 2.345945)\",\n        \"product_id\": 25,\n        \"product_title\": \"Nan\",\n        \"quantity\": 3,\n        \"unit_price\": 4500.6,\n        \"status\": \"PENDING\",\n        \"note\": \"Hello, World!\",\n        \"location\": \"None\",\n        \"last_update\": \"2024-01-27T16:39:54.220868Z\"\n    },\n    {\n        \"id\": 67,\n        \"order_id\": 35,\n        \"user_id\": 29,\n        \"user_email\": \"maamoun.h.najeeb@gmail.com\",\n        \"location_point\": \"SRID=4326;POINT (-19.432432 32.345945)\",\n        \"product_id\": 29,\n        \"product_title\": \"unadol extra\",\n        \"quantity\": 3,\n        \"unit_price\": 4500.6,\n        \"status\": \"PENDING\",\n        \"note\": \"Hello, World!\",\n        \"location\": \"None\",\n        \"last_update\": \"2024-01-28T07:32:17.976748Z\"\n    },\n    {\n        \"id\": 68,\n        \"order_id\": 37,\n        \"user_id\": 29,\n        \"user_email\": \"maamoun.h.najeeb@gmail.com\",\n        \"location_point\": \"SRID=4326;POINT (-19.432432 32.345945)\",\n        \"product_id\": 29,\n        \"product_title\": \"unadol extra\",\n        \"quantity\": 3,\n        \"unit_price\": 4500.6,\n        \"status\": \"PENDING\",\n        \"note\": \"Hello, World!\",\n        \"location\": \"SRID=4326;POINT (32.6541 -987.256)\",\n        \"last_update\": \"2024-01-28T07:35:32.495030Z\"\n    },\n    {\n        \"id\": 69,\n        \"order_id\": 38,\n        \"user_id\": 29,\n        \"user_email\": \"maamoun.h.najeeb@gmail.com\",\n        \"location_point\": \"SRID=4326;POINT (-19.432432 32.345945)\",\n        \"product_id\": 29,\n        \"product_title\": \"unadol extra\",\n        \"quantity\": 3,\n        \"unit_price\": 4500.6,\n        \"status\": \"PENDING\",\n        \"note\": \"Hello, World!\",\n        \"location\": \"SRID=4326;POINT (32.6541 -987.256)\",\n        \"last_update\": \"2024-01-28T07:37:04.853653Z\"\n    }\n]"}],"_postman_id":"c517b747-0f8a-443f-a317-7bf863f96401"}],"id":"817607ea-7a8e-4a9b-a5da-c96a987c7c8b","_postman_id":"817607ea-7a8e-4a9b-a5da-c96a987c7c8b","description":""},{"name":"specific order","item":[{"name":"get","id":"bf02346d-e8d2-4bd9-9578-f95d201821bc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MDYxODU0LCJpYXQiOjE3MDcwNjA2NTQsImp0aSI6ImU5OWY2Njc4NDQ0ODQ0ODc5YTBjZjUzNmU5OGJkNTU5IiwidXNlcl9pZCI6Mjl9.KlEyLnAt7R1ofSqme5K84Tfw6sLoAvx9zHDvkYHjxxE","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/orders/29/","description":"<p>This endpoint retrieves the details of a specific order with the given order ID.</p>\n<p><strong>This endpoint is for authenticated users.</strong></p>\n<p>The response will include the order ID, patient ID, creation date, and a list of order items with their details such as item ID, product ID, product name, quantity, price, status, note, location, and last update.</p>\n<p>An example response for this request would be:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"patient\": \"\",\n    \"items\": [\n        {\n            \"product\": \"\",\n            \"price\": \"\",\n            \"quantity\": \"\",\n            \"updated_at\": \"\"\n        }\n    ]\n}\n\n</code></pre>\n","urlObject":{"path":["orders","29",""],"host":["http://127.0.0.1:8000/api/v1"],"query":[],"variable":[]}},"response":[{"id":"ef4b1228-c539-4fb5-be5f-9ed030026e4a","name":"get","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MDYxODU0LCJpYXQiOjE3MDcwNjA2NTQsImp0aSI6ImU5OWY2Njc4NDQ0ODQ0ODc5YTBjZjUzNmU5OGJkNTU5IiwidXNlcl9pZCI6Mjl9.KlEyLnAt7R1ofSqme5K84Tfw6sLoAvx9zHDvkYHjxxE","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/orders/29/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sun, 04 Feb 2024 15:32:01 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.11.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language"},{"key":"Allow","value":"GET, DELETE, HEAD, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"673"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"order_id\": 29,\n        \"patient_id\": 29,\n        \"created_at\": \"2023-12-07T14:56:05.383566Z\",\n        \"order_items\": [\n            {\n                \"order_id\": 29,\n                \"item_id\": 57,\n                \"product_id\": 31,\n                \"product_name\": \"unadol joint\",\n                \"quantity\": 5,\n                \"price\": 7501,\n                \"status\": \"ACCEPTED\",\n                \"note\": null,\n                \"location\": \"None\",\n                \"last_update\": \"2023-12-07T14:56:05.402396Z\"\n            },\n            {\n                \"order_id\": 29,\n                \"item_id\": 58,\n                \"product_id\": 28,\n                \"product_name\": \"unadol\",\n                \"quantity\": 4,\n                \"price\": 6000.8,\n                \"status\": \"ACCEPTED\",\n                \"note\": null,\n                \"location\": \"None\",\n                \"last_update\": \"2023-12-07T14:56:05.402396Z\"\n            },\n            {\n                \"order_id\": 29,\n                \"item_id\": 59,\n                \"product_id\": 26,\n                \"product_name\": \"bebelait\",\n                \"quantity\": 3,\n                \"price\": 4500.6,\n                \"status\": \"ACCEPTED\",\n                \"note\": null,\n                \"location\": \"None\",\n                \"last_update\": \"2023-12-07T14:59:53.290502Z\"\n            }\n        ]\n    }\n]"}],"_postman_id":"bf02346d-e8d2-4bd9-9578-f95d201821bc"},{"name":"delete","id":"65493248-870b-42f1-9ee1-2bb9d816423c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MDYyMzMyLCJpYXQiOjE3MDcwNjExMzIsImp0aSI6ImM5OTU0MDA0NzllODQxOGM5Yjc5MzY1NmNmOGJkOGI3IiwidXNlcl9pZCI6Mjl9.juPkADJSxwQg5BK-m4L-ZEk4VRo88JEX8et9wwQ5Yjo","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/orders/39/","description":"<h3 id=\"delete-order\">Delete Order</h3>\n<p>This endpoint is used to delete a specific order identified by its ID.</p>\n<p><strong>This enpoint is for admins only.</strong></p>\n<h4 id=\"request-parameters\">Request Parameters</h4>\n<ul>\n<li>ID: The unique identifier of the order to be deleted.</li>\n</ul>\n<h4 id=\"response\">Response</h4>\n<ul>\n<li>Status: 204 - No Content</li>\n<li>Content-Type: text/xml</li>\n</ul>\n","urlObject":{"path":["orders","39",""],"host":["http://127.0.0.1:8000/api/v1"],"query":[],"variable":[]}},"response":[{"id":"dd6ab40b-743f-4a27-96cd-a28385a62e6d","name":"delete","originalRequest":{"method":"DELETE","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MDYyMzMyLCJpYXQiOjE3MDcwNjExMzIsImp0aSI6ImM5OTU0MDA0NzllODQxOGM5Yjc5MzY1NmNmOGJkOGI3IiwidXNlcl9pZCI6Mjl9.juPkADJSxwQg5BK-m4L-ZEk4VRo88JEX8et9wwQ5Yjo","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/orders/39/"},"status":"No Content","code":204,"_postman_previewlanguage":"plain","header":[{"key":"Date","value":"Sun, 04 Feb 2024 15:43:37 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.11.0"},{"key":"Vary","value":"Accept, origin, Accept-Language"},{"key":"Allow","value":"GET, DELETE, HEAD, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"0"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":null}],"_postman_id":"65493248-870b-42f1-9ee1-2bb9d816423c"},{"name":"create","id":"26bc9a50-dd93-44d8-92cf-d9b6566f9fbc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MDYyMzMyLCJpYXQiOjE3MDcwNjExMzIsImp0aSI6ImM5OTU0MDA0NzllODQxOGM5Yjc5MzY1NmNmOGJkOGI3IiwidXNlcl9pZCI6Mjl9.juPkADJSxwQg5BK-m4L-ZEk4VRo88JEX8et9wwQ5Yjo","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"items\": [\n    {\n      \"product\": 29,\n      \"quantity\": 25,\n      \"location\": \"SRID=4326;POINT (32.6541 -987.256)\",\n      \"note\": \"HEllow, world\"\n    },\n    {\n      \"product\": 30,\n      \"quantity\": 13,\n      \"location\": \"SRID=4326;POINT (32.6541 -987.256)\",\n      \"note\": \"Hi\"\n    }\n  ]\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"http://127.0.0.1:8000/api/v1/orders/","description":"<h1 id=\"add-new-order\">Add New Order</h1>\n<p>This endpoint allows you to create a new order.</p>\n<p>Each order contains one or more item, we get the items from the user cart items and grouped it in one order</p>\n<p><strong>This endpoint is for authenticated users.</strong></p>\n<h2 id=\"request-body\">Request Body</h2>\n<ul>\n<li><code>items</code> (array of objects) - An array containing details of the items in the order.<ul>\n<li><code>product</code> (number) - The ID of the product.</li>\n<li><code>quantity</code> (number) - The quantity of the product.</li>\n<li><code>location</code> (string) - The location for the order.</li>\n<li><code>note</code> (string) - Any additional notes for the order.</li>\n</ul>\n</li>\n</ul>\n<p>Example:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"items\": [\n    {\n      \"product\": 0,\n      \"quantity\": 0,\n      \"location\": \"\",\n      \"note\": \"\"\n    }\n  ]\n}\n\n</code></pre>\n<h2 id=\"response\">Response</h2>\n<ul>\n<li><code>order_id</code> (number) - The ID of the newly created order.</li>\n<li><code>patient_id</code> (number) - The ID of the patient associated with the order.</li>\n<li><code>created_at</code> (string) - The timestamp of when the order was created.</li>\n<li><code>order_items</code> (array of objects) - An array containing details of the items in the order.<ul>\n<li><code>order_id</code> (number) - The ID of the order.</li>\n<li><code>item_id</code> (number) - The ID of the item.</li>\n<li><code>product_id</code> (number) - The ID of the product.</li>\n<li><code>product_name</code> (string) - The name of the product.</li>\n<li><code>quantity</code> (number) - The quantity of the product.</li>\n<li><code>price</code> (number) - The price of the product.</li>\n<li><code>status</code> (string) - The status of the order item.</li>\n<li><code>note</code> (string) - Any additional notes for the order item.</li>\n<li><code>location</code> (string) - The location for the order item.</li>\n<li><code>last_update</code> (string) - The timestamp of the last update for the order item.</li>\n</ul>\n</li>\n</ul>\n<p>Example Response:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"order_id\": 0,\n  \"patient_id\": 0,\n  \"created_at\": \"\",\n  \"order_items\": [\n    {\n      \"order_id\": 0,\n      \"item_id\": 0,\n      \"product_id\": 0,\n      \"product_name\": \"\",\n      \"quantity\": 0,\n      \"price\": 0,\n      \"status\": \"\",\n      \"note\": \"\",\n      \"location\": \"\",\n      \"last_update\": \"\"\n    }\n  ]\n}\n\n</code></pre>\n","urlObject":{"path":["orders",""],"host":["http://127.0.0.1:8000/api/v1"],"query":[],"variable":[]}},"response":[{"id":"93d111a1-efa9-4787-a8c3-0e74b76d129b","name":"create","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MDYyMzMyLCJpYXQiOjE3MDcwNjExMzIsImp0aSI6ImM5OTU0MDA0NzllODQxOGM5Yjc5MzY1NmNmOGJkOGI3IiwidXNlcl9pZCI6Mjl9.juPkADJSxwQg5BK-m4L-ZEk4VRo88JEX8et9wwQ5Yjo","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"items\": [\n    {\n      \"product\": 29,\n      \"quantity\": 25,\n      \"location\": \"SRID=4326;POINT (32.6541 -987.256)\",\n      \"note\": \"HEllow, world\"\n    },\n    {\n      \"product\": 30,\n      \"quantity\": 13,\n      \"location\": \"SRID=4326;POINT (32.6541 -987.256)\",\n      \"note\": \"Hi\"\n    }\n  ]\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"http://127.0.0.1:8000/api/v1/orders/"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sun, 04 Feb 2024 15:40:03 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.11.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language"},{"key":"Allow","value":"POST, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"564"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"order_id\": 39,\n    \"patient_id\": 29,\n    \"created_at\": \"2024-02-04T15:40:03.742391Z\",\n    \"order_items\": [\n        {\n            \"order_id\": 39,\n            \"item_id\": 70,\n            \"product_id\": 29,\n            \"product_name\": \"unadol extra\",\n            \"quantity\": 25,\n            \"price\": 37505,\n            \"status\": \"PENDING\",\n            \"note\": \"HEllow, world\",\n            \"location\": \"SRID=4326;POINT (32.6541 -987.256)\",\n            \"last_update\": \"2024-02-04T15:40:03.774652Z\"\n        },\n        {\n            \"order_id\": 39,\n            \"item_id\": 71,\n            \"product_id\": 30,\n            \"product_name\": \"unadol cold and flu\",\n            \"quantity\": 13,\n            \"price\": 19502.6,\n            \"status\": \"PENDING\",\n            \"note\": \"Hi\",\n            \"location\": \"SRID=4326;POINT (32.6541 -987.256)\",\n            \"last_update\": \"2024-02-04T15:40:03.774652Z\"\n        }\n    ]\n}"}],"_postman_id":"26bc9a50-dd93-44d8-92cf-d9b6566f9fbc"}],"id":"77bbbfc0-a8a2-4bcb-9b8e-f47369a9989d","_postman_id":"77bbbfc0-a8a2-4bcb-9b8e-f47369a9989d","description":""},{"name":"all orders","id":"b1023658-907d-4af0-b60e-a6998c1dd00c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MDcyMzg4LCJpYXQiOjE3MDcwNzExODgsImp0aSI6IjdmMDE4YTc2ZDAyMjRkOWJiOTYwMDhiYjAxNGJjYjE1IiwidXNlcl9pZCI6MjN9.-PaE6N2vWAEL5r5-0ASFVEczuQql9VGlqY-KiMXbbIY","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/orders/all/","description":"<h1 id=\"get-all-orders\">Get All Orders</h1>\n<p>This endpoint retrieves all orders.</p>\n<p><strong>This endpoint is for admins only.</strong></p>\n<h3 id=\"http-request\">HTTP Request</h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-http\">GET http://127.0.0.1:8000/api/v1/orders/all/\n\n</code></pre>\n<h3 id=\"response\">Response</h3>\n<ul>\n<li>Status: 200</li>\n<li>Content-Type: application/json</li>\n</ul>\n<p>Example Response Body:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">[\n    {\n        \"order_id\": 0,\n        \"patient_id\": 0,\n        \"created_at\": \"\",\n        \"order_items\": [\n            {\n                \"order_id\": 0,\n                \"product_id\": 0,\n                \"product_name\": \"\",\n                \"quantity\": 0,\n                \"price\": 0,\n                \"status\": \"\",\n                \"updated_at\": \"\"\n            }\n        ]\n    }\n]\n\n</code></pre>\n","urlObject":{"path":["orders","all",""],"host":["http://127.0.0.1:8000/api/v1"],"query":[],"variable":[]}},"response":[{"id":"108491ea-3253-4053-a1a9-f4d873b27673","name":"all orders","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MDcyMzg4LCJpYXQiOjE3MDcwNzExODgsImp0aSI6IjdmMDE4YTc2ZDAyMjRkOWJiOTYwMDhiYjAxNGJjYjE1IiwidXNlcl9pZCI6MjN9.-PaE6N2vWAEL5r5-0ASFVEczuQql9VGlqY-KiMXbbIY","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/orders/all/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sun, 04 Feb 2024 18:26:45 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.11.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language"},{"key":"Allow","value":"OPTIONS, GET"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"3349"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"order_id\": 28,\n        \"patient_id\": 29,\n        \"created_at\": \"2023-12-07T10:56:24.076720Z\",\n        \"order_items\": []\n    },\n    {\n        \"order_id\": 29,\n        \"patient_id\": 29,\n        \"created_at\": \"2023-12-07T14:56:05.383566Z\",\n        \"order_items\": [\n            {\n                \"order_id\": 29,\n                \"item_id\": 57,\n                \"product_id\": 31,\n                \"product_name\": \"unadol joint\",\n                \"quantity\": 5,\n                \"price\": 7501,\n                \"status\": \"ACCEPTED\",\n                \"note\": null,\n                \"location\": \"None\",\n                \"last_update\": \"2023-12-07T14:56:05.402396Z\"\n            },\n            {\n                \"order_id\": 29,\n                \"item_id\": 58,\n                \"product_id\": 28,\n                \"product_name\": \"unadol\",\n                \"quantity\": 4,\n                \"price\": 6000.8,\n                \"status\": \"ACCEPTED\",\n                \"note\": null,\n                \"location\": \"None\",\n                \"last_update\": \"2023-12-07T14:56:05.402396Z\"\n            },\n            {\n                \"order_id\": 29,\n                \"item_id\": 59,\n                \"product_id\": 26,\n                \"product_name\": \"bebelait\",\n                \"quantity\": 3,\n                \"price\": 4500.6,\n                \"status\": \"ACCEPTED\",\n                \"note\": null,\n                \"location\": \"None\",\n                \"last_update\": \"2023-12-07T14:59:53.290502Z\"\n            }\n        ]\n    },\n    {\n        \"order_id\": 30,\n        \"patient_id\": 29,\n        \"created_at\": \"2023-12-07T14:56:49.563674Z\",\n        \"order_items\": [\n            {\n                \"order_id\": 30,\n                \"item_id\": 60,\n                \"product_id\": 24,\n                \"product_name\": \"childs milk\",\n                \"quantity\": 2,\n                \"price\": 3000.4,\n                \"status\": \"ACCEPTED\",\n                \"note\": null,\n                \"location\": \"None\",\n                \"last_update\": \"2023-12-07T15:00:02.341865Z\"\n            }\n        ]\n    },\n    {\n        \"order_id\": 31,\n        \"patient_id\": 23,\n        \"created_at\": \"2023-12-07T15:07:54.314351Z\",\n        \"order_items\": [\n            {\n                \"order_id\": 31,\n                \"item_id\": 61,\n                \"product_id\": 30,\n                \"product_name\": \"unadol cold and flu\",\n                \"quantity\": 1,\n                \"price\": 1500.2,\n                \"status\": \"ACCEPTED\",\n                \"note\": null,\n                \"location\": \"None\",\n                \"last_update\": \"2023-12-07T15:11:17.387457Z\"\n            },\n            {\n                \"order_id\": 31,\n                \"item_id\": 62,\n                \"product_id\": 29,\n                \"product_name\": \"unadol extra\",\n                \"quantity\": 5,\n                \"price\": 7501,\n                \"status\": \"ACCEPTED\",\n                \"note\": null,\n                \"location\": \"None\",\n                \"last_update\": \"2023-12-07T15:11:21.967035Z\"\n            },\n            {\n                \"order_id\": 31,\n                \"item_id\": 63,\n                \"product_id\": 27,\n                \"product_name\": \"gicouz\",\n                \"quantity\": 4,\n                \"price\": 6000.8,\n                \"status\": \"ACCEPTED\",\n                \"note\": null,\n                \"location\": \"None\",\n                \"last_update\": \"2023-12-07T15:11:52.271235Z\"\n            }\n        ]\n    },\n    {\n        \"order_id\": 33,\n        \"patient_id\": 23,\n        \"created_at\": \"2023-12-07T15:19:14.378566Z\",\n        \"order_items\": [\n            {\n                \"order_id\": 33,\n                \"item_id\": 65,\n                \"product_id\": 25,\n                \"product_name\": \"Nan\",\n                \"quantity\": 3,\n                \"price\": 4500.6,\n                \"status\": \"ACCEPTED\",\n                \"note\": null,\n                \"location\": \"None\",\n                \"last_update\": \"2023-12-07T17:54:20.250038Z\"\n            }\n        ]\n    },\n    {\n        \"order_id\": 34,\n        \"patient_id\": 29,\n        \"created_at\": \"2024-01-27T16:39:54.202743Z\",\n        \"order_items\": [\n            {\n                \"order_id\": 34,\n                \"item_id\": 66,\n                \"product_id\": 25,\n                \"product_name\": \"Nan\",\n                \"quantity\": 3,\n                \"price\": 4500.6,\n                \"status\": \"PENDING\",\n                \"note\": \"Hello, World!\",\n                \"location\": \"None\",\n                \"last_update\": \"2024-01-27T16:39:54.220868Z\"\n            }\n        ]\n    },\n    {\n        \"order_id\": 35,\n        \"patient_id\": 29,\n        \"created_at\": \"2024-01-28T07:32:17.959986Z\",\n        \"order_items\": [\n            {\n                \"order_id\": 35,\n                \"item_id\": 67,\n                \"product_id\": 29,\n                \"product_name\": \"unadol extra\",\n                \"quantity\": 3,\n                \"price\": 4500.6,\n                \"status\": \"PENDING\",\n                \"note\": \"Hello, World!\",\n                \"location\": \"None\",\n                \"last_update\": \"2024-01-28T07:32:17.976748Z\"\n            }\n        ]\n    },\n    {\n        \"order_id\": 36,\n        \"patient_id\": 29,\n        \"created_at\": \"2024-01-28T07:34:28.146255Z\",\n        \"order_items\": []\n    },\n    {\n        \"order_id\": 37,\n        \"patient_id\": 29,\n        \"created_at\": \"2024-01-28T07:35:32.473381Z\",\n        \"order_items\": [\n            {\n                \"order_id\": 37,\n                \"item_id\": 68,\n                \"product_id\": 29,\n                \"product_name\": \"unadol extra\",\n                \"quantity\": 3,\n                \"price\": 4500.6,\n                \"status\": \"PENDING\",\n                \"note\": \"Hello, World!\",\n                \"location\": \"SRID=4326;POINT (32.6541 -987.256)\",\n                \"last_update\": \"2024-01-28T07:35:32.495030Z\"\n            }\n        ]\n    },\n    {\n        \"order_id\": 38,\n        \"patient_id\": 29,\n        \"created_at\": \"2024-01-28T07:37:04.842092Z\",\n        \"order_items\": [\n            {\n                \"order_id\": 38,\n                \"item_id\": 69,\n                \"product_id\": 29,\n                \"product_name\": \"unadol extra\",\n                \"quantity\": 3,\n                \"price\": 4500.6,\n                \"status\": \"PENDING\",\n                \"note\": \"Hello, World!\",\n                \"location\": \"SRID=4326;POINT (32.6541 -987.256)\",\n                \"last_update\": \"2024-01-28T07:37:04.853653Z\"\n            }\n        ]\n    }\n]"}],"_postman_id":"b1023658-907d-4af0-b60e-a6998c1dd00c"},{"name":"user orders","id":"78c62e10-3f98-4d98-a2e1-83e61f4fc68c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MDcyNTI4LCJpYXQiOjE3MDcwNzEzMjgsImp0aSI6IjE3OWUwNTY2OTRlZjQ5NzQ4MDNhN2U4M2I0MDhlY2M2IiwidXNlcl9pZCI6Mjl9.qnTV-lTnFWI6IXiB3ON_7dH_WqIR-4gwfDosvqeEITE","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/orders/user/23","description":"<p>This endpoint retrieves the orders associated with the current user, the admin also can see orders for specific user by adding the user id in the end of the url (see the examples).</p>\n<p><strong>This endpoint is for authenticated users.</strong></p>\n<p>A successful request will return a status code of 200 along with a JSON array containing details of the orders, including order ID, patient ID, creation timestamp, and order items. Each order item includes details such as product ID, product name, quantity, price, status, and update timestamp.</p>\n<p>Example response:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">[\n    {\n        \"order_id\": 0,\n        \"patient_id\": 0,\n        \"created_at\": \"\",\n        \"order_items\": [\n            {\n                \"order_id\": 0,\n                \"product_id\": 0,\n                \"product_name\": \"\",\n                \"quantity\": 0,\n                \"price\": 0,\n                \"status\": \"\",\n                \"updated_at\": \"\"\n            }\n        ]\n    }\n]\n\n</code></pre>\n","urlObject":{"path":["orders","user","23"],"host":["http://127.0.0.1:8000/api/v1"],"query":[],"variable":[]}},"response":[{"id":"fceebab0-7971-497c-8163-ea9346a42a01","name":"user orders","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MDcyNTI4LCJpYXQiOjE3MDcwNzEzMjgsImp0aSI6IjE3OWUwNTY2OTRlZjQ5NzQ4MDNhN2U4M2I0MDhlY2M2IiwidXNlcl9pZCI6Mjl9.qnTV-lTnFWI6IXiB3ON_7dH_WqIR-4gwfDosvqeEITE","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/orders/user/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sun, 04 Feb 2024 18:29:28 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.11.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language"},{"key":"Allow","value":"OPTIONS, GET"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"2387"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"order_id\": 28,\n        \"patient_id\": 29,\n        \"created_at\": \"2023-12-07T10:56:24.076720Z\",\n        \"order_items\": []\n    },\n    {\n        \"order_id\": 29,\n        \"patient_id\": 29,\n        \"created_at\": \"2023-12-07T14:56:05.383566Z\",\n        \"order_items\": [\n            {\n                \"order_id\": 29,\n                \"item_id\": 57,\n                \"product_id\": 31,\n                \"product_name\": \"unadol joint\",\n                \"quantity\": 5,\n                \"price\": 7501,\n                \"status\": \"ACCEPTED\",\n                \"note\": null,\n                \"location\": \"None\",\n                \"last_update\": \"2023-12-07T14:56:05.402396Z\"\n            },\n            {\n                \"order_id\": 29,\n                \"item_id\": 58,\n                \"product_id\": 28,\n                \"product_name\": \"unadol\",\n                \"quantity\": 4,\n                \"price\": 6000.8,\n                \"status\": \"ACCEPTED\",\n                \"note\": null,\n                \"location\": \"None\",\n                \"last_update\": \"2023-12-07T14:56:05.402396Z\"\n            },\n            {\n                \"order_id\": 29,\n                \"item_id\": 59,\n                \"product_id\": 26,\n                \"product_name\": \"bebelait\",\n                \"quantity\": 3,\n                \"price\": 4500.6,\n                \"status\": \"ACCEPTED\",\n                \"note\": null,\n                \"location\": \"None\",\n                \"last_update\": \"2023-12-07T14:59:53.290502Z\"\n            }\n        ]\n    },\n    {\n        \"order_id\": 30,\n        \"patient_id\": 29,\n        \"created_at\": \"2023-12-07T14:56:49.563674Z\",\n        \"order_items\": [\n            {\n                \"order_id\": 30,\n                \"item_id\": 60,\n                \"product_id\": 24,\n                \"product_name\": \"childs milk\",\n                \"quantity\": 2,\n                \"price\": 3000.4,\n                \"status\": \"ACCEPTED\",\n                \"note\": null,\n                \"location\": \"None\",\n                \"last_update\": \"2023-12-07T15:00:02.341865Z\"\n            }\n        ]\n    },\n    {\n        \"order_id\": 34,\n        \"patient_id\": 29,\n        \"created_at\": \"2024-01-27T16:39:54.202743Z\",\n        \"order_items\": [\n            {\n                \"order_id\": 34,\n                \"item_id\": 66,\n                \"product_id\": 25,\n                \"product_name\": \"Nan\",\n                \"quantity\": 3,\n                \"price\": 4500.6,\n                \"status\": \"PENDING\",\n                \"note\": \"Hello, World!\",\n                \"location\": \"None\",\n                \"last_update\": \"2024-01-27T16:39:54.220868Z\"\n            }\n        ]\n    },\n    {\n        \"order_id\": 35,\n        \"patient_id\": 29,\n        \"created_at\": \"2024-01-28T07:32:17.959986Z\",\n        \"order_items\": [\n            {\n                \"order_id\": 35,\n                \"item_id\": 67,\n                \"product_id\": 29,\n                \"product_name\": \"unadol extra\",\n                \"quantity\": 3,\n                \"price\": 4500.6,\n                \"status\": \"PENDING\",\n                \"note\": \"Hello, World!\",\n                \"location\": \"None\",\n                \"last_update\": \"2024-01-28T07:32:17.976748Z\"\n            }\n        ]\n    },\n    {\n        \"order_id\": 36,\n        \"patient_id\": 29,\n        \"created_at\": \"2024-01-28T07:34:28.146255Z\",\n        \"order_items\": []\n    },\n    {\n        \"order_id\": 37,\n        \"patient_id\": 29,\n        \"created_at\": \"2024-01-28T07:35:32.473381Z\",\n        \"order_items\": [\n            {\n                \"order_id\": 37,\n                \"item_id\": 68,\n                \"product_id\": 29,\n                \"product_name\": \"unadol extra\",\n                \"quantity\": 3,\n                \"price\": 4500.6,\n                \"status\": \"PENDING\",\n                \"note\": \"Hello, World!\",\n                \"location\": \"SRID=4326;POINT (32.6541 -987.256)\",\n                \"last_update\": \"2024-01-28T07:35:32.495030Z\"\n            }\n        ]\n    },\n    {\n        \"order_id\": 38,\n        \"patient_id\": 29,\n        \"created_at\": \"2024-01-28T07:37:04.842092Z\",\n        \"order_items\": [\n            {\n                \"order_id\": 38,\n                \"item_id\": 69,\n                \"product_id\": 29,\n                \"product_name\": \"unadol extra\",\n                \"quantity\": 3,\n                \"price\": 4500.6,\n                \"status\": \"PENDING\",\n                \"note\": \"Hello, World!\",\n                \"location\": \"SRID=4326;POINT (32.6541 -987.256)\",\n                \"last_update\": \"2024-01-28T07:37:04.853653Z\"\n            }\n        ]\n    }\n]"},{"id":"df9823ff-011e-4d52-ad02-2a6694c5b71b","name":"user orders by admin","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MDcyNTI4LCJpYXQiOjE3MDcwNzEzMjgsImp0aSI6IjE3OWUwNTY2OTRlZjQ5NzQ4MDNhN2U4M2I0MDhlY2M2IiwidXNlcl9pZCI6Mjl9.qnTV-lTnFWI6IXiB3ON_7dH_WqIR-4gwfDosvqeEITE","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/orders/user/23"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sun, 04 Feb 2024 18:31:25 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.11.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language"},{"key":"Allow","value":"OPTIONS, GET"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"963"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"order_id\": 31,\n        \"patient_id\": 23,\n        \"created_at\": \"2023-12-07T15:07:54.314351Z\",\n        \"order_items\": [\n            {\n                \"order_id\": 31,\n                \"item_id\": 61,\n                \"product_id\": 30,\n                \"product_name\": \"unadol cold and flu\",\n                \"quantity\": 1,\n                \"price\": 1500.2,\n                \"status\": \"ACCEPTED\",\n                \"note\": null,\n                \"location\": \"None\",\n                \"last_update\": \"2023-12-07T15:11:17.387457Z\"\n            },\n            {\n                \"order_id\": 31,\n                \"item_id\": 62,\n                \"product_id\": 29,\n                \"product_name\": \"unadol extra\",\n                \"quantity\": 5,\n                \"price\": 7501,\n                \"status\": \"ACCEPTED\",\n                \"note\": null,\n                \"location\": \"None\",\n                \"last_update\": \"2023-12-07T15:11:21.967035Z\"\n            },\n            {\n                \"order_id\": 31,\n                \"item_id\": 63,\n                \"product_id\": 27,\n                \"product_name\": \"gicouz\",\n                \"quantity\": 4,\n                \"price\": 6000.8,\n                \"status\": \"ACCEPTED\",\n                \"note\": null,\n                \"location\": \"None\",\n                \"last_update\": \"2023-12-07T15:11:52.271235Z\"\n            }\n        ]\n    },\n    {\n        \"order_id\": 33,\n        \"patient_id\": 23,\n        \"created_at\": \"2023-12-07T15:19:14.378566Z\",\n        \"order_items\": [\n            {\n                \"order_id\": 33,\n                \"item_id\": 65,\n                \"product_id\": 25,\n                \"product_name\": \"Nan\",\n                \"quantity\": 3,\n                \"price\": 4500.6,\n                \"status\": \"ACCEPTED\",\n                \"note\": null,\n                \"location\": \"None\",\n                \"last_update\": \"2023-12-07T17:54:20.250038Z\"\n            }\n        ]\n    }\n]"}],"_postman_id":"78c62e10-3f98-4d98-a2e1-83e61f4fc68c"}],"id":"dc41ff05-4cc1-46d1-a5ac-3e06543ecd61","_postman_id":"dc41ff05-4cc1-46d1-a5ac-3e06543ecd61","description":""},{"name":"permissions","item":[{"name":"permissions","item":[{"name":"specific permission","item":[{"name":"get","id":"73c1d484-a55a-4968-a011-0db0c29f16b6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3Mjk2NjUzLCJpYXQiOjE3MDcyOTU0NTMsImp0aSI6ImI3ZGI2MzU3NWRlZTRhNDJhNDlhYTM5OWI4Mzg3MjIwIiwidXNlcl9pZCI6MjN9.mcv5gZADDbKQy9FoWL0ExFEqhA3owoAxW_NQKC38m90","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/permissions/1/","description":"<p>This endpoint returns specific permission by it's ID.<br /><strong>This endpoint is for admins only.</strong></p>\n","urlObject":{"path":["permissions","1",""],"host":["http://127.0.0.1:8000/api/v1"],"query":[],"variable":[]}},"response":[{"id":"821de9c2-0a12-4b44-8031-68942f09dd14","name":"get","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3Mjk2NjUzLCJpYXQiOjE3MDcyOTU0NTMsImp0aSI6ImI3ZGI2MzU3NWRlZTRhNDJhNDlhYTM5OWI4Mzg3MjIwIiwidXNlcl9pZCI6MjN9.mcv5gZADDbKQy9FoWL0ExFEqhA3owoAxW_NQKC38m90","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/permissions/1/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 07 Feb 2024 08:47:45 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.11.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language"},{"key":"Allow","value":"GET, PUT, PATCH, DELETE, HEAD, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"78"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 1,\n    \"name\": \"Can add log entry\",\n    \"codename\": \"add_logentry\",\n    \"content_type\": 1\n}"}],"_postman_id":"73c1d484-a55a-4968-a011-0db0c29f16b6"},{"name":"delete","id":"b57cfa92-ca2f-4926-a382-92edda60d66e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3Mjk2NjUzLCJpYXQiOjE3MDcyOTU0NTMsImp0aSI6ImI3ZGI2MzU3NWRlZTRhNDJhNDlhYTM5OWI4Mzg3MjIwIiwidXNlcl9pZCI6MjN9.mcv5gZADDbKQy9FoWL0ExFEqhA3owoAxW_NQKC38m90","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/permissions/153/","description":"<p>This endpoint delete specific permission via ID.  </p>\n<p><strong>This endpoint is for admins only.</strong></p>\n","urlObject":{"path":["permissions","153",""],"host":["http://127.0.0.1:8000/api/v1"],"query":[],"variable":[]}},"response":[{"id":"65f683a6-fa98-4ee3-8b70-ffbea596a5d8","name":"delete","originalRequest":{"method":"DELETE","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3Mjk2NjUzLCJpYXQiOjE3MDcyOTU0NTMsImp0aSI6ImI3ZGI2MzU3NWRlZTRhNDJhNDlhYTM5OWI4Mzg3MjIwIiwidXNlcl9pZCI6MjN9.mcv5gZADDbKQy9FoWL0ExFEqhA3owoAxW_NQKC38m90","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/permissions/153/"},"status":"No Content","code":204,"_postman_previewlanguage":"plain","header":[{"key":"Date","value":"Wed, 07 Feb 2024 08:52:49 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.11.0"},{"key":"Vary","value":"Accept, origin, Accept-Language"},{"key":"Allow","value":"GET, PUT, PATCH, DELETE, HEAD, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"0"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":null}],"_postman_id":"b57cfa92-ca2f-4926-a382-92edda60d66e"},{"name":"create","id":"3288457c-c4f7-4bbd-8833-fca04ea481b5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3Mjk2NjUzLCJpYXQiOjE3MDcyOTU0NTMsImp0aSI6ImI3ZGI2MzU3NWRlZTRhNDJhNDlhYTM5OWI4Mzg3MjIwIiwidXNlcl9pZCI6MjN9.mcv5gZADDbKQy9FoWL0ExFEqhA3owoAxW_NQKC38m90","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"can list all permissions\",\r\n    \"codename\": \"hi_permissions\",\r\n    \"content_type\": 2\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/api/v1/permissions/","description":"<p>This endpoint create new permission in the system.</p>\n<p><strong>This endpoint is for admins only.</strong></p>\n","urlObject":{"path":["permissions",""],"host":["http://127.0.0.1:8000/api/v1"],"query":[],"variable":[]}},"response":[{"id":"fb7c27a1-a467-40ad-9418-ba172f605876","name":"create","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3Mjk2NjUzLCJpYXQiOjE3MDcyOTU0NTMsImp0aSI6ImI3ZGI2MzU3NWRlZTRhNDJhNDlhYTM5OWI4Mzg3MjIwIiwidXNlcl9pZCI6MjN9.mcv5gZADDbKQy9FoWL0ExFEqhA3owoAxW_NQKC38m90","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"can list all permissions\",\r\n    \"codename\": \"list_permissions\",\r\n    \"content_type\": 2\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/api/v1/permissions/"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 07 Feb 2024 08:50:57 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.11.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language"},{"key":"Allow","value":"GET, POST, HEAD, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"91"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 152,\n    \"name\": \"can list all permissions\",\n    \"codename\": \"list_permissions\",\n    \"content_type\": 2\n}"}],"_postman_id":"3288457c-c4f7-4bbd-8833-fca04ea481b5"},{"name":"udpate","id":"7ac3e693-119b-415f-a270-831b45dae83d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3Mjk2NjUzLCJpYXQiOjE3MDcyOTU0NTMsImp0aSI6ImI3ZGI2MzU3NWRlZTRhNDJhNDlhYTM5OWI4Mzg3MjIwIiwidXNlcl9pZCI6MjN9.mcv5gZADDbKQy9FoWL0ExFEqhA3owoAxW_NQKC38m90","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"codename\": \"list_all_permissions\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/api/v1/permissions/152/","description":"<p>This endpoint udpates specific permission via ID.</p>\n<p><strong>This endpoint is for admins only.</strong></p>\n","urlObject":{"path":["permissions","152",""],"host":["http://127.0.0.1:8000/api/v1"],"query":[],"variable":[]}},"response":[{"id":"e068e0ab-9c15-4924-9fa1-7db69d66fa3f","name":"udpate","originalRequest":{"method":"PATCH","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3Mjk2NjUzLCJpYXQiOjE3MDcyOTU0NTMsImp0aSI6ImI3ZGI2MzU3NWRlZTRhNDJhNDlhYTM5OWI4Mzg3MjIwIiwidXNlcl9pZCI6MjN9.mcv5gZADDbKQy9FoWL0ExFEqhA3owoAxW_NQKC38m90","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"codename\": \"list_all_permissions\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/api/v1/permissions/152/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 07 Feb 2024 08:54:21 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.11.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language"},{"key":"Allow","value":"GET, PUT, PATCH, DELETE, HEAD, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"95"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 152,\n    \"name\": \"can list all permissions\",\n    \"codename\": \"list_all_permissions\",\n    \"content_type\": 2\n}"}],"_postman_id":"7ac3e693-119b-415f-a270-831b45dae83d"}],"id":"1ba5bf32-6aee-4180-bc67-5f3967e81ecd","_postman_id":"1ba5bf32-6aee-4180-bc67-5f3967e81ecd","description":""},{"name":"list all permissions","id":"d11d51e5-72a6-4ac6-8759-755152fa1801","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3Mjk2NjUzLCJpYXQiOjE3MDcyOTU0NTMsImp0aSI6ImI3ZGI2MzU3NWRlZTRhNDJhNDlhYTM5OWI4Mzg3MjIwIiwidXNlcl9pZCI6MjN9.mcv5gZADDbKQy9FoWL0ExFEqhA3owoAxW_NQKC38m90","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/permissions/","description":"<p>Thise endpoint returns all permissions in the system.</p>\n<p><strong>This endpoint is for admins only.</strong></p>\n","urlObject":{"path":["permissions",""],"host":["http://127.0.0.1:8000/api/v1"],"query":[],"variable":[]}},"response":[{"id":"eeada565-5763-44c9-9859-ec3eb98282f6","name":"list all permissions","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3Mjk2NjUzLCJpYXQiOjE3MDcyOTU0NTMsImp0aSI6ImI3ZGI2MzU3NWRlZTRhNDJhNDlhYTM5OWI4Mzg3MjIwIiwidXNlcl9pZCI6MjN9.mcv5gZADDbKQy9FoWL0ExFEqhA3owoAxW_NQKC38m90","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/permissions/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 07 Feb 2024 08:53:18 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.11.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language"},{"key":"Allow","value":"GET, POST, HEAD, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"11044"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 1,\n        \"name\": \"Can add log entry\",\n        \"codename\": \"add_logentry\",\n        \"content_type\": 1\n    },\n    {\n        \"id\": 2,\n        \"name\": \"Can change log entry\",\n        \"codename\": \"change_logentry\",\n        \"content_type\": 1\n    },\n    {\n        \"id\": 3,\n        \"name\": \"Can delete log entry\",\n        \"codename\": \"delete_logentry\",\n        \"content_type\": 1\n    },\n    {\n        \"id\": 136,\n        \"name\": \"Can List All Log Entry\",\n        \"codename\": \"list_logentry\",\n        \"content_type\": 1\n    },\n    {\n        \"id\": 4,\n        \"name\": \"Can view log entry\",\n        \"codename\": \"view_logentry\",\n        \"content_type\": 1\n    },\n    {\n        \"id\": 107,\n        \"name\": \"Can add appointments\",\n        \"codename\": \"add_appointments\",\n        \"content_type\": 27\n    },\n    {\n        \"id\": 108,\n        \"name\": \"Can change appointments\",\n        \"codename\": \"change_appointments\",\n        \"content_type\": 27\n    },\n    {\n        \"id\": 109,\n        \"name\": \"Can delete appointments\",\n        \"codename\": \"delete_appointments\",\n        \"content_type\": 27\n    },\n    {\n        \"id\": 133,\n        \"name\": \"can list appointments\",\n        \"codename\": \"list_appointments\",\n        \"content_type\": 27\n    },\n    {\n        \"id\": 110,\n        \"name\": \"Can view appointments\",\n        \"codename\": \"view_appointments\",\n        \"content_type\": 27\n    },\n    {\n        \"id\": 103,\n        \"name\": \"Can add appointments draft\",\n        \"codename\": \"add_appointmentsdraft\",\n        \"content_type\": 26\n    },\n    {\n        \"id\": 104,\n        \"name\": \"Can change appointments draft\",\n        \"codename\": \"change_appointmentsdraft\",\n        \"content_type\": 26\n    },\n    {\n        \"id\": 105,\n        \"name\": \"Can delete appointments draft\",\n        \"codename\": \"delete_appointmentsdraft\",\n        \"content_type\": 26\n    },\n    {\n        \"id\": 120,\n        \"name\": \"can list all drafts\",\n        \"codename\": \"list_drafts\",\n        \"content_type\": 26\n    },\n    {\n        \"id\": 106,\n        \"name\": \"Can view appointments draft\",\n        \"codename\": \"view_appointmentsdraft\",\n        \"content_type\": 26\n    },\n    {\n        \"id\": 111,\n        \"name\": \"Can add rejected appointments\",\n        \"codename\": \"add_rejectedappointments\",\n        \"content_type\": 28\n    },\n    {\n        \"id\": 112,\n        \"name\": \"Can change rejected appointments\",\n        \"codename\": \"change_rejectedappointments\",\n        \"content_type\": 28\n    },\n    {\n        \"id\": 113,\n        \"name\": \"Can delete rejected appointments\",\n        \"codename\": \"delete_rejectedappointments\",\n        \"content_type\": 28\n    },\n    {\n        \"id\": 132,\n        \"name\": \"can list all rejected appointments\",\n        \"codename\": \"list_rejectedappointments\",\n        \"content_type\": 28\n    },\n    {\n        \"id\": 114,\n        \"name\": \"Can view rejected appointments\",\n        \"codename\": \"view_rejectedappointments\",\n        \"content_type\": 28\n    },\n    {\n        \"id\": 9,\n        \"name\": \"Can add group\",\n        \"codename\": \"add_group\",\n        \"content_type\": 3\n    },\n    {\n        \"id\": 10,\n        \"name\": \"Can change group\",\n        \"codename\": \"change_group\",\n        \"content_type\": 3\n    },\n    {\n        \"id\": 11,\n        \"name\": \"Can delete group\",\n        \"codename\": \"delete_group\",\n        \"content_type\": 3\n    },\n    {\n        \"id\": 5,\n        \"name\": \"Can add permission\",\n        \"codename\": \"add_permission\",\n        \"content_type\": 2\n    },\n    {\n        \"id\": 6,\n        \"name\": \"Can change permission\",\n        \"codename\": \"change_permission\",\n        \"content_type\": 2\n    },\n    {\n        \"id\": 7,\n        \"name\": \"Can delete permission\",\n        \"codename\": \"delete_permission\",\n        \"content_type\": 2\n    },\n    {\n        \"id\": 152,\n        \"name\": \"can list all permissions\",\n        \"codename\": \"list_permissions\",\n        \"content_type\": 2\n    },\n    {\n        \"id\": 8,\n        \"name\": \"Can view permission\",\n        \"codename\": \"view_permission\",\n        \"content_type\": 2\n    },\n    {\n        \"id\": 37,\n        \"name\": \"Can add category\",\n        \"codename\": \"add_category\",\n        \"content_type\": 10\n    },\n    {\n        \"id\": 38,\n        \"name\": \"Can change category\",\n        \"codename\": \"change_category\",\n        \"content_type\": 10\n    },\n    {\n        \"id\": 39,\n        \"name\": \"Can delete category\",\n        \"codename\": \"delete_category\",\n        \"content_type\": 10\n    },\n    {\n        \"id\": 40,\n        \"name\": \"Can view category\",\n        \"codename\": \"view_category\",\n        \"content_type\": 10\n    },\n    {\n        \"id\": 137,\n        \"name\": \"Can add contact us\",\n        \"codename\": \"add_contactus\",\n        \"content_type\": 31\n    },\n    {\n        \"id\": 138,\n        \"name\": \"Can change contact us\",\n        \"codename\": \"change_contactus\",\n        \"content_type\": 31\n    },\n    {\n        \"id\": 139,\n        \"name\": \"Can delete contact us\",\n        \"codename\": \"delete_contactus\",\n        \"content_type\": 31\n    },\n    {\n        \"id\": 140,\n        \"name\": \"Can view contact us\",\n        \"codename\": \"view_contactus\",\n        \"content_type\": 31\n    },\n    {\n        \"id\": 13,\n        \"name\": \"Can add content type\",\n        \"codename\": \"add_contenttype\",\n        \"content_type\": 4\n    },\n    {\n        \"id\": 14,\n        \"name\": \"Can change content type\",\n        \"codename\": \"change_contenttype\",\n        \"content_type\": 4\n    },\n    {\n        \"id\": 15,\n        \"name\": \"Can delete content type\",\n        \"codename\": \"delete_contenttype\",\n        \"content_type\": 4\n    },\n    {\n        \"id\": 16,\n        \"name\": \"Can view content type\",\n        \"codename\": \"view_contenttype\",\n        \"content_type\": 4\n    },\n    {\n        \"id\": 35,\n        \"name\": \"Can delete delivery\",\n        \"codename\": \"delete_delivery\",\n        \"content_type\": 9\n    },\n    {\n        \"id\": 150,\n        \"name\": \"Can list all deliveries\",\n        \"codename\": \"list_delivery\",\n        \"content_type\": 9\n    },\n    {\n        \"id\": 115,\n        \"name\": \"Can add notification\",\n        \"codename\": \"add_notification\",\n        \"content_type\": 29\n    },\n    {\n        \"id\": 116,\n        \"name\": \"Can change notification\",\n        \"codename\": \"change_notification\",\n        \"content_type\": 29\n    },\n    {\n        \"id\": 117,\n        \"name\": \"Can delete notification\",\n        \"codename\": \"delete_notification\",\n        \"content_type\": 29\n    },\n    {\n        \"id\": 118,\n        \"name\": \"Can view notification\",\n        \"codename\": \"view_notification\",\n        \"content_type\": 29\n    },\n    {\n        \"id\": 54,\n        \"name\": \"Can change order item\",\n        \"codename\": \"change_orderitem\",\n        \"content_type\": 14\n    },\n    {\n        \"id\": 55,\n        \"name\": \"Can delete order item\",\n        \"codename\": \"delete_orderitem\",\n        \"content_type\": 14\n    },\n    {\n        \"id\": 94,\n        \"name\": \"list all order items\",\n        \"codename\": \"list_orderitems\",\n        \"content_type\": 14\n    },\n    {\n        \"id\": 46,\n        \"name\": \"Can change orders\",\n        \"codename\": \"change_orders\",\n        \"content_type\": 12\n    },\n    {\n        \"id\": 93,\n        \"name\": \"can list all users orders\",\n        \"codename\": \"list_orders\",\n        \"content_type\": 12\n    },\n    {\n        \"id\": 50,\n        \"name\": \"Can change rejected orders\",\n        \"codename\": \"change_rejectedorders\",\n        \"content_type\": 13\n    },\n    {\n        \"id\": 51,\n        \"name\": \"Can delete rejected orders\",\n        \"codename\": \"delete_rejectedorders\",\n        \"content_type\": 13\n    },\n    {\n        \"id\": 131,\n        \"name\": \"can list rejected orders\",\n        \"codename\": \"list_rejectedorders\",\n        \"content_type\": 13\n    },\n    {\n        \"id\": 41,\n        \"name\": \"Can add product\",\n        \"codename\": \"add_product\",\n        \"content_type\": 11\n    },\n    {\n        \"id\": 42,\n        \"name\": \"Can change product\",\n        \"codename\": \"change_product\",\n        \"content_type\": 11\n    },\n    {\n        \"id\": 43,\n        \"name\": \"Can delete product\",\n        \"codename\": \"delete_product\",\n        \"content_type\": 11\n    },\n    {\n        \"id\": 151,\n        \"name\": \"Can list all products rates\",\n        \"codename\": \"list_productrates\",\n        \"content_type\": 24\n    },\n    {\n        \"id\": 21,\n        \"name\": \"Can add ServiceProvider\",\n        \"codename\": \"add_serviceprovider\",\n        \"content_type\": 6\n    },\n    {\n        \"id\": 22,\n        \"name\": \"Can change ServiceProvider\",\n        \"codename\": \"change_serviceprovider\",\n        \"content_type\": 6\n    },\n    {\n        \"id\": 23,\n        \"name\": \"Can delete ServiceProvider\",\n        \"codename\": \"delete_serviceprovider\",\n        \"content_type\": 6\n    },\n    {\n        \"id\": 29,\n        \"name\": \"Can add ServiceProviderLocations\",\n        \"codename\": \"add_serviceproviderlocations\",\n        \"content_type\": 8\n    },\n    {\n        \"id\": 30,\n        \"name\": \"Can change ServiceProviderLocations\",\n        \"codename\": \"change_serviceproviderlocations\",\n        \"content_type\": 8\n    },\n    {\n        \"id\": 31,\n        \"name\": \"Can delete ServiceProviderLocations\",\n        \"codename\": \"delete_serviceproviderlocations\",\n        \"content_type\": 8\n    },\n    {\n        \"id\": 25,\n        \"name\": \"Can add update profile requests\",\n        \"codename\": \"add_updateprofilerequests\",\n        \"content_type\": 7\n    },\n    {\n        \"id\": 26,\n        \"name\": \"Can change update profile requests\",\n        \"codename\": \"change_updateprofilerequests\",\n        \"content_type\": 7\n    },\n    {\n        \"id\": 149,\n        \"name\": \"can check update_profile_request\",\n        \"codename\": \"check_update_profile_requests\",\n        \"content_type\": 7\n    },\n    {\n        \"id\": 27,\n        \"name\": \"Can delete update profile requests\",\n        \"codename\": \"delete_updateprofilerequests\",\n        \"content_type\": 7\n    },\n    {\n        \"id\": 28,\n        \"name\": \"Can view update profile requests\",\n        \"codename\": \"view_updateprofilerequests\",\n        \"content_type\": 7\n    },\n    {\n        \"id\": 99,\n        \"name\": \"Can add service\",\n        \"codename\": \"add_service\",\n        \"content_type\": 25\n    },\n    {\n        \"id\": 100,\n        \"name\": \"Can change service\",\n        \"codename\": \"change_service\",\n        \"content_type\": 25\n    },\n    {\n        \"id\": 101,\n        \"name\": \"Can delete service\",\n        \"codename\": \"delete_service\",\n        \"content_type\": 25\n    },\n    {\n        \"id\": 122,\n        \"name\": \"Can add product rates\",\n        \"codename\": \"add_productrates\",\n        \"content_type\": 30\n    },\n    {\n        \"id\": 126,\n        \"name\": \"Can add service rates\",\n        \"codename\": \"add_servicerates\",\n        \"content_type\": 30\n    },\n    {\n        \"id\": 123,\n        \"name\": \"Can change product rates\",\n        \"codename\": \"change_productrates\",\n        \"content_type\": 30\n    },\n    {\n        \"id\": 127,\n        \"name\": \"Can change service rates\",\n        \"codename\": \"change_servicerates\",\n        \"content_type\": 30\n    },\n    {\n        \"id\": 124,\n        \"name\": \"Can delete product rates\",\n        \"codename\": \"delete_productrates\",\n        \"content_type\": 30\n    },\n    {\n        \"id\": 128,\n        \"name\": \"Can delete service rates\",\n        \"codename\": \"delete_servicerates\",\n        \"content_type\": 30\n    },\n    {\n        \"id\": 134,\n        \"name\": \"can list all services rates\",\n        \"codename\": \"list_servicerates\",\n        \"content_type\": 30\n    },\n    {\n        \"id\": 125,\n        \"name\": \"Can view product rates\",\n        \"codename\": \"view_productrates\",\n        \"content_type\": 30\n    },\n    {\n        \"id\": 129,\n        \"name\": \"Can view service rates\",\n        \"codename\": \"view_servicerates\",\n        \"content_type\": 30\n    },\n    {\n        \"id\": 17,\n        \"name\": \"Can add session\",\n        \"codename\": \"add_session\",\n        \"content_type\": 5\n    },\n    {\n        \"id\": 18,\n        \"name\": \"Can change session\",\n        \"codename\": \"change_session\",\n        \"content_type\": 5\n    },\n    {\n        \"id\": 19,\n        \"name\": \"Can delete session\",\n        \"codename\": \"delete_session\",\n        \"content_type\": 5\n    },\n    {\n        \"id\": 20,\n        \"name\": \"Can view session\",\n        \"codename\": \"view_session\",\n        \"content_type\": 5\n    },\n    {\n        \"id\": 141,\n        \"name\": \"Can add blacklisted token\",\n        \"codename\": \"add_blacklistedtoken\",\n        \"content_type\": 32\n    },\n    {\n        \"id\": 142,\n        \"name\": \"Can change blacklisted token\",\n        \"codename\": \"change_blacklistedtoken\",\n        \"content_type\": 32\n    },\n    {\n        \"id\": 143,\n        \"name\": \"Can delete blacklisted token\",\n        \"codename\": \"delete_blacklistedtoken\",\n        \"content_type\": 32\n    },\n    {\n        \"id\": 144,\n        \"name\": \"Can view blacklisted token\",\n        \"codename\": \"view_blacklistedtoken\",\n        \"content_type\": 32\n    },\n    {\n        \"id\": 145,\n        \"name\": \"Can add outstanding token\",\n        \"codename\": \"add_outstandingtoken\",\n        \"content_type\": 33\n    },\n    {\n        \"id\": 146,\n        \"name\": \"Can change outstanding token\",\n        \"codename\": \"change_outstandingtoken\",\n        \"content_type\": 33\n    },\n    {\n        \"id\": 147,\n        \"name\": \"Can delete outstanding token\",\n        \"codename\": \"delete_outstandingtoken\",\n        \"content_type\": 33\n    },\n    {\n        \"id\": 148,\n        \"name\": \"Can view outstanding token\",\n        \"codename\": \"view_outstandingtoken\",\n        \"content_type\": 33\n    },\n    {\n        \"id\": 85,\n        \"name\": \"Can add Admins\",\n        \"codename\": \"add_admins\",\n        \"content_type\": 22\n    },\n    {\n        \"id\": 86,\n        \"name\": \"Can change Admins\",\n        \"codename\": \"change_admins\",\n        \"content_type\": 22\n    },\n    {\n        \"id\": 87,\n        \"name\": \"Can delete Admins\",\n        \"codename\": \"delete_admins\",\n        \"content_type\": 22\n    },\n    {\n        \"id\": 88,\n        \"name\": \"Can view Admins\",\n        \"codename\": \"view_admins\",\n        \"content_type\": 22\n    },\n    {\n        \"id\": 69,\n        \"name\": \"Can add email change\",\n        \"codename\": \"add_emailchange\",\n        \"content_type\": 18\n    },\n    {\n        \"id\": 70,\n        \"name\": \"Can change email change\",\n        \"codename\": \"change_emailchange\",\n        \"content_type\": 18\n    },\n    {\n        \"id\": 71,\n        \"name\": \"Can delete email change\",\n        \"codename\": \"delete_emailchange\",\n        \"content_type\": 18\n    },\n    {\n        \"id\": 72,\n        \"name\": \"Can view email change\",\n        \"codename\": \"view_emailchange\",\n        \"content_type\": 18\n    },\n    {\n        \"id\": 73,\n        \"name\": \"Can add email confirmation\",\n        \"codename\": \"add_emailconfirmation\",\n        \"content_type\": 19\n    },\n    {\n        \"id\": 74,\n        \"name\": \"Can change email confirmation\",\n        \"codename\": \"change_emailconfirmation\",\n        \"content_type\": 19\n    },\n    {\n        \"id\": 75,\n        \"name\": \"Can delete email confirmation\",\n        \"codename\": \"delete_emailconfirmation\",\n        \"content_type\": 19\n    },\n    {\n        \"id\": 76,\n        \"name\": \"Can view email confirmation\",\n        \"codename\": \"view_emailconfirmation\",\n        \"content_type\": 19\n    },\n    {\n        \"id\": 81,\n        \"name\": \"Can add password reset\",\n        \"codename\": \"add_passwordreset\",\n        \"content_type\": 21\n    },\n    {\n        \"id\": 82,\n        \"name\": \"Can change password reset\",\n        \"codename\": \"change_passwordreset\",\n        \"content_type\": 21\n    },\n    {\n        \"id\": 83,\n        \"name\": \"Can delete password reset\",\n        \"codename\": \"delete_passwordreset\",\n        \"content_type\": 21\n    },\n    {\n        \"id\": 84,\n        \"name\": \"Can view password reset\",\n        \"codename\": \"view_passwordreset\",\n        \"content_type\": 21\n    },\n    {\n        \"id\": 89,\n        \"name\": \"Can add SuperAdmin\",\n        \"codename\": \"add_superadmins\",\n        \"content_type\": 23\n    },\n    {\n        \"id\": 90,\n        \"name\": \"Can change SuperAdmin\",\n        \"codename\": \"change_superadmins\",\n        \"content_type\": 23\n    },\n    {\n        \"id\": 91,\n        \"name\": \"Can delete SuperAdmin\",\n        \"codename\": \"delete_superadmins\",\n        \"content_type\": 23\n    },\n    {\n        \"id\": 92,\n        \"name\": \"Can view SuperAdmin\",\n        \"codename\": \"view_superadmins\",\n        \"content_type\": 23\n    },\n    {\n        \"id\": 77,\n        \"name\": \"Can add user ip\",\n        \"codename\": \"add_userip\",\n        \"content_type\": 20\n    },\n    {\n        \"id\": 78,\n        \"name\": \"Can change user ip\",\n        \"codename\": \"change_userip\",\n        \"content_type\": 20\n    },\n    {\n        \"id\": 79,\n        \"name\": \"Can delete user ip\",\n        \"codename\": \"delete_userip\",\n        \"content_type\": 20\n    },\n    {\n        \"id\": 80,\n        \"name\": \"Can view user ip\",\n        \"codename\": \"view_userip\",\n        \"content_type\": 20\n    },\n    {\n        \"id\": 65,\n        \"name\": \"Can add Users\",\n        \"codename\": \"add_users\",\n        \"content_type\": 17\n    },\n    {\n        \"id\": 67,\n        \"name\": \"Can delete Users\",\n        \"codename\": \"delete_users\",\n        \"content_type\": 17\n    },\n    {\n        \"id\": 121,\n        \"name\": \"can list all users\",\n        \"codename\": \"list_users\",\n        \"content_type\": 17\n    }\n]"}],"_postman_id":"d11d51e5-72a6-4ac6-8759-755152fa1801"}],"id":"453e55bf-7288-4812-967a-d7ce267c7f4e","_postman_id":"453e55bf-7288-4812-967a-d7ce267c7f4e","description":""},{"name":"groups","item":[{"name":"specific group","item":[{"name":"get","id":"d5c6b632-8dd9-4b6c-b804-eb3c2746aa9d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3Mjk2NjUzLCJpYXQiOjE3MDcyOTU0NTMsImp0aSI6ImI3ZGI2MzU3NWRlZTRhNDJhNDlhYTM5OWI4Mzg3MjIwIiwidXNlcl9pZCI6MjN9.mcv5gZADDbKQy9FoWL0ExFEqhA3owoAxW_NQKC38m90","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/groups/5/","urlObject":{"path":["groups","5",""],"host":["http://127.0.0.1:8000/api/v1"],"query":[],"variable":[]}},"response":[{"id":"15e411c8-08d6-4eeb-aff7-e2c0b4bd37d7","name":"get","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3Mjk2NjUzLCJpYXQiOjE3MDcyOTU0NTMsImp0aSI6ImI3ZGI2MzU3NWRlZTRhNDJhNDlhYTM5OWI4Mzg3MjIwIiwidXNlcl9pZCI6MjN9.mcv5gZADDbKQy9FoWL0ExFEqhA3owoAxW_NQKC38m90","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/groups/1/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 07 Feb 2024 08:57:08 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.11.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language"},{"key":"Allow","value":"GET, PUT, PATCH, DELETE, HEAD, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"136"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 1,\n    \"name\": \"SERVICE_PROVIDER\",\n    \"permissions\": [\n        109,\n        133,\n        110,\n        113,\n        40,\n        54,\n        94,\n        46,\n        50,\n        51,\n        41,\n        42,\n        43,\n        22,\n        29,\n        30,\n        31,\n        25,\n        26,\n        149,\n        27,\n        28,\n        99,\n        100,\n        101,\n        129\n    ]\n}"}],"_postman_id":"d5c6b632-8dd9-4b6c-b804-eb3c2746aa9d"},{"name":"delete","id":"2f29e4bd-e41b-405a-9910-563dd4d5fc32","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3Mjk2NjUzLCJpYXQiOjE3MDcyOTU0NTMsImp0aSI6ImI3ZGI2MzU3NWRlZTRhNDJhNDlhYTM5OWI4Mzg3MjIwIiwidXNlcl9pZCI6MjN9.mcv5gZADDbKQy9FoWL0ExFEqhA3owoAxW_NQKC38m90","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/groups/5/","description":"<p>This endpoint deletes specific group in the System via ID.</p>\n<p><strong>This endpoint is for admins.</strong></p>\n","urlObject":{"path":["groups","5",""],"host":["http://127.0.0.1:8000/api/v1"],"query":[],"variable":[]}},"response":[{"id":"11f85a84-e0b4-41b2-bac3-f57474cad1c7","name":"delete","originalRequest":{"method":"DELETE","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3Mjk2NjUzLCJpYXQiOjE3MDcyOTU0NTMsImp0aSI6ImI3ZGI2MzU3NWRlZTRhNDJhNDlhYTM5OWI4Mzg3MjIwIiwidXNlcl9pZCI6MjN9.mcv5gZADDbKQy9FoWL0ExFEqhA3owoAxW_NQKC38m90","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/groups/5/"},"status":"No Content","code":204,"_postman_previewlanguage":"plain","header":[{"key":"Date","value":"Wed, 07 Feb 2024 09:01:14 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.11.0"},{"key":"Vary","value":"Accept, origin, Accept-Language"},{"key":"Allow","value":"GET, PUT, PATCH, DELETE, HEAD, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"0"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":null}],"_postman_id":"2f29e4bd-e41b-405a-9910-563dd4d5fc32"},{"name":"create","id":"1f6e793c-4131-46f5-974f-676e5b0a9bce","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3Mjk2NjUzLCJpYXQiOjE3MDcyOTU0NTMsImp0aSI6ImI3ZGI2MzU3NWRlZTRhNDJhNDlhYTM5OWI4Mzg3MjIwIiwidXNlcl9pZCI6MjN9.mcv5gZADDbKQy9FoWL0ExFEqhA3owoAxW_NQKC38m90","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"Hello, World!\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/api/v1/groups/","description":"<p>This endpoint creates anew group in the System.  </p>\n<p><strong>This endpoint is for admins.</strong></p>\n","urlObject":{"path":["groups",""],"host":["http://127.0.0.1:8000/api/v1"],"query":[],"variable":[]}},"response":[{"id":"92181398-64b7-45a1-9d00-57aad30ad0fc","name":"create","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3Mjk2NjUzLCJpYXQiOjE3MDcyOTU0NTMsImp0aSI6ImI3ZGI2MzU3NWRlZTRhNDJhNDlhYTM5OWI4Mzg3MjIwIiwidXNlcl9pZCI6MjN9.mcv5gZADDbKQy9FoWL0ExFEqhA3owoAxW_NQKC38m90","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"Hello, World!\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/api/v1/groups/"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 07 Feb 2024 09:00:00 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.11.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language"},{"key":"Allow","value":"GET, POST, HEAD, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"48"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 5,\n    \"name\": \"Hello, World!\",\n    \"permissions\": []\n}"}],"_postman_id":"1f6e793c-4131-46f5-974f-676e5b0a9bce"},{"name":"update","id":"63aa9e38-1f88-4657-815b-716168ab6d3e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3Mjk2NjUzLCJpYXQiOjE3MDcyOTU0NTMsImp0aSI6ImI3ZGI2MzU3NWRlZTRhNDJhNDlhYTM5OWI4Mzg3MjIwIiwidXNlcl9pZCI6MjN9.mcv5gZADDbKQy9FoWL0ExFEqhA3owoAxW_NQKC38m90","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"SERVICE_PROVIDER\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/api/v1/groups/1/","description":"<p>This endpoint udpates specific group via ID.  </p>\n<p><strong>This endpoint is for admins.</strong></p>\n","urlObject":{"path":["groups","1",""],"host":["http://127.0.0.1:8000/api/v1"],"query":[],"variable":[]}},"response":[{"id":"5134bbf8-ed41-4e1f-8a99-b9f4c70b103e","name":"update","originalRequest":{"method":"PATCH","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3Mjk2NjUzLCJpYXQiOjE3MDcyOTU0NTMsImp0aSI6ImI3ZGI2MzU3NWRlZTRhNDJhNDlhYTM5OWI4Mzg3MjIwIiwidXNlcl9pZCI6MjN9.mcv5gZADDbKQy9FoWL0ExFEqhA3owoAxW_NQKC38m90","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"SERVICE_PROVIDER\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/api/v1/groups/1/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 07 Feb 2024 08:58:19 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.11.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language"},{"key":"Allow","value":"GET, PUT, PATCH, DELETE, HEAD, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"136"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 1,\n    \"name\": \"SERVICE_PROVIDER\",\n    \"permissions\": [\n        109,\n        133,\n        110,\n        113,\n        40,\n        54,\n        94,\n        46,\n        50,\n        51,\n        41,\n        42,\n        43,\n        22,\n        29,\n        30,\n        31,\n        25,\n        26,\n        149,\n        27,\n        28,\n        99,\n        100,\n        101,\n        129\n    ]\n}"}],"_postman_id":"63aa9e38-1f88-4657-815b-716168ab6d3e"}],"id":"d4054934-1ab3-4a30-8b57-21f95b8329dd","_postman_id":"d4054934-1ab3-4a30-8b57-21f95b8329dd","description":""},{"name":"add permissions","item":[{"name":"add permission to group","id":"68dd3367-30a8-43b5-8062-5b7f8f9fcc9c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"urlObject":{"query":[],"variable":[]},"url":""},"response":[],"_postman_id":"68dd3367-30a8-43b5-8062-5b7f8f9fcc9c"},{"name":"add permissions to group","id":"9ef60fd3-b0ea-46b9-9952-fa8e0d31291a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3Mjk5NTA1LCJpYXQiOjE3MDcyOTcwMzMsImp0aSI6IjI1NzJlYmI3NzZkYTQ3NGQ4MDgwMmYyZWQ3ZjA2M2ZjIiwidXNlcl9pZCI6MjN9.RZb4x3odVIh1fpF14LJ9cjVURn_xtfIFuFjRz-kjkZo","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/groups/add_permissions/","urlObject":{"path":["groups","add_permissions",""],"host":["http://127.0.0.1:8000/api/v1"],"query":[],"variable":[]}},"response":[],"_postman_id":"9ef60fd3-b0ea-46b9-9952-fa8e0d31291a"}],"id":"7252cc20-25da-4416-903a-9328a42535e1","_postman_id":"7252cc20-25da-4416-903a-9328a42535e1","description":""},{"name":"list all groups","id":"5a09c0c4-6081-4d29-8a7b-3393178af49c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3Mjk2NjUzLCJpYXQiOjE3MDcyOTU0NTMsImp0aSI6ImI3ZGI2MzU3NWRlZTRhNDJhNDlhYTM5OWI4Mzg3MjIwIiwidXNlcl9pZCI6MjN9.mcv5gZADDbKQy9FoWL0ExFEqhA3owoAxW_NQKC38m90","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/groups/","description":"<p>This endpoint retrieves all groups in the System.</p>\n<p><strong>This endpoint is for admins.</strong></p>\n","urlObject":{"path":["groups",""],"host":["http://127.0.0.1:8000/api/v1"],"query":[],"variable":[]}},"response":[{"id":"7cea9b55-a1c3-4632-b705-b7621bedd7ab","name":"list all groups","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3Mjk2NjUzLCJpYXQiOjE3MDcyOTU0NTMsImp0aSI6ImI3ZGI2MzU3NWRlZTRhNDJhNDlhYTM5OWI4Mzg3MjIwIiwidXNlcl9pZCI6MjN9.mcv5gZADDbKQy9FoWL0ExFEqhA3owoAxW_NQKC38m90","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/groups/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 07 Feb 2024 08:57:30 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.11.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language"},{"key":"Allow","value":"GET, POST, HEAD, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"771"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 4,\n        \"name\": \"SUPER_ADMIN\",\n        \"permissions\": [\n            1,\n            2,\n            3,\n            4,\n            109,\n            110,\n            120,\n            111,\n            112,\n            113,\n            114,\n            9,\n            10,\n            11,\n            5,\n            6,\n            7,\n            8,\n            37,\n            38,\n            39,\n            40,\n            13,\n            14,\n            15,\n            16,\n            35,\n            150,\n            54,\n            55,\n            94,\n            46,\n            93,\n            50,\n            51,\n            131,\n            41,\n            42,\n            43,\n            151,\n            21,\n            22,\n            23,\n            29,\n            30,\n            31,\n            25,\n            26,\n            27,\n            28,\n            99,\n            100,\n            101,\n            126,\n            127,\n            128,\n            134,\n            129,\n            17,\n            18,\n            19,\n            20,\n            85,\n            86,\n            87,\n            88,\n            69,\n            70,\n            71,\n            72,\n            73,\n            74,\n            75,\n            76,\n            81,\n            82,\n            83,\n            84,\n            89,\n            90,\n            91,\n            92,\n            77,\n            78,\n            79,\n            80,\n            65,\n            67,\n            121\n        ]\n    },\n    {\n        \"id\": 1,\n        \"name\": \"SERVICE_PROVIDER\",\n        \"permissions\": [\n            109,\n            133,\n            110,\n            113,\n            40,\n            54,\n            94,\n            46,\n            50,\n            51,\n            41,\n            42,\n            43,\n            22,\n            29,\n            30,\n            31,\n            25,\n            26,\n            149,\n            27,\n            28,\n            99,\n            100,\n            101,\n            129\n        ]\n    },\n    {\n        \"id\": 3,\n        \"name\": \"USER\",\n        \"permissions\": [\n            114\n        ]\n    },\n    {\n        \"id\": 2,\n        \"name\": \"ADMIN\",\n        \"permissions\": [\n            136,\n            109,\n            133,\n            110,\n            120,\n            111,\n            112,\n            113,\n            132,\n            114,\n            37,\n            38,\n            39,\n            40,\n            35,\n            150,\n            54,\n            55,\n            94,\n            46,\n            93,\n            50,\n            51,\n            131,\n            41,\n            42,\n            43,\n            151,\n            21,\n            22,\n            23,\n            29,\n            30,\n            31,\n            25,\n            26,\n            27,\n            28,\n            99,\n            100,\n            101,\n            126,\n            127,\n            128,\n            134,\n            129,\n            85,\n            86,\n            87,\n            88,\n            69,\n            70,\n            71,\n            72,\n            73,\n            74,\n            75,\n            76,\n            81,\n            82,\n            83,\n            84,\n            77,\n            78,\n            79,\n            80,\n            65,\n            67,\n            121\n        ]\n    }\n]"}],"_postman_id":"5a09c0c4-6081-4d29-8a7b-3393178af49c"},{"name":"assign user to group","id":"21e57d8e-9d74-4f01-9bf0-d19ef666e235","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3Mjk4MjMzLCJpYXQiOjE3MDcyOTcwMzMsImp0aSI6IjA5ZTRkODEwZjc2YzQ3NjFhYjFjM2E1MTM3MmRlNmQ0IiwidXNlcl9pZCI6MjN9.2rqZXkoCzlh7voK69NuwdNB8Nqrcm6cT1_Cscp5-jkw","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/groups/join_user/?group_id=1&user_id=31","description":"<p>This endpoint used to assign specific user (via user ID) to specific group (via group ID).</p>\n<p>If one of [group_id, user_id] not supported, the endpoint will raise HTTP 400 Bad Reqeust error (see examples).</p>\n<p><strong>This endpoint for admins.</strong></p>\n","urlObject":{"path":["groups","join_user",""],"host":["http://127.0.0.1:8000/api/v1"],"query":[{"key":"group_id","value":"1"},{"key":"user_id","value":"31"}],"variable":[]}},"response":[{"id":"cb11e3ef-b16a-49fb-b876-c9355f919499","name":"assign user to group (bad request)","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3Mjk4MjMzLCJpYXQiOjE3MDcyOTcwMzMsImp0aSI6IjA5ZTRkODEwZjc2YzQ3NjFhYjFjM2E1MTM3MmRlNmQ0IiwidXNlcl9pZCI6MjN9.2rqZXkoCzlh7voK69NuwdNB8Nqrcm6cT1_Cscp5-jkw","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/groups/join_user/"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 07 Feb 2024 09:19:46 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.11.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language"},{"key":"Allow","value":"OPTIONS, POST"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"75"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"You should add group_id & user_id in the request query params\"\n}"},{"id":"6318d009-b6a8-4586-8a02-02f515ce2ad3","name":"assign user to group","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3Mjk4MjMzLCJpYXQiOjE3MDcyOTcwMzMsImp0aSI6IjA5ZTRkODEwZjc2YzQ3NjFhYjFjM2E1MTM3MmRlNmQ0IiwidXNlcl9pZCI6MjN9.2rqZXkoCzlh7voK69NuwdNB8Nqrcm6cT1_Cscp5-jkw","type":"text"}],"url":{"raw":"http://127.0.0.1:8000/api/v1/groups/join_user/?group_id=1&user_id=31","host":["http://127.0.0.1:8000/api/v1"],"path":["groups","join_user",""],"query":[{"key":"group_id","value":"1"},{"key":"user_id","value":"31"}]}},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 07 Feb 2024 09:28:42 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.11.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language"},{"key":"Allow","value":"POST, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"60"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"computerscience.magic@gmail.com added to group\"\n}"}],"_postman_id":"21e57d8e-9d74-4f01-9bf0-d19ef666e235"},{"name":"exclude user from group","id":"eb4adf92-215e-4723-b97d-83ed9caa416c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3Mjk4MjMzLCJpYXQiOjE3MDcyOTcwMzMsImp0aSI6IjA5ZTRkODEwZjc2YzQ3NjFhYjFjM2E1MTM3MmRlNmQ0IiwidXNlcl9pZCI6MjN9.2rqZXkoCzlh7voK69NuwdNB8Nqrcm6cT1_Cscp5-jkw","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/groups/exclude_user/?group_id=1&user_id=31","description":"<p>This endpoint used to remove specific user (via user ID) from specific group (via group ID).</p>\n<p>If one of [group_id, user_id] not supported, the endpoint will raise HTTP 400 Bad Reqeust error (see examples).</p>\n<p><strong>This endpoint for admins.</strong></p>\n","urlObject":{"path":["groups","exclude_user",""],"host":["http://127.0.0.1:8000/api/v1"],"query":[{"key":"group_id","value":"1"},{"key":"user_id","value":"31"}],"variable":[]}},"response":[{"id":"c42758d9-86a0-418f-838b-e3761afceebc","name":"exclude user from group","originalRequest":{"method":"DELETE","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3Mjk4MjMzLCJpYXQiOjE3MDcyOTcwMzMsImp0aSI6IjA5ZTRkODEwZjc2YzQ3NjFhYjFjM2E1MTM3MmRlNmQ0IiwidXNlcl9pZCI6MjN9.2rqZXkoCzlh7voK69NuwdNB8Nqrcm6cT1_Cscp5-jkw","type":"text"}],"url":{"raw":"http://127.0.0.1:8000/api/v1/groups/exclude_user/?group_id=1&user_id=31","host":["http://127.0.0.1:8000/api/v1"],"path":["groups","exclude_user",""],"query":[{"key":"group_id","value":"1"},{"key":"user_id","value":"31"}]}},"status":"No Content","code":204,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 07 Feb 2024 09:27:41 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.11.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language"},{"key":"Allow","value":"DELETE, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"64"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"computerscience.magic@gmail.com deleted from group\"\n}"},{"id":"1ed528c4-7fcc-4de6-9862-2055f4897ab7","name":"exclude user from group (error)","originalRequest":{"method":"DELETE","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3Mjk4MjMzLCJpYXQiOjE3MDcyOTcwMzMsImp0aSI6IjA5ZTRkODEwZjc2YzQ3NjFhYjFjM2E1MTM3MmRlNmQ0IiwidXNlcl9pZCI6MjN9.2rqZXkoCzlh7voK69NuwdNB8Nqrcm6cT1_Cscp5-jkw","type":"text"}],"url":{"raw":"http://127.0.0.1:8000/api/v1/groups/exclude_user/?group_id=1","host":["http://127.0.0.1:8000/api/v1"],"path":["groups","exclude_user",""],"query":[{"key":"group_id","value":"1"},{"key":"user_id","value":"31","disabled":true}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 07 Feb 2024 09:27:57 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.11.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language"},{"key":"Allow","value":"DELETE, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"75"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"You should add group_id & user_id in the request query params\"\n}"}],"_postman_id":"eb4adf92-215e-4723-b97d-83ed9caa416c"},{"name":"get user groups","id":"978940d1-6309-46b2-97e1-04e9f5104f97","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3Mjk4MjMzLCJpYXQiOjE3MDcyOTcwMzMsImp0aSI6IjA5ZTRkODEwZjc2YzQ3NjFhYjFjM2E1MTM3MmRlNmQ0IiwidXNlcl9pZCI6MjN9.2rqZXkoCzlh7voK69NuwdNB8Nqrcm6cT1_Cscp5-jkw","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/group/user/29/","description":"<p>This endpoint retrieves group belong to user via user ID.</p>\n<p><strong>This endpoint is for admins only.</strong></p>\n","urlObject":{"path":["group","user","29",""],"host":["http://127.0.0.1:8000/api/v1"],"query":[],"variable":[]}},"response":[{"id":"7a362df7-8381-49a4-a0bd-00c8c7613c2c","name":"get user groups","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3Mjk4MjMzLCJpYXQiOjE3MDcyOTcwMzMsImp0aSI6IjA5ZTRkODEwZjc2YzQ3NjFhYjFjM2E1MTM3MmRlNmQ0IiwidXNlcl9pZCI6MjN9.2rqZXkoCzlh7voK69NuwdNB8Nqrcm6cT1_Cscp5-jkw","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/group/user/29/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 07 Feb 2024 09:29:49 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.11.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language"},{"key":"Allow","value":"GET, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"44"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 3,\n        \"name\": \"USER\",\n        \"permissions\": [\n            114\n        ]\n    }\n]"}],"_postman_id":"978940d1-6309-46b2-97e1-04e9f5104f97"},{"name":"get group permissions","id":"d15d3d3b-8b6f-47f5-b289-87945bd840c0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3Mjk5NTA1LCJpYXQiOjE3MDcyOTcwMzMsImp0aSI6IjI1NzJlYmI3NzZkYTQ3NGQ4MDgwMmYyZWQ3ZjA2M2ZjIiwidXNlcl9pZCI6MjN9.RZb4x3odVIh1fpF14LJ9cjVURn_xtfIFuFjRz-kjkZo","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/groups_permissons/2/","description":"<p>This endpoint give the admin permissions belong to specific group via group ID.</p>\n<p><strong>This endpoint is for admins.</strong></p>\n","urlObject":{"path":["groups_permissons","2",""],"host":["http://127.0.0.1:8000/api/v1"],"query":[],"variable":[]}},"response":[{"id":"f6d42fe6-d32a-4150-91cd-6e3688e0868e","name":"get group permissions","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3Mjk5NTA1LCJpYXQiOjE3MDcyOTcwMzMsImp0aSI6IjI1NzJlYmI3NzZkYTQ3NGQ4MDgwMmYyZWQ3ZjA2M2ZjIiwidXNlcl9pZCI6MjN9.RZb4x3odVIh1fpF14LJ9cjVURn_xtfIFuFjRz-kjkZo","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/groups_permissons/2/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 07 Feb 2024 09:32:05 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.11.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language"},{"key":"Allow","value":"GET, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"2983"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 136,\n        \"name\": \"Can List All Log Entry\"\n    },\n    {\n        \"id\": 109,\n        \"name\": \"Can delete appointments\"\n    },\n    {\n        \"id\": 133,\n        \"name\": \"can list appointments\"\n    },\n    {\n        \"id\": 110,\n        \"name\": \"Can view appointments\"\n    },\n    {\n        \"id\": 120,\n        \"name\": \"can list all drafts\"\n    },\n    {\n        \"id\": 111,\n        \"name\": \"Can add rejected appointments\"\n    },\n    {\n        \"id\": 112,\n        \"name\": \"Can change rejected appointments\"\n    },\n    {\n        \"id\": 113,\n        \"name\": \"Can delete rejected appointments\"\n    },\n    {\n        \"id\": 132,\n        \"name\": \"can list all rejected appointments\"\n    },\n    {\n        \"id\": 114,\n        \"name\": \"Can view rejected appointments\"\n    },\n    {\n        \"id\": 37,\n        \"name\": \"Can add category\"\n    },\n    {\n        \"id\": 38,\n        \"name\": \"Can change category\"\n    },\n    {\n        \"id\": 39,\n        \"name\": \"Can delete category\"\n    },\n    {\n        \"id\": 40,\n        \"name\": \"Can view category\"\n    },\n    {\n        \"id\": 35,\n        \"name\": \"Can delete delivery\"\n    },\n    {\n        \"id\": 150,\n        \"name\": \"Can list all deliveries\"\n    },\n    {\n        \"id\": 54,\n        \"name\": \"Can change order item\"\n    },\n    {\n        \"id\": 55,\n        \"name\": \"Can delete order item\"\n    },\n    {\n        \"id\": 94,\n        \"name\": \"list all order items\"\n    },\n    {\n        \"id\": 46,\n        \"name\": \"Can change orders\"\n    },\n    {\n        \"id\": 93,\n        \"name\": \"can list all users orders\"\n    },\n    {\n        \"id\": 50,\n        \"name\": \"Can change rejected orders\"\n    },\n    {\n        \"id\": 51,\n        \"name\": \"Can delete rejected orders\"\n    },\n    {\n        \"id\": 131,\n        \"name\": \"can list rejected orders\"\n    },\n    {\n        \"id\": 41,\n        \"name\": \"Can add product\"\n    },\n    {\n        \"id\": 42,\n        \"name\": \"Can change product\"\n    },\n    {\n        \"id\": 43,\n        \"name\": \"Can delete product\"\n    },\n    {\n        \"id\": 151,\n        \"name\": \"Can list all products rates\"\n    },\n    {\n        \"id\": 21,\n        \"name\": \"Can add ServiceProvider\"\n    },\n    {\n        \"id\": 22,\n        \"name\": \"Can change ServiceProvider\"\n    },\n    {\n        \"id\": 23,\n        \"name\": \"Can delete ServiceProvider\"\n    },\n    {\n        \"id\": 29,\n        \"name\": \"Can add ServiceProviderLocations\"\n    },\n    {\n        \"id\": 30,\n        \"name\": \"Can change ServiceProviderLocations\"\n    },\n    {\n        \"id\": 31,\n        \"name\": \"Can delete ServiceProviderLocations\"\n    },\n    {\n        \"id\": 25,\n        \"name\": \"Can add update profile requests\"\n    },\n    {\n        \"id\": 26,\n        \"name\": \"Can change update profile requests\"\n    },\n    {\n        \"id\": 27,\n        \"name\": \"Can delete update profile requests\"\n    },\n    {\n        \"id\": 28,\n        \"name\": \"Can view update profile requests\"\n    },\n    {\n        \"id\": 99,\n        \"name\": \"Can add service\"\n    },\n    {\n        \"id\": 100,\n        \"name\": \"Can change service\"\n    },\n    {\n        \"id\": 101,\n        \"name\": \"Can delete service\"\n    },\n    {\n        \"id\": 126,\n        \"name\": \"Can add service rates\"\n    },\n    {\n        \"id\": 127,\n        \"name\": \"Can change service rates\"\n    },\n    {\n        \"id\": 128,\n        \"name\": \"Can delete service rates\"\n    },\n    {\n        \"id\": 134,\n        \"name\": \"can list all services rates\"\n    },\n    {\n        \"id\": 129,\n        \"name\": \"Can view service rates\"\n    },\n    {\n        \"id\": 85,\n        \"name\": \"Can add Admins\"\n    },\n    {\n        \"id\": 86,\n        \"name\": \"Can change Admins\"\n    },\n    {\n        \"id\": 87,\n        \"name\": \"Can delete Admins\"\n    },\n    {\n        \"id\": 88,\n        \"name\": \"Can view Admins\"\n    },\n    {\n        \"id\": 69,\n        \"name\": \"Can add email change\"\n    },\n    {\n        \"id\": 70,\n        \"name\": \"Can change email change\"\n    },\n    {\n        \"id\": 71,\n        \"name\": \"Can delete email change\"\n    },\n    {\n        \"id\": 72,\n        \"name\": \"Can view email change\"\n    },\n    {\n        \"id\": 73,\n        \"name\": \"Can add email confirmation\"\n    },\n    {\n        \"id\": 74,\n        \"name\": \"Can change email confirmation\"\n    },\n    {\n        \"id\": 75,\n        \"name\": \"Can delete email confirmation\"\n    },\n    {\n        \"id\": 76,\n        \"name\": \"Can view email confirmation\"\n    },\n    {\n        \"id\": 81,\n        \"name\": \"Can add password reset\"\n    },\n    {\n        \"id\": 82,\n        \"name\": \"Can change password reset\"\n    },\n    {\n        \"id\": 83,\n        \"name\": \"Can delete password reset\"\n    },\n    {\n        \"id\": 84,\n        \"name\": \"Can view password reset\"\n    },\n    {\n        \"id\": 77,\n        \"name\": \"Can add user ip\"\n    },\n    {\n        \"id\": 78,\n        \"name\": \"Can change user ip\"\n    },\n    {\n        \"id\": 79,\n        \"name\": \"Can delete user ip\"\n    },\n    {\n        \"id\": 80,\n        \"name\": \"Can view user ip\"\n    },\n    {\n        \"id\": 65,\n        \"name\": \"Can add Users\"\n    },\n    {\n        \"id\": 67,\n        \"name\": \"Can delete Users\"\n    },\n    {\n        \"id\": 121,\n        \"name\": \"can list all users\"\n    }\n]"}],"_postman_id":"d15d3d3b-8b6f-47f5-b289-87945bd840c0"},{"name":"assign permission to group","id":"f2e71fdd-34e8-4cf4-9e26-981bddee896b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MzE4Mjk3LCJpYXQiOjE3MDczMTcwNjEsImp0aSI6IjBhZDNjYWY2YWI3MzQ4MDY4NzQ3MmRkMmRjNzM5ZmFkIiwidXNlcl9pZCI6MjN9.sZ9_s2NMW2PD9ORM7D7tKeTq_6rUWLRcPOK0htAUDkI","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/groups/add_permission/?permission_id=100&group_id=4","description":"<p>This endpoint used to add permission to specific group.</p>\n<p>both permission id and group id needed in the query params.</p>\n<p><strong>This endpoint is for admins only.</strong></p>\n","urlObject":{"path":["groups","add_permission",""],"host":["http://127.0.0.1:8000/api/v1"],"query":[{"key":"permission_id","value":"100"},{"key":"group_id","value":"4"}],"variable":[]}},"response":[{"id":"e8c95584-b009-490f-b284-f0e0251fab8b","name":"assign permission to group (bad request error)","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MzE4Mjk3LCJpYXQiOjE3MDczMTcwNjEsImp0aSI6IjBhZDNjYWY2YWI3MzQ4MDY4NzQ3MmRkMmRjNzM5ZmFkIiwidXNlcl9pZCI6MjN9.sZ9_s2NMW2PD9ORM7D7tKeTq_6rUWLRcPOK0htAUDkI","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/groups/add_permission/"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 07 Feb 2024 14:53:12 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.11.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language"},{"key":"Allow","value":"OPTIONS, POST"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"76"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"Error\": \"both permission_id and group_id needed to be in the query params\"\n}"},{"id":"b085eeff-51a6-4935-9b5c-e86577952e53","name":"assign permission to group","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MzE4Mjk3LCJpYXQiOjE3MDczMTcwNjEsImp0aSI6IjBhZDNjYWY2YWI3MzQ4MDY4NzQ3MmRkMmRjNzM5ZmFkIiwidXNlcl9pZCI6MjN9.sZ9_s2NMW2PD9ORM7D7tKeTq_6rUWLRcPOK0htAUDkI","type":"text"}],"url":{"raw":"http://127.0.0.1:8000/api/v1/groups/add_permission/?permission_id=100&group_id=4","host":["http://127.0.0.1:8000/api/v1"],"path":["groups","add_permission",""],"query":[{"key":"permission_id","value":"100"},{"key":"group_id","value":"4"}]}},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 07 Feb 2024 14:53:52 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.11.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language"},{"key":"Allow","value":"OPTIONS, POST"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"44"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"new perm added to: SUPER_ADMIN\"\n}"}],"_postman_id":"f2e71fdd-34e8-4cf4-9e26-981bddee896b"},{"name":"assign permissions to group","id":"8406920d-73d0-49a5-a1d1-2dbabfb9971e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MzE4Mjk3LCJpYXQiOjE3MDczMTcwNjEsImp0aSI6IjBhZDNjYWY2YWI3MzQ4MDY4NzQ3MmRkMmRjNzM5ZmFkIiwidXNlcl9pZCI6MjN9.sZ9_s2NMW2PD9ORM7D7tKeTq_6rUWLRcPOK0htAUDkI","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/groups/add_permissions/?group_id=4&permission_ids=1, 2, 3","urlObject":{"path":["groups","add_permissions",""],"host":["http://127.0.0.1:8000/api/v1"],"query":[{"key":"group_id","value":"4"},{"key":"permission_ids","value":"1, 2, 3"}],"variable":[]}},"response":[{"id":"8cccf325-915c-4a90-a793-8c781892f51e","name":"assign permissions to group (bad request)","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MzE4Mjk3LCJpYXQiOjE3MDczMTcwNjEsImp0aSI6IjBhZDNjYWY2YWI3MzQ4MDY4NzQ3MmRkMmRjNzM5ZmFkIiwidXNlcl9pZCI6MjN9.sZ9_s2NMW2PD9ORM7D7tKeTq_6rUWLRcPOK0htAUDkI","type":"text"}],"url":{"raw":"http://127.0.0.1:8000/api/v1/groups/add_permissions/?group_id=4","host":["http://127.0.0.1:8000/api/v1"],"path":["groups","add_permissions",""],"query":[{"key":"group_id","value":"4"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 07 Feb 2024 14:56:10 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.11.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language"},{"key":"Allow","value":"POST, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"77"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"Error\": \"both permission_ids and group_id needed to be in the query params\"\n}"},{"id":"89e119a2-f715-404f-8093-3ff0fbf5ae89","name":"assign permissions to group","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MzE4Mjk3LCJpYXQiOjE3MDczMTcwNjEsImp0aSI6IjBhZDNjYWY2YWI3MzQ4MDY4NzQ3MmRkMmRjNzM5ZmFkIiwidXNlcl9pZCI6MjN9.sZ9_s2NMW2PD9ORM7D7tKeTq_6rUWLRcPOK0htAUDkI","type":"text"}],"url":{"raw":"http://127.0.0.1:8000/api/v1/groups/add_permissions/?group_id=4&permission_ids=1, 2, 3","host":["http://127.0.0.1:8000/api/v1"],"path":["groups","add_permissions",""],"query":[{"key":"group_id","value":"4"},{"key":"permission_ids","value":"1, 2, 3"}]}},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 07 Feb 2024 14:57:35 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.11.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language"},{"key":"Allow","value":"POST, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"45"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"new perms added to: SUPER_ADMIN\"\n}"}],"_postman_id":"8406920d-73d0-49a5-a1d1-2dbabfb9971e"}],"id":"492d002c-8def-4cbe-94cc-5c627ff610d7","_postman_id":"492d002c-8def-4cbe-94cc-5c627ff610d7","description":""},{"name":"content type","item":[{"name":"specific content type","item":[{"name":"get","id":"ba4381fc-787e-43d1-8000-1fd767be9794","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3Mjk4MjMzLCJpYXQiOjE3MDcyOTcwMzMsImp0aSI6IjA5ZTRkODEwZjc2YzQ3NjFhYjFjM2E1MTM3MmRlNmQ0IiwidXNlcl9pZCI6MjN9.2rqZXkoCzlh7voK69NuwdNB8Nqrcm6cT1_Cscp5-jkw","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/content_type/1/","description":"<p>This endpoint retrieves specific content type via ID.</p>\n<p><strong>This endpoint is for admins.</strong></p>\n","urlObject":{"path":["content_type","1",""],"host":["http://127.0.0.1:8000/api/v1"],"query":[],"variable":[]}},"response":[{"id":"14eda6f4-15d2-46eb-85f3-910c5acaec99","name":"get","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3Mjk4MjMzLCJpYXQiOjE3MDcyOTcwMzMsImp0aSI6IjA5ZTRkODEwZjc2YzQ3NjFhYjFjM2E1MTM3MmRlNmQ0IiwidXNlcl9pZCI6MjN9.2rqZXkoCzlh7voK69NuwdNB8Nqrcm6cT1_Cscp5-jkw","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/content_type/1/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 07 Feb 2024 09:11:12 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.11.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language"},{"key":"Allow","value":"GET, PUT, PATCH, DELETE, HEAD, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"47"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 1,\n    \"app_label\": \"admin\",\n    \"model\": \"logentry\"\n}"}],"_postman_id":"ba4381fc-787e-43d1-8000-1fd767be9794"}],"id":"2f6a73d5-0306-46f2-8c80-11f82274a55e","_postman_id":"2f6a73d5-0306-46f2-8c80-11f82274a55e","description":""},{"name":"list all content types","id":"73f060b8-27cd-4d54-a713-4bfe3603c8c1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3Mjk2NjUzLCJpYXQiOjE3MDcyOTU0NTMsImp0aSI6ImI3ZGI2MzU3NWRlZTRhNDJhNDlhYTM5OWI4Mzg3MjIwIiwidXNlcl9pZCI6MjN9.mcv5gZADDbKQy9FoWL0ExFEqhA3owoAxW_NQKC38m90","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/content_type/","description":"<p>This endpoint returns all content types in the system.  </p>\n<p><strong>This endpoint is for admins only.</strong></p>\n","urlObject":{"path":["content_type",""],"host":["http://127.0.0.1:8000/api/v1"],"query":[],"variable":[]}},"response":[{"id":"944b9d5d-4dad-4971-8801-5dbf4fdf5ae3","name":"list all content types","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3Mjk2NjUzLCJpYXQiOjE3MDcyOTU0NTMsImp0aSI6ImI3ZGI2MzU3NWRlZTRhNDJhNDlhYTM5OWI4Mzg3MjIwIiwidXNlcl9pZCI6MjN9.mcv5gZADDbKQy9FoWL0ExFEqhA3owoAxW_NQKC38m90","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/content_type/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 07 Feb 2024 09:02:39 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.11.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language"},{"key":"Allow","value":"GET, POST, HEAD, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"1835"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 1,\n        \"app_label\": \"admin\",\n        \"model\": \"logentry\"\n    },\n    {\n        \"id\": 2,\n        \"app_label\": \"auth\",\n        \"model\": \"permission\"\n    },\n    {\n        \"id\": 3,\n        \"app_label\": \"auth\",\n        \"model\": \"group\"\n    },\n    {\n        \"id\": 4,\n        \"app_label\": \"contenttypes\",\n        \"model\": \"contenttype\"\n    },\n    {\n        \"id\": 5,\n        \"app_label\": \"sessions\",\n        \"model\": \"session\"\n    },\n    {\n        \"id\": 6,\n        \"app_label\": \"service_providers\",\n        \"model\": \"serviceprovider\"\n    },\n    {\n        \"id\": 7,\n        \"app_label\": \"service_providers\",\n        \"model\": \"updateprofilerequests\"\n    },\n    {\n        \"id\": 8,\n        \"app_label\": \"service_providers\",\n        \"model\": \"serviceproviderlocations\"\n    },\n    {\n        \"id\": 9,\n        \"app_label\": \"deliveries\",\n        \"model\": \"delivery\"\n    },\n    {\n        \"id\": 10,\n        \"app_label\": \"category\",\n        \"model\": \"category\"\n    },\n    {\n        \"id\": 11,\n        \"app_label\": \"products\",\n        \"model\": \"product\"\n    },\n    {\n        \"id\": 12,\n        \"app_label\": \"orders\",\n        \"model\": \"orders\"\n    },\n    {\n        \"id\": 13,\n        \"app_label\": \"orders\",\n        \"model\": \"rejectedorders\"\n    },\n    {\n        \"id\": 14,\n        \"app_label\": \"orders\",\n        \"model\": \"orderitem\"\n    },\n    {\n        \"id\": 15,\n        \"app_label\": \"orders\",\n        \"model\": \"cart\"\n    },\n    {\n        \"id\": 16,\n        \"app_label\": \"orders\",\n        \"model\": \"cartitems\"\n    },\n    {\n        \"id\": 17,\n        \"app_label\": \"users\",\n        \"model\": \"users\"\n    },\n    {\n        \"id\": 18,\n        \"app_label\": \"users\",\n        \"model\": \"emailchange\"\n    },\n    {\n        \"id\": 19,\n        \"app_label\": \"users\",\n        \"model\": \"emailconfirmation\"\n    },\n    {\n        \"id\": 20,\n        \"app_label\": \"users\",\n        \"model\": \"userip\"\n    },\n    {\n        \"id\": 21,\n        \"app_label\": \"users\",\n        \"model\": \"passwordreset\"\n    },\n    {\n        \"id\": 22,\n        \"app_label\": \"users\",\n        \"model\": \"admins\"\n    },\n    {\n        \"id\": 23,\n        \"app_label\": \"users\",\n        \"model\": \"superadmins\"\n    },\n    {\n        \"id\": 24,\n        \"app_label\": \"products\",\n        \"model\": \"productrates\"\n    },\n    {\n        \"id\": 25,\n        \"app_label\": \"services\",\n        \"model\": \"service\"\n    },\n    {\n        \"id\": 26,\n        \"app_label\": \"appointments\",\n        \"model\": \"appointmentsdraft\"\n    },\n    {\n        \"id\": 27,\n        \"app_label\": \"appointments\",\n        \"model\": \"appointments\"\n    },\n    {\n        \"id\": 28,\n        \"app_label\": \"appointments\",\n        \"model\": \"rejectedappointments\"\n    },\n    {\n        \"id\": 29,\n        \"app_label\": \"notification\",\n        \"model\": \"notification\"\n    },\n    {\n        \"id\": 30,\n        \"app_label\": \"services\",\n        \"model\": \"servicerates\"\n    },\n    {\n        \"id\": 31,\n        \"app_label\": \"contact_us\",\n        \"model\": \"contactus\"\n    },\n    {\n        \"id\": 32,\n        \"app_label\": \"token_blacklist\",\n        \"model\": \"blacklistedtoken\"\n    },\n    {\n        \"id\": 33,\n        \"app_label\": \"token_blacklist\",\n        \"model\": \"outstandingtoken\"\n    }\n]"}],"_postman_id":"73f060b8-27cd-4d54-a713-4bfe3603c8c1"}],"id":"7e1d59ce-9efd-4188-bb64-fb0271517477","_postman_id":"7e1d59ce-9efd-4188-bb64-fb0271517477","description":""}],"id":"16224709-cfc6-4ed3-b61b-ad064cf4f5db","_postman_id":"16224709-cfc6-4ed3-b61b-ad064cf4f5db","description":""},{"name":"products","item":[{"name":"rates","item":[{"name":"specific rate","item":[{"name":"read","id":"fa776bf0-347e-4a76-9ded-f3be260aa7e7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3Mjk0Mjc1LCJpYXQiOjE3MDcyOTMwNzUsImp0aSI6ImE1NjE5MDM4YzYzMzQwYTlhNDc3YTczNmM0NmEwZDg5IiwidXNlcl9pZCI6MzB9.GYwsD9VAj7A-qvS0wn8i4w_jZV2R4FdioRdWHVDzId0","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/products/view/rates/32/","description":"<p>This endpoint used to get specific product rate.</p>\n<p><strong>This endpoint is for authenticated users.</strong></p>\n","urlObject":{"path":["products","view","rates","32",""],"host":["http://127.0.0.1:8000/api/v1"],"query":[],"variable":[]}},"response":[{"id":"fa3891fa-c179-417c-9188-583b1b598d68","name":"read (authentication error)","originalRequest":{"method":"GET","header":[],"url":"http://127.0.0.1:8000/api/v1/products/view/rates/32/"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 07 Feb 2024 08:08:00 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.11.0"},{"key":"Content-Type","value":"application/json"},{"key":"WWW-Authenticate","value":"JWT realm=\"api\""},{"key":"Vary","value":"Accept, origin, Accept-Language, Cookie"},{"key":"Allow","value":"GET, PUT, PATCH, DELETE, HEAD, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"58"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"detail\": \"Authentication credentials were not provided.\"\n}"},{"id":"60209412-9cbc-44f5-a8be-ebf9f8ba1779","name":"read","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3Mjk0Mjc1LCJpYXQiOjE3MDcyOTMwNzUsImp0aSI6ImE1NjE5MDM4YzYzMzQwYTlhNDc3YTczNmM0NmEwZDg5IiwidXNlcl9pZCI6MzB9.GYwsD9VAj7A-qvS0wn8i4w_jZV2R4FdioRdWHVDzId0","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/products/view/rates/32/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 07 Feb 2024 08:08:31 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.11.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language"},{"key":"Allow","value":"GET, PUT, PATCH, DELETE, HEAD, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"123"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"rate_id\": 32,\n        \"actual_rate\": 3,\n        \"user_id\": 30,\n        \"user_email\": \"maamoun3911@gmail.com\",\n        \"product_id\": 28,\n        \"product_title\": \"unadol\"\n    }\n]"}],"_postman_id":"fa776bf0-347e-4a76-9ded-f3be260aa7e7"},{"name":"delete","id":"631722eb-bec7-45e9-b9b8-6b30418495e8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3Mjk0Mjc1LCJpYXQiOjE3MDcyOTMwNzUsImp0aSI6ImE1NjE5MDM4YzYzMzQwYTlhNDc3YTczNmM0NmEwZDg5IiwidXNlcl9pZCI6MzB9.GYwsD9VAj7A-qvS0wn8i4w_jZV2R4FdioRdWHVDzId0","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/products/view/rates/32/","description":"<p>This endpoint used to delete specific product rate.</p>\n<p><strong>This endpoint is for authenticated users.</strong></p>\n","urlObject":{"path":["products","view","rates","32",""],"host":["http://127.0.0.1:8000/api/v1"],"query":[],"variable":[]}},"response":[{"id":"3a86e182-b7c1-4867-85bc-b77be1e63ac6","name":"delete","originalRequest":{"method":"DELETE","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3Mjk0Mjc1LCJpYXQiOjE3MDcyOTMwNzUsImp0aSI6ImE1NjE5MDM4YzYzMzQwYTlhNDc3YTczNmM0NmEwZDg5IiwidXNlcl9pZCI6MzB9.GYwsD9VAj7A-qvS0wn8i4w_jZV2R4FdioRdWHVDzId0","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/products/view/rates/32/"},"status":"No Content","code":204,"_postman_previewlanguage":"plain","header":[{"key":"Date","value":"Wed, 07 Feb 2024 08:09:16 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.11.0"},{"key":"Vary","value":"Accept, origin, Accept-Language"},{"key":"Allow","value":"GET, PUT, PATCH, DELETE, HEAD, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"0"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":null}],"_postman_id":"631722eb-bec7-45e9-b9b8-6b30418495e8"},{"name":"create","id":"a9ee7b74-4c7e-4564-8de9-be6ba827cf52","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3Mjk0Mjc1LCJpYXQiOjE3MDcyOTMwNzUsImp0aSI6ImE1NjE5MDM4YzYzMzQwYTlhNDc3YTczNmM0NmEwZDg5IiwidXNlcl9pZCI6MzB9.GYwsD9VAj7A-qvS0wn8i4w_jZV2R4FdioRdWHVDzId0","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"product\":28,\r\n    \"rate\":4\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/api/v1/products/rates/create/","description":"<p>This endpoint creates a rate for specific product.</p>\n<p>If user try to rate same product twice, it will raise an error (see examples).</p>\n<p><strong>This endpoint is for authenticated users.</strong></p>\n","urlObject":{"path":["products","rates","create",""],"host":["http://127.0.0.1:8000/api/v1"],"query":[],"variable":[]}},"response":[{"id":"46bccf8c-85f7-4b63-a319-73337f7c9e1d","name":"create (error)","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3Mjk0MTk5LCJpYXQiOjE3MDcyOTI5OTksImp0aSI6ImY4ZTg0NjFhYmE3MzQ4NjlhYzUzZDhhYjIxNGZmNDk1IiwidXNlcl9pZCI6Mjl9.Bt0rlQH1PQSiZcTbHI-sZnKyGaEKHC9IISSzxIbLrNk","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"product\":29,\r\n    \"rate\":4\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/api/v1/products/rates/create/"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 07 Feb 2024 08:03:52 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.11.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language"},{"key":"Allow","value":"POST, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"74"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"this user already rates this product, he can't rate it again\"\n}"},{"id":"76a4752d-5ba9-40b1-9f06-e7ac0daf8391","name":"create","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3Mjk0Mjc1LCJpYXQiOjE3MDcyOTMwNzUsImp0aSI6ImE1NjE5MDM4YzYzMzQwYTlhNDc3YTczNmM0NmEwZDg5IiwidXNlcl9pZCI6MzB9.GYwsD9VAj7A-qvS0wn8i4w_jZV2R4FdioRdWHVDzId0","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"product\":28,\r\n    \"rate\":4\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/api/v1/products/rates/create/"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 07 Feb 2024 08:04:48 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.11.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language"},{"key":"Allow","value":"POST, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"121"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"rate_id\": 32,\n    \"actual_rate\": 4,\n    \"user_id\": 30,\n    \"user_email\": \"maamoun3911@gmail.com\",\n    \"product_id\": 28,\n    \"product_title\": \"unadol\"\n}"}],"_postman_id":"a9ee7b74-4c7e-4564-8de9-be6ba827cf52"},{"name":"update","id":"63ce10dc-979c-471e-8aa5-9a93d47ebe96","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3Mjk0Mjc1LCJpYXQiOjE3MDcyOTMwNzUsImp0aSI6ImE1NjE5MDM4YzYzMzQwYTlhNDc3YTczNmM0NmEwZDg5IiwidXNlcl9pZCI6MzB9.GYwsD9VAj7A-qvS0wn8i4w_jZV2R4FdioRdWHVDzId0","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"rate\": 3\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/api/v1/products/view/rates/32/","description":"<p>This endpoint used to edit on specific product rate.</p>\n<p><strong>This endpoint is for authenticated users.</strong></p>\n","urlObject":{"path":["products","view","rates","32",""],"host":["http://127.0.0.1:8000/api/v1"],"query":[],"variable":[]}},"response":[{"id":"ac84c29c-7a0a-4393-b371-971ebd0adc69","name":"update","originalRequest":{"method":"PATCH","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3Mjk0Mjc1LCJpYXQiOjE3MDcyOTMwNzUsImp0aSI6ImE1NjE5MDM4YzYzMzQwYTlhNDc3YTczNmM0NmEwZDg5IiwidXNlcl9pZCI6MzB9.GYwsD9VAj7A-qvS0wn8i4w_jZV2R4FdioRdWHVDzId0","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"rate\": 3\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/api/v1/products/view/rates/32/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 07 Feb 2024 08:07:01 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.11.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language"},{"key":"Allow","value":"GET, PUT, PATCH, DELETE, HEAD, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"121"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"rate_id\": 32,\n    \"actual_rate\": 3,\n    \"user_id\": 30,\n    \"user_email\": \"maamoun3911@gmail.com\",\n    \"product_id\": 28,\n    \"product_title\": \"unadol\"\n}"}],"_postman_id":"63ce10dc-979c-471e-8aa5-9a93d47ebe96"}],"id":"770b8968-76e7-446d-a6ab-53c6626e7d5a","_postman_id":"770b8968-76e7-446d-a6ab-53c6626e7d5a","description":""},{"name":"user rates","id":"5864c725-1ff4-4015-a3a9-2c9de6281abe","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MjM2NjA1LCJpYXQiOjE3MDcyMzU0MDUsImp0aSI6IjVjNDU5ZGI1NTY4ZDQ5ZmFiMjI1MTRjMTdiZmFjODFhIiwidXNlcl9pZCI6Mjl9.b1AYfiXSONlOZQxSXLa5QrXNDNK2BxJYF5g6NF6tuCY","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/products/user/rates/","description":"<p>This endpoint will retrieve user rates.</p>\n<p>Maybe admin wants to see user rates, so add the user ID in the end of the url (see examples).</p>\n<p><strong>This endpoint for authenticated users.</strong></p>\n","urlObject":{"path":["products","user","rates",""],"host":["http://127.0.0.1:8000/api/v1"],"query":[],"variable":[]}},"response":[{"id":"c53f9b23-ec8b-4d4a-8821-e613d4fbfdee","name":"user rates by user ID (for admins)","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MjM2NjA1LCJpYXQiOjE3MDcyMzU0MDUsImp0aSI6IjVjNDU5ZGI1NTY4ZDQ5ZmFiMjI1MTRjMTdiZmFjODFhIiwidXNlcl9pZCI6Mjl9.b1AYfiXSONlOZQxSXLa5QrXNDNK2BxJYF5g6NF6tuCY","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/products/user/rates/29"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 06 Feb 2024 16:03:42 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.11.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language"},{"key":"Allow","value":"OPTIONS, GET"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"1046"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"rate_id\": 5,\n        \"actual_rate\": 5,\n        \"user_id\": 29,\n        \"user_email\": \"maamoun.h.najeeb@gmail.com\",\n        \"product_id\": 30,\n        \"product_title\": \"unadol cold and flu\"\n    },\n    {\n        \"rate_id\": 11,\n        \"actual_rate\": 4,\n        \"user_id\": 29,\n        \"user_email\": \"maamoun.h.najeeb@gmail.com\",\n        \"product_id\": 28,\n        \"product_title\": \"unadol\"\n    },\n    {\n        \"rate_id\": 12,\n        \"actual_rate\": 4,\n        \"user_id\": 29,\n        \"user_email\": \"maamoun.h.najeeb@gmail.com\",\n        \"product_id\": 29,\n        \"product_title\": \"unadol extra\"\n    },\n    {\n        \"rate_id\": 13,\n        \"actual_rate\": 4,\n        \"user_id\": 29,\n        \"user_email\": \"maamoun.h.najeeb@gmail.com\",\n        \"product_id\": 27,\n        \"product_title\": \"gicouz\"\n    },\n    {\n        \"rate_id\": 14,\n        \"actual_rate\": 4,\n        \"user_id\": 29,\n        \"user_email\": \"maamoun.h.najeeb@gmail.com\",\n        \"product_id\": 26,\n        \"product_title\": \"bebelait\"\n    },\n    {\n        \"rate_id\": 15,\n        \"actual_rate\": 5,\n        \"user_id\": 29,\n        \"user_email\": \"maamoun.h.najeeb@gmail.com\",\n        \"product_id\": 25,\n        \"product_title\": \"Nan\"\n    },\n    {\n        \"rate_id\": 16,\n        \"actual_rate\": 4,\n        \"user_id\": 29,\n        \"user_email\": \"maamoun.h.najeeb@gmail.com\",\n        \"product_id\": 24,\n        \"product_title\": \"childs milk\"\n    },\n    {\n        \"rate_id\": 28,\n        \"actual_rate\": 1,\n        \"user_id\": 29,\n        \"user_email\": \"maamoun.h.najeeb@gmail.com\",\n        \"product_id\": 34,\n        \"product_title\": \"prodol strong\"\n    }\n]"},{"id":"7d2c8fb9-8039-41ea-94fe-40070359c2c0","name":"user rates","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MjM2NjA1LCJpYXQiOjE3MDcyMzU0MDUsImp0aSI6IjVjNDU5ZGI1NTY4ZDQ5ZmFiMjI1MTRjMTdiZmFjODFhIiwidXNlcl9pZCI6Mjl9.b1AYfiXSONlOZQxSXLa5QrXNDNK2BxJYF5g6NF6tuCY","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/products/user/rates/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 06 Feb 2024 16:05:26 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.11.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language"},{"key":"Allow","value":"OPTIONS, GET"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"1046"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"rate_id\": 5,\n        \"actual_rate\": 5,\n        \"user_id\": 29,\n        \"user_email\": \"maamoun.h.najeeb@gmail.com\",\n        \"product_id\": 30,\n        \"product_title\": \"unadol cold and flu\"\n    },\n    {\n        \"rate_id\": 11,\n        \"actual_rate\": 4,\n        \"user_id\": 29,\n        \"user_email\": \"maamoun.h.najeeb@gmail.com\",\n        \"product_id\": 28,\n        \"product_title\": \"unadol\"\n    },\n    {\n        \"rate_id\": 12,\n        \"actual_rate\": 4,\n        \"user_id\": 29,\n        \"user_email\": \"maamoun.h.najeeb@gmail.com\",\n        \"product_id\": 29,\n        \"product_title\": \"unadol extra\"\n    },\n    {\n        \"rate_id\": 13,\n        \"actual_rate\": 4,\n        \"user_id\": 29,\n        \"user_email\": \"maamoun.h.najeeb@gmail.com\",\n        \"product_id\": 27,\n        \"product_title\": \"gicouz\"\n    },\n    {\n        \"rate_id\": 14,\n        \"actual_rate\": 4,\n        \"user_id\": 29,\n        \"user_email\": \"maamoun.h.najeeb@gmail.com\",\n        \"product_id\": 26,\n        \"product_title\": \"bebelait\"\n    },\n    {\n        \"rate_id\": 15,\n        \"actual_rate\": 5,\n        \"user_id\": 29,\n        \"user_email\": \"maamoun.h.najeeb@gmail.com\",\n        \"product_id\": 25,\n        \"product_title\": \"Nan\"\n    },\n    {\n        \"rate_id\": 16,\n        \"actual_rate\": 4,\n        \"user_id\": 29,\n        \"user_email\": \"maamoun.h.najeeb@gmail.com\",\n        \"product_id\": 24,\n        \"product_title\": \"childs milk\"\n    },\n    {\n        \"rate_id\": 28,\n        \"actual_rate\": 1,\n        \"user_id\": 29,\n        \"user_email\": \"maamoun.h.najeeb@gmail.com\",\n        \"product_id\": 34,\n        \"product_title\": \"prodol strong\"\n    }\n]"}],"_postman_id":"5864c725-1ff4-4015-a3a9-2c9de6281abe"},{"name":"provider rates","id":"299cc635-8611-420c-beff-1ae2855fd9a3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MjM2OTAxLCJpYXQiOjE3MDcyMzU3MDEsImp0aSI6IjM0OTkwNWExNmNlODRjZTFhOTk2NWYxYzAxYzhjZGQ2IiwidXNlcl9pZCI6MjN9.Koj1tKIaH1VZKmHjm-T1IJSacZ-2El9D-HTwQlzOrzc","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/products/provider/rates/31","description":"<p>This endpoint retrieves provider products rates.</p>\n<p>Maybe admin want to see the specific provider products rates, so as usuall add service provider ID to the end of the url.</p>\n<p><strong>This endpoint is for admins &amp; service providers.</strong></p>\n","urlObject":{"path":["products","provider","rates","31"],"host":["http://127.0.0.1:8000/api/v1"],"query":[],"variable":[]}},"response":[{"id":"04f8bd9a-86fe-4616-aa60-400fb3540aa3","name":"provider rates","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MjM2ODQ4LCJpYXQiOjE3MDcyMzU2NDgsImp0aSI6ImE1NmNkZGRkM2I5YjQxY2I5YTQ1ZGVlNjVkMWQ1OGQ0IiwidXNlcl9pZCI6MzB9.qr7-U-D0GJ3VlD3yJZ_gwdzoPcobsRZ9tAQ3SnQKf3A","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/products/provider/rates/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 06 Feb 2024 16:07:45 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.11.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language"},{"key":"Allow","value":"OPTIONS, GET"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"940"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"rate_id\": 5,\n        \"actual_rate\": 5,\n        \"user_id\": 29,\n        \"user_email\": \"maamoun.h.najeeb@gmail.com\",\n        \"product_id\": 30,\n        \"product_title\": \"unadol cold and flu\"\n    },\n    {\n        \"rate_id\": 26,\n        \"actual_rate\": 2,\n        \"user_id\": 23,\n        \"user_email\": \"maamoun.haj.najeeb@gmail.com\",\n        \"product_id\": 30,\n        \"product_title\": \"unadol cold and flu\"\n    },\n    {\n        \"rate_id\": 28,\n        \"actual_rate\": 1,\n        \"user_id\": 29,\n        \"user_email\": \"maamoun.h.najeeb@gmail.com\",\n        \"product_id\": 34,\n        \"product_title\": \"prodol strong\"\n    },\n    {\n        \"rate_id\": 11,\n        \"actual_rate\": 4,\n        \"user_id\": 29,\n        \"user_email\": \"maamoun.h.najeeb@gmail.com\",\n        \"product_id\": 28,\n        \"product_title\": \"unadol\"\n    },\n    {\n        \"rate_id\": 23,\n        \"actual_rate\": 4,\n        \"user_id\": 23,\n        \"user_email\": \"maamoun.haj.najeeb@gmail.com\",\n        \"product_id\": 28,\n        \"product_title\": \"unadol\"\n    },\n    {\n        \"rate_id\": 12,\n        \"actual_rate\": 4,\n        \"user_id\": 29,\n        \"user_email\": \"maamoun.h.najeeb@gmail.com\",\n        \"product_id\": 29,\n        \"product_title\": \"unadol extra\"\n    },\n    {\n        \"rate_id\": 25,\n        \"actual_rate\": 3,\n        \"user_id\": 23,\n        \"user_email\": \"maamoun.haj.najeeb@gmail.com\",\n        \"product_id\": 29,\n        \"product_title\": \"unadol extra\"\n    }\n]"},{"id":"6bf7a5c1-8686-4a40-9f00-f06b8a60e33d","name":"provider rates (for admins)","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MjM2OTAxLCJpYXQiOjE3MDcyMzU3MDEsImp0aSI6IjM0OTkwNWExNmNlODRjZTFhOTk2NWYxYzAxYzhjZGQ2IiwidXNlcl9pZCI6MjN9.Koj1tKIaH1VZKmHjm-T1IJSacZ-2El9D-HTwQlzOrzc","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/products/provider/rates/31"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 06 Feb 2024 16:08:41 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.11.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language"},{"key":"Allow","value":"OPTIONS, GET"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"1033"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"rate_id\": 14,\n        \"actual_rate\": 4,\n        \"user_id\": 29,\n        \"user_email\": \"maamoun.h.najeeb@gmail.com\",\n        \"product_id\": 26,\n        \"product_title\": \"bebelait\"\n    },\n    {\n        \"rate_id\": 21,\n        \"actual_rate\": 4,\n        \"user_id\": 23,\n        \"user_email\": \"maamoun.haj.najeeb@gmail.com\",\n        \"product_id\": 26,\n        \"product_title\": \"bebelait\"\n    },\n    {\n        \"rate_id\": 13,\n        \"actual_rate\": 4,\n        \"user_id\": 29,\n        \"user_email\": \"maamoun.h.najeeb@gmail.com\",\n        \"product_id\": 27,\n        \"product_title\": \"gicouz\"\n    },\n    {\n        \"rate_id\": 22,\n        \"actual_rate\": 4,\n        \"user_id\": 23,\n        \"user_email\": \"maamoun.haj.najeeb@gmail.com\",\n        \"product_id\": 27,\n        \"product_title\": \"gicouz\"\n    },\n    {\n        \"rate_id\": 16,\n        \"actual_rate\": 4,\n        \"user_id\": 29,\n        \"user_email\": \"maamoun.h.najeeb@gmail.com\",\n        \"product_id\": 24,\n        \"product_title\": \"childs milk\"\n    },\n    {\n        \"rate_id\": 19,\n        \"actual_rate\": 5,\n        \"user_id\": 23,\n        \"user_email\": \"maamoun.haj.najeeb@gmail.com\",\n        \"product_id\": 24,\n        \"product_title\": \"childs milk\"\n    },\n    {\n        \"rate_id\": 15,\n        \"actual_rate\": 5,\n        \"user_id\": 29,\n        \"user_email\": \"maamoun.h.najeeb@gmail.com\",\n        \"product_id\": 25,\n        \"product_title\": \"Nan\"\n    },\n    {\n        \"rate_id\": 20,\n        \"actual_rate\": 4,\n        \"user_id\": 23,\n        \"user_email\": \"maamoun.haj.najeeb@gmail.com\",\n        \"product_id\": 25,\n        \"product_title\": \"Nan\"\n    }\n]"}],"_postman_id":"299cc635-8611-420c-beff-1ae2855fd9a3"},{"name":"products rates","id":"a31ba10d-6ad0-4cd8-9b5c-2640f3a2e6d6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MjM3MTQ1LCJpYXQiOjE3MDcyMzU5NDUsImp0aSI6IjU2M2Y5YzMxODJkOTRjZTJhNWE1MDRkMmYzMTU3NWVhIiwidXNlcl9pZCI6Mjl9.CsIa_Nt1fGMksjvqK4ykVM9AbgQrhgYMMrBblSn_9V4","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/products/28/rates/","description":"<p>This endpoint retrieves rates for specific product.</p>\n<p><strong>This endpoint is for authenticated users.</strong></p>\n","urlObject":{"path":["products","28","rates",""],"host":["http://127.0.0.1:8000/api/v1"],"query":[],"variable":[]}},"response":[{"id":"36a3e331-ca1f-4b1d-acbc-d0d1f30440e8","name":"products rates","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MjM3MTQ1LCJpYXQiOjE3MDcyMzU5NDUsImp0aSI6IjU2M2Y5YzMxODJkOTRjZTJhNWE1MDRkMmYzMTU3NWVhIiwidXNlcl9pZCI6Mjl9.CsIa_Nt1fGMksjvqK4ykVM9AbgQrhgYMMrBblSn_9V4","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/products/28/rates/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 06 Feb 2024 16:12:53 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.11.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language"},{"key":"Allow","value":"OPTIONS, GET"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"257"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"rate_id\": 11,\n        \"actual_rate\": 4,\n        \"user_id\": 29,\n        \"user_email\": \"maamoun.h.najeeb@gmail.com\",\n        \"product_id\": 28,\n        \"product_title\": \"unadol\"\n    },\n    {\n        \"rate_id\": 23,\n        \"actual_rate\": 4,\n        \"user_id\": 23,\n        \"user_email\": \"maamoun.haj.najeeb@gmail.com\",\n        \"product_id\": 28,\n        \"product_title\": \"unadol\"\n    }\n]"}],"_postman_id":"a31ba10d-6ad0-4cd8-9b5c-2640f3a2e6d6"},{"name":"all rates","id":"39c72523-8c10-4864-98ba-f95d96421990","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MjkzMjg3LCJpYXQiOjE3MDcyOTIwODcsImp0aSI6IjI3OWVjNjYzYjg5MzQ5ODk5M2JkYTVkYmIzOWEyNTc2IiwidXNlcl9pZCI6MjN9.KwY17HTno6PH8GG5VhbKJKqPgNgP_r7a0d2MqbaG_ZM","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/products/rates/all/","description":"<p>This endpoint is used to retrieve all products rates in the system.</p>\n<p><strong>This endpoint is for admins only.</strong></p>\n","urlObject":{"path":["products","rates","all",""],"host":["http://127.0.0.1:8000/api/v1"],"query":[],"variable":[]}},"response":[{"id":"54c285a6-e740-4b9f-a2be-9ae45e8d4fb8","name":"all rates","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MjkzMjg3LCJpYXQiOjE3MDcyOTIwODcsImp0aSI6IjI3OWVjNjYzYjg5MzQ5ODk5M2JkYTVkYmIzOWEyNTc2IiwidXNlcl9pZCI6MjN9.KwY17HTno6PH8GG5VhbKJKqPgNgP_r7a0d2MqbaG_ZM","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/products/rates/all/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 07 Feb 2024 08:02:08 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.11.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language"},{"key":"Allow","value":"OPTIONS, GET"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"1972"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"rate_id\": 5,\n        \"actual_rate\": 5,\n        \"user_id\": 29,\n        \"user_email\": \"maamoun.h.najeeb@gmail.com\",\n        \"product_id\": 30,\n        \"product_title\": \"unadol cold and flu\"\n    },\n    {\n        \"rate_id\": 11,\n        \"actual_rate\": 4,\n        \"user_id\": 29,\n        \"user_email\": \"maamoun.h.najeeb@gmail.com\",\n        \"product_id\": 28,\n        \"product_title\": \"unadol\"\n    },\n    {\n        \"rate_id\": 12,\n        \"actual_rate\": 4,\n        \"user_id\": 29,\n        \"user_email\": \"maamoun.h.najeeb@gmail.com\",\n        \"product_id\": 29,\n        \"product_title\": \"unadol extra\"\n    },\n    {\n        \"rate_id\": 13,\n        \"actual_rate\": 4,\n        \"user_id\": 29,\n        \"user_email\": \"maamoun.h.najeeb@gmail.com\",\n        \"product_id\": 27,\n        \"product_title\": \"gicouz\"\n    },\n    {\n        \"rate_id\": 14,\n        \"actual_rate\": 4,\n        \"user_id\": 29,\n        \"user_email\": \"maamoun.h.najeeb@gmail.com\",\n        \"product_id\": 26,\n        \"product_title\": \"bebelait\"\n    },\n    {\n        \"rate_id\": 16,\n        \"actual_rate\": 4,\n        \"user_id\": 29,\n        \"user_email\": \"maamoun.h.najeeb@gmail.com\",\n        \"product_id\": 24,\n        \"product_title\": \"childs milk\"\n    },\n    {\n        \"rate_id\": 20,\n        \"actual_rate\": 4,\n        \"user_id\": 23,\n        \"user_email\": \"maamoun.haj.najeeb@gmail.com\",\n        \"product_id\": 25,\n        \"product_title\": \"Nan\"\n    },\n    {\n        \"rate_id\": 21,\n        \"actual_rate\": 4,\n        \"user_id\": 23,\n        \"user_email\": \"maamoun.haj.najeeb@gmail.com\",\n        \"product_id\": 26,\n        \"product_title\": \"bebelait\"\n    },\n    {\n        \"rate_id\": 22,\n        \"actual_rate\": 4,\n        \"user_id\": 23,\n        \"user_email\": \"maamoun.haj.najeeb@gmail.com\",\n        \"product_id\": 27,\n        \"product_title\": \"gicouz\"\n    },\n    {\n        \"rate_id\": 23,\n        \"actual_rate\": 4,\n        \"user_id\": 23,\n        \"user_email\": \"maamoun.haj.najeeb@gmail.com\",\n        \"product_id\": 28,\n        \"product_title\": \"unadol\"\n    },\n    {\n        \"rate_id\": 25,\n        \"actual_rate\": 3,\n        \"user_id\": 23,\n        \"user_email\": \"maamoun.haj.najeeb@gmail.com\",\n        \"product_id\": 29,\n        \"product_title\": \"unadol extra\"\n    },\n    {\n        \"rate_id\": 26,\n        \"actual_rate\": 2,\n        \"user_id\": 23,\n        \"user_email\": \"maamoun.haj.najeeb@gmail.com\",\n        \"product_id\": 30,\n        \"product_title\": \"unadol cold and flu\"\n    },\n    {\n        \"rate_id\": 15,\n        \"actual_rate\": 5,\n        \"user_id\": 29,\n        \"user_email\": \"maamoun.h.najeeb@gmail.com\",\n        \"product_id\": 25,\n        \"product_title\": \"Nan\"\n    },\n    {\n        \"rate_id\": 28,\n        \"actual_rate\": 1,\n        \"user_id\": 29,\n        \"user_email\": \"maamoun.h.najeeb@gmail.com\",\n        \"product_id\": 34,\n        \"product_title\": \"prodol strong\"\n    },\n    {\n        \"rate_id\": 19,\n        \"actual_rate\": 5,\n        \"user_id\": 23,\n        \"user_email\": \"maamoun.haj.najeeb@gmail.com\",\n        \"product_id\": 24,\n        \"product_title\": \"childs milk\"\n    }\n]"}],"_postman_id":"39c72523-8c10-4864-98ba-f95d96421990"}],"id":"67468535-2ec1-48ea-9c56-172df1f32730","_postman_id":"67468535-2ec1-48ea-9c56-172df1f32730","description":""},{"name":"specific product","item":[{"name":"read","id":"9b5624f6-87a5-449f-8ae7-8ba8bf5030b0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"http://127.0.0.1:8000/api/v1/products/30","description":"<p>This endpoint retrieves specific product by it's ID.</p>\n<p><strong>This endpoint is for everybody.</strong></p>\n","urlObject":{"path":["products","30"],"host":["http://127.0.0.1:8000/api/v1"],"query":[],"variable":[]}},"response":[{"id":"519e1b82-38d5-4adf-ba40-dd009d86f183","name":"read","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"http://127.0.0.1:8000/api/v1/products/30"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 06 Feb 2024 14:30:22 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.11.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language, Cookie"},{"key":"Allow","value":"GET, PUT, PATCH, DELETE, HEAD, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"469"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 30,\n        \"service_provider\": \"Remostart\",\n        \"service_provider_location\": 3,\n        \"category_id\": 1,\n        \"category_title\": \"DOCTORS\",\n        \"quantity\": 56,\n        \"title\": \"unadol cold and flu\",\n        \"description\": \"any description\",\n        \"images\": [\n            \"http://127.0.0.1:8000/media/products/04605578cecf4cde96628d3eb9f43b4f.png\",\n            \"http://127.0.0.1:8000/media/products/da615a36e1d14e759428c03d8a99aae9.png\"\n        ],\n        \"price\": 1500.2,\n        \"discount_ammount\": 0,\n        \"is_active\": false,\n        \"rates\": {\n            \"0\": 0,\n            \"1\": 0,\n            \"2\": 1,\n            \"3\": 0,\n            \"4\": 0,\n            \"5\": 1,\n            \"avg_rate\": 3.5\n        }\n    }\n]"}],"_postman_id":"9b5624f6-87a5-449f-8ae7-8ba8bf5030b0"},{"name":"delete","id":"7aea5d7c-6222-4440-9e16-072afaace787","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MjMxNDM3LCJpYXQiOjE3MDcyMzAyMzcsImp0aSI6IjY3NTlkM2FhZGQ5MDQ2YzI5YzI1YzRmMTE3OWNlZWZkIiwidXNlcl9pZCI6MzB9.2dXd2vrrQ4dsGM99Lar5Cg1mqQXhyFhpHowhz1LpaFs","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/products/31/","description":"<p>This endpoint used to delete specific products.</p>\n<p><strong>This endpoint is for admins &amp; service providers.</strong></p>\n","urlObject":{"path":["products","31",""],"host":["http://127.0.0.1:8000/api/v1"],"query":[],"variable":[]}},"response":[{"id":"c8ce7ba9-99fa-4142-84e8-220e84166db9","name":"delete","originalRequest":{"method":"DELETE","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MjMxNDM3LCJpYXQiOjE3MDcyMzAyMzcsImp0aSI6IjY3NTlkM2FhZGQ5MDQ2YzI5YzI1YzRmMTE3OWNlZWZkIiwidXNlcl9pZCI6MzB9.2dXd2vrrQ4dsGM99Lar5Cg1mqQXhyFhpHowhz1LpaFs","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/products/31/"},"status":"No Content","code":204,"_postman_previewlanguage":"plain","header":[{"key":"Date","value":"Tue, 06 Feb 2024 14:37:42 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.11.0"},{"key":"Vary","value":"Accept, origin, Accept-Language"},{"key":"Allow","value":"GET, PUT, PATCH, DELETE, HEAD, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"0"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":null}],"_postman_id":"7aea5d7c-6222-4440-9e16-072afaace787"},{"name":"create","id":"81b42239-c637-4ffb-9d1d-a6d71fedf7f3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MzI0MDI5LCJpYXQiOjE3MDczMjI4MjksImp0aSI6ImIxYjBlNmY1MDk0MzQ0MTE5ZWQxODNhMmEyYTNkYTMwIiwidXNlcl9pZCI6MX0.TM-9yq6XARpHa-GtMVSoXaQ06F8ZViCaZKYs_A1pwCM","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"service_provider_location","value":"1","type":"text"},{"key":"ar_title","value":"منتج2","type":"text"},{"key":"en_title","value":"product2","type":"text"},{"key":"ar_description","value":"وصف المنتج 2","type":"text"},{"key":"en_description","value":"product2 description","type":"text"},{"key":"images","type":"file","fileNotInWorkingDirectoryWarning":"This file isn't in your working directory. Teammates you share this request with won't be able to use this file. To make collaboration easier you can setup your working directory in Settings.","filesNotInWorkingDirectory":["/C:/Users/HP/Desktop/docerkfile.png"],"src":"/C:/Users/HP/Desktop/docerkfile.png"},{"key":"price","value":"20","type":"text"}]},"url":"http://127.0.0.1:8000/api/v1/products/","description":"<h1 id=\"add-a-product\">Add a Product</h1>\n<p>This endpoint allows you to add a new product to the system.</p>\n<h3 id=\"request-body\">Request Body</h3>\n<ul>\n<li><code>service_provider_location</code> (text): The location of the service provider.</li>\n<li><code>ar_title</code> (text): The title of the product in Arabic.</li>\n<li><code>en_title</code> (text): The title of the product in English.</li>\n<li><code>ar_description</code> (text): The description of the product in Arabic.</li>\n<li><code>en_description</code> (text): The description of the product in English.</li>\n<li><code>images</code> (file): The images of the product.</li>\n<li><code>price</code> (text): The price of the product.</li>\n</ul>\n<h3 id=\"response\">Response</h3>\n<ul>\n<li>Status: 201</li>\n<li>Content-Type: application/json</li>\n</ul>\n<p>Example response:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"id\": 0,\n    \"service_provider\": \"\",\n    \"service_provider_location\": 0,\n    \"category_id\": 0,\n    \"category_title\": \"\",\n    \"quantity\": 0,\n    \"title\": \"\",\n    \"description\": \"\",\n    \"images\": [\"\"],\n    \"price\": 0,\n    \"discount_ammount\": 0,\n    \"rates\": {\n        \"0\": 0,\n        \"1\": 0,\n        \"2\": 0,\n        \"3\": 0,\n        \"4\": 0,\n        \"5\": 0,\n        \"avg_rate\": 0\n    }\n}\n</code></pre>\n","urlObject":{"path":["products",""],"host":["http://127.0.0.1:8000/api/v1"],"query":[],"variable":[]}},"response":[{"id":"9c870618-42b0-438c-b5dd-d0c9611b6363","name":"create","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MzI0MDI5LCJpYXQiOjE3MDczMjI4MjksImp0aSI6ImIxYjBlNmY1MDk0MzQ0MTE5ZWQxODNhMmEyYTNkYTMwIiwidXNlcl9pZCI6MX0.TM-9yq6XARpHa-GtMVSoXaQ06F8ZViCaZKYs_A1pwCM","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"service_provider_location","value":"1","type":"text"},{"key":"ar_title","value":"منتج2","type":"text"},{"key":"en_title","value":"product2","type":"text"},{"key":"ar_description","value":"وصف المنتج 2","type":"text"},{"key":"en_description","value":"product2 description","type":"text"},{"key":"images","type":"file","fileNotInWorkingDirectoryWarning":"This file isn't in your working directory. Teammates you share this request with won't be able to use this file. To make collaboration easier you can setup your working directory in Settings.","filesNotInWorkingDirectory":["/C:/Users/HP/Desktop/docerkfile.png"],"src":"/C:/Users/HP/Desktop/docerkfile.png"},{"key":"price","value":"20","type":"text"}],"options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"http://127.0.0.1:8000/api/v1/products/"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 07 Feb 2024 16:33:22 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.9.10"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language"},{"key":"Allow","value":"POST, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"361"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 2,\n    \"service_provider\": \"google\",\n    \"service_provider_location\": 1,\n    \"category_id\": 1,\n    \"category_title\": \"PHARMACY\",\n    \"quantity\": 0,\n    \"title\": \"product2\",\n    \"description\": \"product2 description\",\n    \"images\": [\n        \"http://127.0.0.1:8000/media/products/0fc48477d2de4989a04b5b64c82185fe.png\"\n    ],\n    \"price\": 20,\n    \"discount_ammount\": 0,\n    \"rates\": {\n        \"0\": 0,\n        \"1\": 0,\n        \"2\": 0,\n        \"3\": 0,\n        \"4\": 0,\n        \"5\": 0,\n        \"avg_rate\": 0\n    }\n}"}],"_postman_id":"81b42239-c637-4ffb-9d1d-a6d71fedf7f3"},{"name":"update","id":"b80e94c0-0d23-4d10-9708-4c873b5ab6ba","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MjkyNjEzLCJpYXQiOjE3MDcyOTE0MTMsImp0aSI6IjA1ZWQyYzZiNTk0YzQyMTI4MTE4OGI5YjM3ZTU5NzEyIiwidXNlcl9pZCI6MzB9.jpFbcthOkCqC7rD8g3HJLwpJPnYMYJ1xBTaToMDPcvk","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"discount_ammount\": 20\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"http://127.0.0.1:8000/api/v1/products/30/","description":"<p>This endpoint is used to update product details.</p>\n<p><strong>This endpoint is for admins &amp; service provider.</strong></p>\n","urlObject":{"path":["products","30",""],"host":["http://127.0.0.1:8000/api/v1"],"query":[],"variable":[]}},"response":[{"id":"ba65eb4f-5dd3-4188-99fb-d81cd1603d33","name":"update","originalRequest":{"method":"PATCH","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MjQyNjM2LCJpYXQiOjE3MDcyNDE0MzYsImp0aSI6IjAyYmE1OTcwNzQ0ZjQ5NmM5ZGNmMTM2OTcyZmE0YzE1IiwidXNlcl9pZCI6MzB9.5NxZwD16A89ybVTUxeJ8TN-fTxCqJcILp3E8YFmEY1c","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"price\": 250\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"http://127.0.0.1:8000/api/v1/products/30/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 06 Feb 2024 17:51:55 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.11.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language"},{"key":"Allow","value":"GET, PUT, PATCH, DELETE, HEAD, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"466"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 30,\n    \"service_provider\": \"Remostart\",\n    \"service_provider_location\": 3,\n    \"category_id\": 1,\n    \"category_title\": \"DOCTORS\",\n    \"quantity\": 56,\n    \"title\": \"unadol cold and flu\",\n    \"description\": \"any description\",\n    \"images\": [\n        \"http://127.0.0.1:8000/media/products/04605578cecf4cde96628d3eb9f43b4f.png\",\n        \"http://127.0.0.1:8000/media/products/da615a36e1d14e759428c03d8a99aae9.png\"\n    ],\n    \"price\": 250,\n    \"discount_ammount\": 0,\n    \"is_active\": false,\n    \"rates\": {\n        \"0\": 0,\n        \"1\": 0,\n        \"2\": 1,\n        \"3\": 0,\n        \"4\": 0,\n        \"5\": 1,\n        \"avg_rate\": 3.5\n    }\n}"},{"id":"a35b2ec9-2aea-46b8-a7d2-ac1f8f3d6645","name":"update","originalRequest":{"method":"PATCH","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MjkyNjEzLCJpYXQiOjE3MDcyOTE0MTMsImp0aSI6IjA1ZWQyYzZiNTk0YzQyMTI4MTE4OGI5YjM3ZTU5NzEyIiwidXNlcl9pZCI6MzB9.jpFbcthOkCqC7rD8g3HJLwpJPnYMYJ1xBTaToMDPcvk","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"discount_ammount\": 20\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"http://127.0.0.1:8000/api/v1/products/30/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 07 Feb 2024 07:37:40 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.11.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language"},{"key":"Allow","value":"GET, PUT, PATCH, DELETE, HEAD, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"467"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 30,\n    \"service_provider\": \"Remostart\",\n    \"service_provider_location\": 3,\n    \"category_id\": 1,\n    \"category_title\": \"DOCTORS\",\n    \"quantity\": 56,\n    \"title\": \"unadol cold and flu\",\n    \"description\": \"any description\",\n    \"images\": [\n        \"http://127.0.0.1:8000/media/products/04605578cecf4cde96628d3eb9f43b4f.png\",\n        \"http://127.0.0.1:8000/media/products/da615a36e1d14e759428c03d8a99aae9.png\"\n    ],\n    \"price\": 250,\n    \"discount_ammount\": 20,\n    \"is_active\": false,\n    \"rates\": {\n        \"0\": 0,\n        \"1\": 0,\n        \"2\": 1,\n        \"3\": 0,\n        \"4\": 0,\n        \"5\": 1,\n        \"avg_rate\": 3.5\n    }\n}"}],"_postman_id":"b80e94c0-0d23-4d10-9708-4c873b5ab6ba"}],"id":"789bd5de-4b29-428d-bf88-9018be5d3ec6","_postman_id":"789bd5de-4b29-428d-bf88-9018be5d3ec6","description":""},{"name":"others","item":[{"name":"all products","id":"0c497bda-348e-4004-be5e-4aac87199ae3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Accept-Language","value":"application/json","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/products/all/","description":"<p>This endpoint will list all the products in the system.</p>\n<p><strong>This endpoint is for everybody.</strong></p>\n","urlObject":{"path":["products","all",""],"host":["http://127.0.0.1:8000/api/v1"],"query":[],"variable":[]}},"response":[{"id":"2a571163-9cdd-4025-abec-508ca40e2a3a","name":"all products","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Accept-Language","value":"application/json","type":"text"},{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzAxOTkwMDQ1LCJpYXQiOjE3MDE5ODg4NDUsImp0aSI6IjcwZDVjOTNkN2ZmMzQ4YTdhYzM2MGI1NGZmZmYzMzRlIiwidXNlcl9pZCI6MX0.y0LZjbXpSHa-TGZonE8nsyuBhIWnXwFj-950jn7GR14","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/products/all/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 07 Dec 2023 22:41:09 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.9.10"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language"},{"key":"Allow","value":"GET, HEAD, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"391"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"same-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 1,\n        \"service_provider_location\": 1,\n        \"quantity\": 2,\n        \"title\": \"Teeth Brush\",\n        \"description\": \"asd\",\n        \"images\": [\n            \"https://imgs.search.brave.com/2tHckcLHGys54UZ1Bi6KXPi94n0fSURL-hXyuORg44M/rs:fit:632:225:1/g:ce/aHR0cHM6Ly90c2Ux/Lm1tLmJpbmcubmV0/L3RoP2lkPU9JUC5x/MU5VamdUTTJnYjUx/Z2YyazBwR09BSGFG/aiZwaWQ9QXBp\"\n        ],\n        \"price\": 2.04,\n        \"rates\": {\n            \"0\": 0,\n            \"1\": 0,\n            \"2\": 0,\n            \"3\": 0,\n            \"4\": 0,\n            \"5\": 0,\n            \"avg_rate\": {\n                \"rate__avg\": null\n            }\n        }\n    }\n]"}],"_postman_id":"0c497bda-348e-4004-be5e-4aac87199ae3"},{"name":"location products","id":"f3d028f8-7086-4bba-955e-2b9710320b6a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://127.0.0.1:8000/api/v1/products/location/4/","description":"<p>This endpoint used to get all products for specific service provider location</p>\n<p><strong>This endpoint is for everybody.</strong></p>\n","urlObject":{"path":["products","location","4",""],"host":["http://127.0.0.1:8000/api/v1"],"query":[],"variable":[]}},"response":[{"id":"28afd1c7-68ce-4193-9f69-e16324897cf4","name":"location products","originalRequest":{"method":"GET","header":[],"url":"http://127.0.0.1:8000/api/v1/products/location/4/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 06 Feb 2024 14:55:12 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.11.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language, Cookie"},{"key":"Allow","value":"OPTIONS, GET"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"917"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 28,\n        \"service_provider\": \"Remostart\",\n        \"service_provider_location\": 4,\n        \"category_id\": 1,\n        \"category_title\": \"DOCTORS\",\n        \"quantity\": 62,\n        \"title\": \"unadol\",\n        \"description\": \"any description\",\n        \"images\": [\n            \"http://127.0.0.1:8000/media/products/0c57f80920b14cad96c4d474d187f554.png\",\n            \"http://127.0.0.1:8000/media/products/6970f45afcb247c28ecc1c86fe8137c1.png\"\n        ],\n        \"price\": 1500.2,\n        \"discount_ammount\": 0,\n        \"is_active\": false,\n        \"rates\": {\n            \"0\": 0,\n            \"1\": 0,\n            \"2\": 0,\n            \"3\": 0,\n            \"4\": 2,\n            \"5\": 0,\n            \"avg_rate\": 4\n        }\n    },\n    {\n        \"id\": 29,\n        \"service_provider\": \"Remostart\",\n        \"service_provider_location\": 4,\n        \"category_id\": 1,\n        \"category_title\": \"DOCTORS\",\n        \"quantity\": 31,\n        \"title\": \"unadol extra\",\n        \"description\": \"any description\",\n        \"images\": [\n            \"http://127.0.0.1:8000/media/products/9a5188cac2fa4d4782b45a1bf6d10d40.png\",\n            \"http://127.0.0.1:8000/media/products/1c417d9eeb4c42b3974b1f5ff3a6d618.png\"\n        ],\n        \"price\": 1500.2,\n        \"discount_ammount\": 0,\n        \"is_active\": false,\n        \"rates\": {\n            \"0\": 0,\n            \"1\": 0,\n            \"2\": 0,\n            \"3\": 1,\n            \"4\": 1,\n            \"5\": 0,\n            \"avg_rate\": 3.5\n        }\n    }\n]"}],"_postman_id":"f3d028f8-7086-4bba-955e-2b9710320b6a"},{"name":"price range filter","id":"dcc8cb37-800e-44b3-ac3c-99af4340b80f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://127.0.0.1:8000/api/v1/products/filter/price_range/?min_price=4000&max_price=6000","description":"<p>This endpoint to retrieve products within specified price range.</p>\n<p><strong>This endpoint is for everybody.</strong></p>\n","urlObject":{"path":["products","filter","price_range",""],"host":["http://127.0.0.1:8000/api/v1"],"query":[{"key":"min_price","value":"4000"},{"key":"max_price","value":"6000"}],"variable":[]}},"response":[{"id":"70315396-9816-432b-b569-70dcc47caa02","name":"price range filter","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://127.0.0.1:8000/api/v1/products/filter/price_range/?min_price=4000&max_price=6000","host":["http://127.0.0.1:8000/api/v1"],"path":["products","filter","price_range",""],"query":[{"key":"min_price","value":"4000"},{"key":"max_price","value":"6000"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 06 Feb 2024 15:00:21 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.11.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language, Cookie"},{"key":"Allow","value":"OPTIONS, GET"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"464"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 35,\n        \"service_provider\": \"Remostart\",\n        \"service_provider_location\": 3,\n        \"category_id\": 1,\n        \"category_title\": \"DOCTORS\",\n        \"quantity\": 3,\n        \"title\": \"check feet\",\n        \"description\": \"full checkup for feet\",\n        \"images\": [\n            \"http://127.0.0.1:8000/media/products/f70b4ac7d93c423a9e9e0b5d8f78d0ff.png\",\n            \"http://127.0.0.1:8000/media/products/e20fb710517e4a9f8eb05bdfbaec6ba7.png\"\n        ],\n        \"price\": 4536,\n        \"discount_ammount\": 0,\n        \"is_active\": true,\n        \"rates\": {\n            \"0\": 0,\n            \"1\": 0,\n            \"2\": 0,\n            \"3\": 0,\n            \"4\": 0,\n            \"5\": 0,\n            \"avg_rate\": 0\n        }\n    }\n]"}],"_postman_id":"dcc8cb37-800e-44b3-ac3c-99af4340b80f"},{"name":"category products by category name","id":"b03e4e25-e0b8-424d-a7de-01f1d9fcceb9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept-Language","value":"","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/products/Doctors/","description":"<p>This endpoint used to get all the products related to specific category.</p>\n<p>You must add category name in the end of the url.</p>\n<p><strong>This endpoint is for everybody.</strong></p>\n","urlObject":{"path":["products","Doctors",""],"host":["http://127.0.0.1:8000/api/v1"],"query":[],"variable":[]}},"response":[{"id":"67c6ad94-d5ee-4909-9035-b27070e54141","name":"category products by category name","originalRequest":{"method":"GET","header":[{"key":"Accept-Language","value":"","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/products/optics/"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 06 Feb 2024 14:49:58 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.11.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language, Cookie"},{"key":"Allow","value":"OPTIONS, GET"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"61"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"No products found relates to this category name\"\n}"},{"id":"9ea6f0eb-5d26-4ea1-a947-9f96e02e02ce","name":"category products by category name","originalRequest":{"method":"GET","header":[{"key":"Accept-Language","value":"","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/products/Doctors/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 06 Feb 2024 14:50:23 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.11.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language, Cookie"},{"key":"Allow","value":"OPTIONS, GET"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"4609"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 22,\n        \"service_provider\": \"our_new_name\",\n        \"service_provider_location\": 6,\n        \"category_id\": 1,\n        \"category_title\": \"DOCTORS\",\n        \"quantity\": 70,\n        \"title\": \"childs milk\",\n        \"description\": \"any description\",\n        \"images\": [\n            \"http://127.0.0.1:8000/media/products/6b8a001d16d145be80d8281c689a264f.png\",\n            \"http://127.0.0.1:8000/media/products/aa0b8e26af344ac48158d3752ef3cce4.png\"\n        ],\n        \"price\": 1500.2,\n        \"discount_ammount\": 0,\n        \"is_active\": false,\n        \"rates\": {\n            \"0\": 0,\n            \"1\": 0,\n            \"2\": 0,\n            \"3\": 0,\n            \"4\": 0,\n            \"5\": 0,\n            \"avg_rate\": 0\n        }\n    },\n    {\n        \"id\": 24,\n        \"service_provider\": \"our_new_name\",\n        \"service_provider_location\": 6,\n        \"category_id\": 1,\n        \"category_title\": \"DOCTORS\",\n        \"quantity\": 66,\n        \"title\": \"childs milk\",\n        \"description\": \"any description\",\n        \"images\": [\n            \"http://127.0.0.1:8000/media/products/10b5083b557241eaa77dada69f1ef269.png\",\n            \"http://127.0.0.1:8000/media/products/03bce9bf30f34c718f82f6a9db7eef71.png\"\n        ],\n        \"price\": 1500.2,\n        \"discount_ammount\": 0,\n        \"is_active\": false,\n        \"rates\": {\n            \"0\": 0,\n            \"1\": 0,\n            \"2\": 0,\n            \"3\": 0,\n            \"4\": 1,\n            \"5\": 1,\n            \"avg_rate\": 4.5\n        }\n    },\n    {\n        \"id\": 25,\n        \"service_provider\": \"our_new_name\",\n        \"service_provider_location\": 6,\n        \"category_id\": 1,\n        \"category_title\": \"DOCTORS\",\n        \"quantity\": 61,\n        \"title\": \"Nan\",\n        \"description\": \"any description\",\n        \"images\": [\n            \"http://127.0.0.1:8000/media/products/a3394b3a27b8423fb59b0b417b02021c.png\",\n            \"http://127.0.0.1:8000/media/products/9240aef35f7d4bd4b40b152c3a3d5dfa.png\"\n        ],\n        \"price\": 1500.2,\n        \"discount_ammount\": 0,\n        \"is_active\": false,\n        \"rates\": {\n            \"0\": 0,\n            \"1\": 0,\n            \"2\": 0,\n            \"3\": 0,\n            \"4\": 1,\n            \"5\": 1,\n            \"avg_rate\": 4.5\n        }\n    },\n    {\n        \"id\": 26,\n        \"service_provider\": \"our_new_name\",\n        \"service_provider_location\": 5,\n        \"category_id\": 1,\n        \"category_title\": \"DOCTORS\",\n        \"quantity\": 64,\n        \"title\": \"bebelait\",\n        \"description\": \"any description\",\n        \"images\": [\n            \"http://127.0.0.1:8000/media/products/62798ed7c503442f9ca7fad538588f14.png\",\n            \"http://127.0.0.1:8000/media/products/ff18aa49b3974977bfbf2c7ab66b92f2.png\"\n        ],\n        \"price\": 1500.2,\n        \"discount_ammount\": 0,\n        \"is_active\": false,\n        \"rates\": {\n            \"0\": 0,\n            \"1\": 0,\n            \"2\": 0,\n            \"3\": 0,\n            \"4\": 2,\n            \"5\": 0,\n            \"avg_rate\": 4\n        }\n    },\n    {\n        \"id\": 27,\n        \"service_provider\": \"our_new_name\",\n        \"service_provider_location\": 5,\n        \"category_id\": 1,\n        \"category_title\": \"DOCTORS\",\n        \"quantity\": 66,\n        \"title\": \"gicouz\",\n        \"description\": \"any description\",\n        \"images\": [\n            \"http://127.0.0.1:8000/media/products/270489b341c64264981cb4bf16f6916d.png\",\n            \"http://127.0.0.1:8000/media/products/7d86cc0cbac94d8e855b945c70aa1553.png\"\n        ],\n        \"price\": 1500.2,\n        \"discount_ammount\": 0,\n        \"is_active\": false,\n        \"rates\": {\n            \"0\": 0,\n            \"1\": 0,\n            \"2\": 0,\n            \"3\": 0,\n            \"4\": 2,\n            \"5\": 0,\n            \"avg_rate\": 4\n        }\n    },\n    {\n        \"id\": 28,\n        \"service_provider\": \"Remostart\",\n        \"service_provider_location\": 4,\n        \"category_id\": 1,\n        \"category_title\": \"DOCTORS\",\n        \"quantity\": 62,\n        \"title\": \"unadol\",\n        \"description\": \"any description\",\n        \"images\": [\n            \"http://127.0.0.1:8000/media/products/0c57f80920b14cad96c4d474d187f554.png\",\n            \"http://127.0.0.1:8000/media/products/6970f45afcb247c28ecc1c86fe8137c1.png\"\n        ],\n        \"price\": 1500.2,\n        \"discount_ammount\": 0,\n        \"is_active\": false,\n        \"rates\": {\n            \"0\": 0,\n            \"1\": 0,\n            \"2\": 0,\n            \"3\": 0,\n            \"4\": 2,\n            \"5\": 0,\n            \"avg_rate\": 4\n        }\n    },\n    {\n        \"id\": 29,\n        \"service_provider\": \"Remostart\",\n        \"service_provider_location\": 4,\n        \"category_id\": 1,\n        \"category_title\": \"DOCTORS\",\n        \"quantity\": 31,\n        \"title\": \"unadol extra\",\n        \"description\": \"any description\",\n        \"images\": [\n            \"http://127.0.0.1:8000/media/products/9a5188cac2fa4d4782b45a1bf6d10d40.png\",\n            \"http://127.0.0.1:8000/media/products/1c417d9eeb4c42b3974b1f5ff3a6d618.png\"\n        ],\n        \"price\": 1500.2,\n        \"discount_ammount\": 0,\n        \"is_active\": false,\n        \"rates\": {\n            \"0\": 0,\n            \"1\": 0,\n            \"2\": 0,\n            \"3\": 1,\n            \"4\": 1,\n            \"5\": 0,\n            \"avg_rate\": 3.5\n        }\n    },\n    {\n        \"id\": 30,\n        \"service_provider\": \"Remostart\",\n        \"service_provider_location\": 3,\n        \"category_id\": 1,\n        \"category_title\": \"DOCTORS\",\n        \"quantity\": 56,\n        \"title\": \"unadol cold and flu\",\n        \"description\": \"any description\",\n        \"images\": [\n            \"http://127.0.0.1:8000/media/products/04605578cecf4cde96628d3eb9f43b4f.png\",\n            \"http://127.0.0.1:8000/media/products/da615a36e1d14e759428c03d8a99aae9.png\"\n        ],\n        \"price\": 1500.2,\n        \"discount_ammount\": 0,\n        \"is_active\": false,\n        \"rates\": {\n            \"0\": 0,\n            \"1\": 0,\n            \"2\": 1,\n            \"3\": 0,\n            \"4\": 0,\n            \"5\": 1,\n            \"avg_rate\": 3.5\n        }\n    },\n    {\n        \"id\": 34,\n        \"service_provider\": \"Remostart\",\n        \"service_provider_location\": 3,\n        \"category_id\": 1,\n        \"category_title\": \"DOCTORS\",\n        \"quantity\": 70,\n        \"title\": \"prodol strong\",\n        \"description\": \"any description\",\n        \"images\": [\n            \"http://127.0.0.1:8000/media/products/2bfee8a450884b1db4462a4a0849e9c8.png\",\n            \"http://127.0.0.1:8000/media/products/c24a0c1e54234a94bd97e4607cb59df8.png\"\n        ],\n        \"price\": 1500.2,\n        \"discount_ammount\": 0,\n        \"is_active\": false,\n        \"rates\": {\n            \"0\": 0,\n            \"1\": 1,\n            \"2\": 0,\n            \"3\": 0,\n            \"4\": 0,\n            \"5\": 0,\n            \"avg_rate\": 1\n        }\n    },\n    {\n        \"id\": 35,\n        \"service_provider\": \"Remostart\",\n        \"service_provider_location\": 3,\n        \"category_id\": 1,\n        \"category_title\": \"DOCTORS\",\n        \"quantity\": 3,\n        \"title\": \"check feet\",\n        \"description\": \"full checkup for feet\",\n        \"images\": [\n            \"http://127.0.0.1:8000/media/products/f70b4ac7d93c423a9e9e0b5d8f78d0ff.png\",\n            \"http://127.0.0.1:8000/media/products/e20fb710517e4a9f8eb05bdfbaec6ba7.png\"\n        ],\n        \"price\": 4536,\n        \"discount_ammount\": 0,\n        \"is_active\": true,\n        \"rates\": {\n            \"0\": 0,\n            \"1\": 0,\n            \"2\": 0,\n            \"3\": 0,\n            \"4\": 0,\n            \"5\": 0,\n            \"avg_rate\": 0\n        }\n    }\n]"}],"_postman_id":"b03e4e25-e0b8-424d-a7de-01f1d9fcceb9"},{"name":"search in products by product name","id":"2f97ddb9-c107-449c-96de-c3ab6c44ae4f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://127.0.0.1:8000/api/v1/products/product_name/?name=child","description":"<p>This endpoint will search through all products via title.</p>\n<p>You can search in arabic or english.</p>\n<p>Add name paramter to the request with the chosen word.</p>\n<p><strong>This endpoint is for everybody.</strong></p>\n","urlObject":{"path":["products","product_name",""],"host":["http://127.0.0.1:8000/api/v1"],"query":[{"key":"name","value":"child"}],"variable":[]}},"response":[{"id":"c0ba999d-01b5-4123-a94d-f560ce900cba","name":"search in products by products name","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://127.0.0.1:8000/api/v1/products/product_name/?name=blood","host":["http://127.0.0.1:8000/api/v1"],"path":["products","product_name",""],"query":[{"key":"name","value":"blood"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 06 Feb 2024 14:53:06 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.11.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language, Cookie"},{"key":"Allow","value":"OPTIONS, GET"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"46"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"No products found with that name\"\n}"},{"id":"4c7b9321-dfe6-4f19-b3fe-946efa209753","name":"search in products by products name","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://127.0.0.1:8000/api/v1/products/product_name/?name=child","host":["http://127.0.0.1:8000/api/v1"],"path":["products","product_name",""],"query":[{"key":"name","value":"child"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 06 Feb 2024 14:54:28 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.11.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language, Cookie"},{"key":"Allow","value":"OPTIONS, GET"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"927"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 22,\n        \"service_provider\": \"our_new_name\",\n        \"service_provider_location\": 6,\n        \"category_id\": 1,\n        \"category_title\": \"DOCTORS\",\n        \"quantity\": 70,\n        \"title\": \"childs milk\",\n        \"description\": \"any description\",\n        \"images\": [\n            \"http://127.0.0.1:8000/media/products/6b8a001d16d145be80d8281c689a264f.png\",\n            \"http://127.0.0.1:8000/media/products/aa0b8e26af344ac48158d3752ef3cce4.png\"\n        ],\n        \"price\": 1500.2,\n        \"discount_ammount\": 0,\n        \"is_active\": false,\n        \"rates\": {\n            \"0\": 0,\n            \"1\": 0,\n            \"2\": 0,\n            \"3\": 0,\n            \"4\": 0,\n            \"5\": 0,\n            \"avg_rate\": 0\n        }\n    },\n    {\n        \"id\": 24,\n        \"service_provider\": \"our_new_name\",\n        \"service_provider_location\": 6,\n        \"category_id\": 1,\n        \"category_title\": \"DOCTORS\",\n        \"quantity\": 66,\n        \"title\": \"childs milk\",\n        \"description\": \"any description\",\n        \"images\": [\n            \"http://127.0.0.1:8000/media/products/10b5083b557241eaa77dada69f1ef269.png\",\n            \"http://127.0.0.1:8000/media/products/03bce9bf30f34c718f82f6a9db7eef71.png\"\n        ],\n        \"price\": 1500.2,\n        \"discount_ammount\": 0,\n        \"is_active\": false,\n        \"rates\": {\n            \"0\": 0,\n            \"1\": 0,\n            \"2\": 0,\n            \"3\": 0,\n            \"4\": 1,\n            \"5\": 1,\n            \"avg_rate\": 4.5\n        }\n    }\n]"}],"_postman_id":"2f97ddb9-c107-449c-96de-c3ab6c44ae4f"},{"name":"category products by category ID","id":"1dc828ac-4dd7-40d4-b1c9-7fe66524668a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://127.0.0.1:8000/api/v1/products/category/1/","description":"<p>This endpoint used to get all the products related to specific category.</p>\n<p>You must add category ID in the end of the url.</p>\n<p><strong>This endpoint is for everybody.</strong></p>\n","urlObject":{"path":["products","category","1",""],"host":["http://127.0.0.1:8000/api/v1"],"query":[],"variable":[]}},"response":[{"id":"3ee589a6-5130-4712-9142-534f7104cc6d","name":"category products by category ID","originalRequest":{"method":"GET","header":[],"url":"http://127.0.0.1:8000/api/v1/products/category/1/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 06 Feb 2024 14:49:02 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.11.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language, Cookie"},{"key":"Allow","value":"OPTIONS, GET"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"4609"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 22,\n        \"service_provider\": \"our_new_name\",\n        \"service_provider_location\": 6,\n        \"category_id\": 1,\n        \"category_title\": \"DOCTORS\",\n        \"quantity\": 70,\n        \"title\": \"childs milk\",\n        \"description\": \"any description\",\n        \"images\": [\n            \"http://127.0.0.1:8000/media/products/6b8a001d16d145be80d8281c689a264f.png\",\n            \"http://127.0.0.1:8000/media/products/aa0b8e26af344ac48158d3752ef3cce4.png\"\n        ],\n        \"price\": 1500.2,\n        \"discount_ammount\": 0,\n        \"is_active\": false,\n        \"rates\": {\n            \"0\": 0,\n            \"1\": 0,\n            \"2\": 0,\n            \"3\": 0,\n            \"4\": 0,\n            \"5\": 0,\n            \"avg_rate\": 0\n        }\n    },\n    {\n        \"id\": 24,\n        \"service_provider\": \"our_new_name\",\n        \"service_provider_location\": 6,\n        \"category_id\": 1,\n        \"category_title\": \"DOCTORS\",\n        \"quantity\": 66,\n        \"title\": \"childs milk\",\n        \"description\": \"any description\",\n        \"images\": [\n            \"http://127.0.0.1:8000/media/products/10b5083b557241eaa77dada69f1ef269.png\",\n            \"http://127.0.0.1:8000/media/products/03bce9bf30f34c718f82f6a9db7eef71.png\"\n        ],\n        \"price\": 1500.2,\n        \"discount_ammount\": 0,\n        \"is_active\": false,\n        \"rates\": {\n            \"0\": 0,\n            \"1\": 0,\n            \"2\": 0,\n            \"3\": 0,\n            \"4\": 1,\n            \"5\": 1,\n            \"avg_rate\": 4.5\n        }\n    },\n    {\n        \"id\": 25,\n        \"service_provider\": \"our_new_name\",\n        \"service_provider_location\": 6,\n        \"category_id\": 1,\n        \"category_title\": \"DOCTORS\",\n        \"quantity\": 61,\n        \"title\": \"Nan\",\n        \"description\": \"any description\",\n        \"images\": [\n            \"http://127.0.0.1:8000/media/products/a3394b3a27b8423fb59b0b417b02021c.png\",\n            \"http://127.0.0.1:8000/media/products/9240aef35f7d4bd4b40b152c3a3d5dfa.png\"\n        ],\n        \"price\": 1500.2,\n        \"discount_ammount\": 0,\n        \"is_active\": false,\n        \"rates\": {\n            \"0\": 0,\n            \"1\": 0,\n            \"2\": 0,\n            \"3\": 0,\n            \"4\": 1,\n            \"5\": 1,\n            \"avg_rate\": 4.5\n        }\n    },\n    {\n        \"id\": 26,\n        \"service_provider\": \"our_new_name\",\n        \"service_provider_location\": 5,\n        \"category_id\": 1,\n        \"category_title\": \"DOCTORS\",\n        \"quantity\": 64,\n        \"title\": \"bebelait\",\n        \"description\": \"any description\",\n        \"images\": [\n            \"http://127.0.0.1:8000/media/products/62798ed7c503442f9ca7fad538588f14.png\",\n            \"http://127.0.0.1:8000/media/products/ff18aa49b3974977bfbf2c7ab66b92f2.png\"\n        ],\n        \"price\": 1500.2,\n        \"discount_ammount\": 0,\n        \"is_active\": false,\n        \"rates\": {\n            \"0\": 0,\n            \"1\": 0,\n            \"2\": 0,\n            \"3\": 0,\n            \"4\": 2,\n            \"5\": 0,\n            \"avg_rate\": 4\n        }\n    },\n    {\n        \"id\": 27,\n        \"service_provider\": \"our_new_name\",\n        \"service_provider_location\": 5,\n        \"category_id\": 1,\n        \"category_title\": \"DOCTORS\",\n        \"quantity\": 66,\n        \"title\": \"gicouz\",\n        \"description\": \"any description\",\n        \"images\": [\n            \"http://127.0.0.1:8000/media/products/270489b341c64264981cb4bf16f6916d.png\",\n            \"http://127.0.0.1:8000/media/products/7d86cc0cbac94d8e855b945c70aa1553.png\"\n        ],\n        \"price\": 1500.2,\n        \"discount_ammount\": 0,\n        \"is_active\": false,\n        \"rates\": {\n            \"0\": 0,\n            \"1\": 0,\n            \"2\": 0,\n            \"3\": 0,\n            \"4\": 2,\n            \"5\": 0,\n            \"avg_rate\": 4\n        }\n    },\n    {\n        \"id\": 28,\n        \"service_provider\": \"Remostart\",\n        \"service_provider_location\": 4,\n        \"category_id\": 1,\n        \"category_title\": \"DOCTORS\",\n        \"quantity\": 62,\n        \"title\": \"unadol\",\n        \"description\": \"any description\",\n        \"images\": [\n            \"http://127.0.0.1:8000/media/products/0c57f80920b14cad96c4d474d187f554.png\",\n            \"http://127.0.0.1:8000/media/products/6970f45afcb247c28ecc1c86fe8137c1.png\"\n        ],\n        \"price\": 1500.2,\n        \"discount_ammount\": 0,\n        \"is_active\": false,\n        \"rates\": {\n            \"0\": 0,\n            \"1\": 0,\n            \"2\": 0,\n            \"3\": 0,\n            \"4\": 2,\n            \"5\": 0,\n            \"avg_rate\": 4\n        }\n    },\n    {\n        \"id\": 29,\n        \"service_provider\": \"Remostart\",\n        \"service_provider_location\": 4,\n        \"category_id\": 1,\n        \"category_title\": \"DOCTORS\",\n        \"quantity\": 31,\n        \"title\": \"unadol extra\",\n        \"description\": \"any description\",\n        \"images\": [\n            \"http://127.0.0.1:8000/media/products/9a5188cac2fa4d4782b45a1bf6d10d40.png\",\n            \"http://127.0.0.1:8000/media/products/1c417d9eeb4c42b3974b1f5ff3a6d618.png\"\n        ],\n        \"price\": 1500.2,\n        \"discount_ammount\": 0,\n        \"is_active\": false,\n        \"rates\": {\n            \"0\": 0,\n            \"1\": 0,\n            \"2\": 0,\n            \"3\": 1,\n            \"4\": 1,\n            \"5\": 0,\n            \"avg_rate\": 3.5\n        }\n    },\n    {\n        \"id\": 30,\n        \"service_provider\": \"Remostart\",\n        \"service_provider_location\": 3,\n        \"category_id\": 1,\n        \"category_title\": \"DOCTORS\",\n        \"quantity\": 56,\n        \"title\": \"unadol cold and flu\",\n        \"description\": \"any description\",\n        \"images\": [\n            \"http://127.0.0.1:8000/media/products/04605578cecf4cde96628d3eb9f43b4f.png\",\n            \"http://127.0.0.1:8000/media/products/da615a36e1d14e759428c03d8a99aae9.png\"\n        ],\n        \"price\": 1500.2,\n        \"discount_ammount\": 0,\n        \"is_active\": false,\n        \"rates\": {\n            \"0\": 0,\n            \"1\": 0,\n            \"2\": 1,\n            \"3\": 0,\n            \"4\": 0,\n            \"5\": 1,\n            \"avg_rate\": 3.5\n        }\n    },\n    {\n        \"id\": 34,\n        \"service_provider\": \"Remostart\",\n        \"service_provider_location\": 3,\n        \"category_id\": 1,\n        \"category_title\": \"DOCTORS\",\n        \"quantity\": 70,\n        \"title\": \"prodol strong\",\n        \"description\": \"any description\",\n        \"images\": [\n            \"http://127.0.0.1:8000/media/products/2bfee8a450884b1db4462a4a0849e9c8.png\",\n            \"http://127.0.0.1:8000/media/products/c24a0c1e54234a94bd97e4607cb59df8.png\"\n        ],\n        \"price\": 1500.2,\n        \"discount_ammount\": 0,\n        \"is_active\": false,\n        \"rates\": {\n            \"0\": 0,\n            \"1\": 1,\n            \"2\": 0,\n            \"3\": 0,\n            \"4\": 0,\n            \"5\": 0,\n            \"avg_rate\": 1\n        }\n    },\n    {\n        \"id\": 35,\n        \"service_provider\": \"Remostart\",\n        \"service_provider_location\": 3,\n        \"category_id\": 1,\n        \"category_title\": \"DOCTORS\",\n        \"quantity\": 3,\n        \"title\": \"check feet\",\n        \"description\": \"full checkup for feet\",\n        \"images\": [\n            \"http://127.0.0.1:8000/media/products/f70b4ac7d93c423a9e9e0b5d8f78d0ff.png\",\n            \"http://127.0.0.1:8000/media/products/e20fb710517e4a9f8eb05bdfbaec6ba7.png\"\n        ],\n        \"price\": 4536,\n        \"discount_ammount\": 0,\n        \"is_active\": true,\n        \"rates\": {\n            \"0\": 0,\n            \"1\": 0,\n            \"2\": 0,\n            \"3\": 0,\n            \"4\": 0,\n            \"5\": 0,\n            \"avg_rate\": 0\n        }\n    }\n]"}],"_postman_id":"1dc828ac-4dd7-40d4-b1c9-7fe66524668a"},{"name":"search in specific service provider products","id":"f9f8a4a9-6ac4-4b13-af94-abe3d537d4b1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://127.0.0.1:8000/api/v1/products/provider/search/31/?pagination_number=9&min_price=1000&max_price=2000&rates=[0, 1, 2, 3, 4, 5]&categories=[1, 2, 3, 4, 5]","description":"<p>This endpoint used to retrieve products for a specific service provider via multiple filtering factors (see examples)</p>\n<p><strong>This endpoint is for everybody.</strong></p>\n","urlObject":{"path":["products","provider","search","31",""],"host":["http://127.0.0.1:8000/api/v1"],"query":[{"key":"pagination_number","value":"9"},{"key":"min_price","value":"1000"},{"key":"max_price","value":"2000"},{"key":"rates","value":"[0, 1, 2, 3, 4, 5]"},{"key":"categories","value":"[1, 2, 3, 4, 5]"},{"disabled":true,"key":"longitude","value":null},{"disabled":true,"key":"latitude","value":null}],"variable":[]}},"response":[{"id":"acc20612-1074-42bc-a71c-14daa4649c32","name":"example","originalRequest":{"method":"GET","header":[],"url":"http://127.0.0.1:8000/api/v1/products/provider/search/31/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 06 Feb 2024 15:54:08 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.11.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language, Cookie"},{"key":"Allow","value":"OPTIONS, GET"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"2300"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 22,\n        \"service_provider\": \"our_new_name\",\n        \"service_provider_location\": 6,\n        \"category_id\": 1,\n        \"category_title\": \"DOCTORS\",\n        \"quantity\": 70,\n        \"title\": \"childs milk\",\n        \"description\": \"any description\",\n        \"images\": [\n            \"http://127.0.0.1:8000/media/products/6b8a001d16d145be80d8281c689a264f.png\",\n            \"http://127.0.0.1:8000/media/products/aa0b8e26af344ac48158d3752ef3cce4.png\"\n        ],\n        \"price\": 1500.2,\n        \"discount_ammount\": 0,\n        \"is_active\": false,\n        \"rates\": {\n            \"0\": 0,\n            \"1\": 0,\n            \"2\": 0,\n            \"3\": 0,\n            \"4\": 0,\n            \"5\": 0,\n            \"avg_rate\": 0\n        }\n    },\n    {\n        \"id\": 24,\n        \"service_provider\": \"our_new_name\",\n        \"service_provider_location\": 6,\n        \"category_id\": 1,\n        \"category_title\": \"DOCTORS\",\n        \"quantity\": 66,\n        \"title\": \"childs milk\",\n        \"description\": \"any description\",\n        \"images\": [\n            \"http://127.0.0.1:8000/media/products/10b5083b557241eaa77dada69f1ef269.png\",\n            \"http://127.0.0.1:8000/media/products/03bce9bf30f34c718f82f6a9db7eef71.png\"\n        ],\n        \"price\": 1500.2,\n        \"discount_ammount\": 0,\n        \"is_active\": false,\n        \"rates\": {\n            \"0\": 0,\n            \"1\": 0,\n            \"2\": 0,\n            \"3\": 0,\n            \"4\": 1,\n            \"5\": 1,\n            \"avg_rate\": 4.5\n        }\n    },\n    {\n        \"id\": 25,\n        \"service_provider\": \"our_new_name\",\n        \"service_provider_location\": 6,\n        \"category_id\": 1,\n        \"category_title\": \"DOCTORS\",\n        \"quantity\": 61,\n        \"title\": \"Nan\",\n        \"description\": \"any description\",\n        \"images\": [\n            \"http://127.0.0.1:8000/media/products/a3394b3a27b8423fb59b0b417b02021c.png\",\n            \"http://127.0.0.1:8000/media/products/9240aef35f7d4bd4b40b152c3a3d5dfa.png\"\n        ],\n        \"price\": 1500.2,\n        \"discount_ammount\": 0,\n        \"is_active\": false,\n        \"rates\": {\n            \"0\": 0,\n            \"1\": 0,\n            \"2\": 0,\n            \"3\": 0,\n            \"4\": 1,\n            \"5\": 1,\n            \"avg_rate\": 4.5\n        }\n    },\n    {\n        \"id\": 26,\n        \"service_provider\": \"our_new_name\",\n        \"service_provider_location\": 5,\n        \"category_id\": 1,\n        \"category_title\": \"DOCTORS\",\n        \"quantity\": 64,\n        \"title\": \"bebelait\",\n        \"description\": \"any description\",\n        \"images\": [\n            \"http://127.0.0.1:8000/media/products/62798ed7c503442f9ca7fad538588f14.png\",\n            \"http://127.0.0.1:8000/media/products/ff18aa49b3974977bfbf2c7ab66b92f2.png\"\n        ],\n        \"price\": 1500.2,\n        \"discount_ammount\": 0,\n        \"is_active\": false,\n        \"rates\": {\n            \"0\": 0,\n            \"1\": 0,\n            \"2\": 0,\n            \"3\": 0,\n            \"4\": 2,\n            \"5\": 0,\n            \"avg_rate\": 4\n        }\n    },\n    {\n        \"id\": 27,\n        \"service_provider\": \"our_new_name\",\n        \"service_provider_location\": 5,\n        \"category_id\": 1,\n        \"category_title\": \"DOCTORS\",\n        \"quantity\": 66,\n        \"title\": \"gicouz\",\n        \"description\": \"any description\",\n        \"images\": [\n            \"http://127.0.0.1:8000/media/products/270489b341c64264981cb4bf16f6916d.png\",\n            \"http://127.0.0.1:8000/media/products/7d86cc0cbac94d8e855b945c70aa1553.png\"\n        ],\n        \"price\": 1500.2,\n        \"discount_ammount\": 0,\n        \"is_active\": false,\n        \"rates\": {\n            \"0\": 0,\n            \"1\": 0,\n            \"2\": 0,\n            \"3\": 0,\n            \"4\": 2,\n            \"5\": 0,\n            \"avg_rate\": 4\n        }\n    }\n]"},{"id":"094d55c4-7dd9-4fa0-9bb0-7a7a16e90438","name":"another one","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://127.0.0.1:8000/api/v1/products/provider/search/31/?pagination_number=9&min_price=1000&max_price=2000&rates=[0, 1, 2, 3, 4, 5]&categories=[1, 2, 3, 4, 5]","host":["http://127.0.0.1:8000/api/v1"],"path":["products","provider","search","31",""],"query":[{"key":"pagination_number","value":"9"},{"key":"min_price","value":"1000"},{"key":"max_price","value":"2000"},{"key":"rates","value":"[0, 1, 2, 3, 4, 5]"},{"key":"categories","value":"[1, 2, 3, 4, 5]"},{"key":"longitude","value":null,"type":"text","disabled":true},{"key":"latitude","value":null,"type":"text","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 06 Feb 2024 15:57:59 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.11.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language, Cookie"},{"key":"Allow","value":"OPTIONS, GET"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"1837"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 24,\n        \"service_provider\": \"our_new_name\",\n        \"service_provider_location\": 6,\n        \"category_id\": 1,\n        \"category_title\": \"DOCTORS\",\n        \"quantity\": 66,\n        \"title\": \"childs milk\",\n        \"description\": \"any description\",\n        \"images\": [\n            \"http://127.0.0.1:8000/media/products/10b5083b557241eaa77dada69f1ef269.png\",\n            \"http://127.0.0.1:8000/media/products/03bce9bf30f34c718f82f6a9db7eef71.png\"\n        ],\n        \"price\": 1500.2,\n        \"discount_ammount\": 0,\n        \"is_active\": false,\n        \"rates\": {\n            \"0\": 0,\n            \"1\": 0,\n            \"2\": 0,\n            \"3\": 0,\n            \"4\": 1,\n            \"5\": 1,\n            \"avg_rate\": 4.5\n        }\n    },\n    {\n        \"id\": 25,\n        \"service_provider\": \"our_new_name\",\n        \"service_provider_location\": 6,\n        \"category_id\": 1,\n        \"category_title\": \"DOCTORS\",\n        \"quantity\": 61,\n        \"title\": \"Nan\",\n        \"description\": \"any description\",\n        \"images\": [\n            \"http://127.0.0.1:8000/media/products/a3394b3a27b8423fb59b0b417b02021c.png\",\n            \"http://127.0.0.1:8000/media/products/9240aef35f7d4bd4b40b152c3a3d5dfa.png\"\n        ],\n        \"price\": 1500.2,\n        \"discount_ammount\": 0,\n        \"is_active\": false,\n        \"rates\": {\n            \"0\": 0,\n            \"1\": 0,\n            \"2\": 0,\n            \"3\": 0,\n            \"4\": 1,\n            \"5\": 1,\n            \"avg_rate\": 4.5\n        }\n    },\n    {\n        \"id\": 26,\n        \"service_provider\": \"our_new_name\",\n        \"service_provider_location\": 5,\n        \"category_id\": 1,\n        \"category_title\": \"DOCTORS\",\n        \"quantity\": 64,\n        \"title\": \"bebelait\",\n        \"description\": \"any description\",\n        \"images\": [\n            \"http://127.0.0.1:8000/media/products/62798ed7c503442f9ca7fad538588f14.png\",\n            \"http://127.0.0.1:8000/media/products/ff18aa49b3974977bfbf2c7ab66b92f2.png\"\n        ],\n        \"price\": 1500.2,\n        \"discount_ammount\": 0,\n        \"is_active\": false,\n        \"rates\": {\n            \"0\": 0,\n            \"1\": 0,\n            \"2\": 0,\n            \"3\": 0,\n            \"4\": 2,\n            \"5\": 0,\n            \"avg_rate\": 4\n        }\n    },\n    {\n        \"id\": 27,\n        \"service_provider\": \"our_new_name\",\n        \"service_provider_location\": 5,\n        \"category_id\": 1,\n        \"category_title\": \"DOCTORS\",\n        \"quantity\": 66,\n        \"title\": \"gicouz\",\n        \"description\": \"any description\",\n        \"images\": [\n            \"http://127.0.0.1:8000/media/products/270489b341c64264981cb4bf16f6916d.png\",\n            \"http://127.0.0.1:8000/media/products/7d86cc0cbac94d8e855b945c70aa1553.png\"\n        ],\n        \"price\": 1500.2,\n        \"discount_ammount\": 0,\n        \"is_active\": false,\n        \"rates\": {\n            \"0\": 0,\n            \"1\": 0,\n            \"2\": 0,\n            \"3\": 0,\n            \"4\": 2,\n            \"5\": 0,\n            \"avg_rate\": 4\n        }\n    }\n]"}],"_postman_id":"f9f8a4a9-6ac4-4b13-af94-abe3d537d4b1"},{"name":"specific service provider products","id":"a2ea19ad-3e41-4e23-9030-58db2fa8ecd1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://127.0.0.1:8000/api/v1/products/service_provider/31/","description":"<p>This endpoint used to retrieve all products for a specific service provider via ID.<br /><strong>This endpoint is for everybody.</strong></p>\n","urlObject":{"path":["products","service_provider","31",""],"host":["http://127.0.0.1:8000/api/v1"],"query":[],"variable":[]}},"response":[{"id":"6639c75b-5c84-4dcd-9d02-16a3fa323f6c","name":"products service provider read","originalRequest":{"method":"GET","header":[],"url":"http://127.0.0.1:8000/api/v1/products/service_provider/31/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 06 Feb 2024 16:01:05 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.11.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language, Cookie"},{"key":"Allow","value":"OPTIONS, GET"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"2300"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 22,\n        \"service_provider\": \"our_new_name\",\n        \"service_provider_location\": 6,\n        \"category_id\": 1,\n        \"category_title\": \"DOCTORS\",\n        \"quantity\": 70,\n        \"title\": \"childs milk\",\n        \"description\": \"any description\",\n        \"images\": [\n            \"http://127.0.0.1:8000/media/products/6b8a001d16d145be80d8281c689a264f.png\",\n            \"http://127.0.0.1:8000/media/products/aa0b8e26af344ac48158d3752ef3cce4.png\"\n        ],\n        \"price\": 1500.2,\n        \"discount_ammount\": 0,\n        \"is_active\": false,\n        \"rates\": {\n            \"0\": 0,\n            \"1\": 0,\n            \"2\": 0,\n            \"3\": 0,\n            \"4\": 0,\n            \"5\": 0,\n            \"avg_rate\": 0\n        }\n    },\n    {\n        \"id\": 24,\n        \"service_provider\": \"our_new_name\",\n        \"service_provider_location\": 6,\n        \"category_id\": 1,\n        \"category_title\": \"DOCTORS\",\n        \"quantity\": 66,\n        \"title\": \"childs milk\",\n        \"description\": \"any description\",\n        \"images\": [\n            \"http://127.0.0.1:8000/media/products/10b5083b557241eaa77dada69f1ef269.png\",\n            \"http://127.0.0.1:8000/media/products/03bce9bf30f34c718f82f6a9db7eef71.png\"\n        ],\n        \"price\": 1500.2,\n        \"discount_ammount\": 0,\n        \"is_active\": false,\n        \"rates\": {\n            \"0\": 0,\n            \"1\": 0,\n            \"2\": 0,\n            \"3\": 0,\n            \"4\": 1,\n            \"5\": 1,\n            \"avg_rate\": 4.5\n        }\n    },\n    {\n        \"id\": 25,\n        \"service_provider\": \"our_new_name\",\n        \"service_provider_location\": 6,\n        \"category_id\": 1,\n        \"category_title\": \"DOCTORS\",\n        \"quantity\": 61,\n        \"title\": \"Nan\",\n        \"description\": \"any description\",\n        \"images\": [\n            \"http://127.0.0.1:8000/media/products/a3394b3a27b8423fb59b0b417b02021c.png\",\n            \"http://127.0.0.1:8000/media/products/9240aef35f7d4bd4b40b152c3a3d5dfa.png\"\n        ],\n        \"price\": 1500.2,\n        \"discount_ammount\": 0,\n        \"is_active\": false,\n        \"rates\": {\n            \"0\": 0,\n            \"1\": 0,\n            \"2\": 0,\n            \"3\": 0,\n            \"4\": 1,\n            \"5\": 1,\n            \"avg_rate\": 4.5\n        }\n    },\n    {\n        \"id\": 26,\n        \"service_provider\": \"our_new_name\",\n        \"service_provider_location\": 5,\n        \"category_id\": 1,\n        \"category_title\": \"DOCTORS\",\n        \"quantity\": 64,\n        \"title\": \"bebelait\",\n        \"description\": \"any description\",\n        \"images\": [\n            \"http://127.0.0.1:8000/media/products/62798ed7c503442f9ca7fad538588f14.png\",\n            \"http://127.0.0.1:8000/media/products/ff18aa49b3974977bfbf2c7ab66b92f2.png\"\n        ],\n        \"price\": 1500.2,\n        \"discount_ammount\": 0,\n        \"is_active\": false,\n        \"rates\": {\n            \"0\": 0,\n            \"1\": 0,\n            \"2\": 0,\n            \"3\": 0,\n            \"4\": 2,\n            \"5\": 0,\n            \"avg_rate\": 4\n        }\n    },\n    {\n        \"id\": 27,\n        \"service_provider\": \"our_new_name\",\n        \"service_provider_location\": 5,\n        \"category_id\": 1,\n        \"category_title\": \"DOCTORS\",\n        \"quantity\": 66,\n        \"title\": \"gicouz\",\n        \"description\": \"any description\",\n        \"images\": [\n            \"http://127.0.0.1:8000/media/products/270489b341c64264981cb4bf16f6916d.png\",\n            \"http://127.0.0.1:8000/media/products/7d86cc0cbac94d8e855b945c70aa1553.png\"\n        ],\n        \"price\": 1500.2,\n        \"discount_ammount\": 0,\n        \"is_active\": false,\n        \"rates\": {\n            \"0\": 0,\n            \"1\": 0,\n            \"2\": 0,\n            \"3\": 0,\n            \"4\": 2,\n            \"5\": 0,\n            \"avg_rate\": 4\n        }\n    }\n]"}],"_postman_id":"a2ea19ad-3e41-4e23-9030-58db2fa8ecd1"},{"name":"products within distance","id":"eca02357-93da-4550-8933-861a99fc9bc1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept-Language","value":"en","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/products/distance/?latitude=116.234234&longitude=35.345345&name=baby","description":"<p>This endpoint list all products relates to specific search term sorted from nearest to furtherest.</p>\n<p><strong>This endpoint is for everybody.</strong></p>\n","urlObject":{"path":["products","distance",""],"host":["http://127.0.0.1:8000/api/v1"],"query":[{"key":"latitude","value":"116.234234"},{"key":"longitude","value":"35.345345"},{"key":"name","value":"baby"}],"variable":[]}},"response":[{"id":"581f042b-fb7d-4878-966b-da9a68c0d9ab","name":"products within distance (error)","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzAxODgzNjAzLCJpYXQiOjE3MDE4ODI0MDMsImp0aSI6IjFhMDcyM2RhZWYwNDRmZTY4ODBlNWUyNzhjYTljZjRiIiwidXNlcl9pZCI6Mn0.-FjHyKLFltqjtGwtc9AGJ1WL2g7gxn164ZqKCUKrN_o","type":"text","disabled":true}],"url":{"raw":"http://127.0.0.1:8000/api/v1/products/distance/?latitude=116.234234&longitude=35.345345","host":["http://127.0.0.1:8000/api/v1"],"path":["products","distance",""],"query":[{"key":"latitude","value":"116.234234"},{"key":"longitude","value":"35.345345"},{"key":"name","value":"35.345345","disabled":true}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 06 Feb 2024 17:56:31 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.11.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language, Cookie"},{"key":"Allow","value":"OPTIONS, GET"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"79"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"Latitude, longitude and name (product name) parameters are required\"\n}"},{"id":"718df73b-3d86-412f-96a3-5116ed719e2e","name":"products within distance (not valid search term)","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzAxODgzNjAzLCJpYXQiOjE3MDE4ODI0MDMsImp0aSI6IjFhMDcyM2RhZWYwNDRmZTY4ODBlNWUyNzhjYTljZjRiIiwidXNlcl9pZCI6Mn0.-FjHyKLFltqjtGwtc9AGJ1WL2g7gxn164ZqKCUKrN_o","type":"text","disabled":true}],"url":{"raw":"http://127.0.0.1:8000/api/v1/products/distance/?latitude=116.234234&longitude=35.345345&name=child","host":["http://127.0.0.1:8000/api/v1"],"path":["products","distance",""],"query":[{"key":"latitude","value":"116.234234"},{"key":"longitude","value":"35.345345"},{"key":"name","value":"child"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 06 Feb 2024 17:58:18 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.11.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language, Cookie"},{"key":"Allow","value":"GET, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"46"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"No service provider in this area\"\n}"}],"_postman_id":"eca02357-93da-4550-8933-861a99fc9bc1"}],"id":"e2c3d160-634f-42c3-a245-50761cf055bd","_postman_id":"e2c3d160-634f-42c3-a245-50761cf055bd","description":""},{"name":"product activation switcher","id":"5214f379-8edb-4f8f-a175-af5664b7e8e5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MjM1NjY0LCJpYXQiOjE3MDcyMzQ0NjQsImp0aSI6ImNjNDExMzE3MTAyNjRlNmRiYzI4ZDJhMTBiZGU2MmQ2IiwidXNlcl9pZCI6MjN9.v6HUCQtLqauBVKrXijSU3EgMoTjGaWIml-tw45I0OEU","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"is_active\": false\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/api/v1/products/30/activation_switcher/","description":"<p>This endpoint is used to change the activate status for specific product.</p>\n<p><strong>This endpoint is for admins only.</strong></p>\n","urlObject":{"path":["products","30","activation_switcher",""],"host":["http://127.0.0.1:8000/api/v1"],"query":[],"variable":[]}},"response":[{"id":"60a1411a-87b6-4a45-a267-55abade81f58","name":"product activation switcher (error)","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MjM1NjY0LCJpYXQiOjE3MDcyMzQ0NjQsImp0aSI6ImNjNDExMzE3MTAyNjRlNmRiYzI4ZDJhMTBiZGU2MmQ2IiwidXNlcl9pZCI6MjN9.v6HUCQtLqauBVKrXijSU3EgMoTjGaWIml-tw45I0OEU","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/products/30/activation_switcher/"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 06 Feb 2024 15:48:00 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.11.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language"},{"key":"Allow","value":"OPTIONS, POST"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"81"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"Error\": \"We need status attr to detect activation action to the product object\"\n}"},{"id":"b1a7b88c-15c5-4a74-8e97-78c961da0a14","name":"product activation switcher","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MjM1NjY0LCJpYXQiOjE3MDcyMzQ0NjQsImp0aSI6ImNjNDExMzE3MTAyNjRlNmRiYzI4ZDJhMTBiZGU2MmQ2IiwidXNlcl9pZCI6MjN9.v6HUCQtLqauBVKrXijSU3EgMoTjGaWIml-tw45I0OEU","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"is_active\": false\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/api/v1/products/30/activation_switcher/"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 06 Feb 2024 15:50:05 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.11.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language"},{"key":"Allow","value":"OPTIONS, POST"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"72"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"Message\": \"Activation status changed to False for product with id: 30\"\n}"}],"_postman_id":"5214f379-8edb-4f8f-a175-af5664b7e8e5"}],"id":"189a3056-0e2f-44e2-a48a-52fa1195fdd4","_postman_id":"189a3056-0e2f-44e2-a48a-52fa1195fdd4","description":""},{"name":"services","item":[{"name":"search in services","item":[{"name":"by category","item":[{"name":"get services by category id","id":"84e69db6-86e2-4a80-be7f-5030203bcdc7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept-Language","value":"","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/services/category/by_id/2/","description":"<p>This endpoint retrieves services relates to a specific category by its ID. The response will include details such as the category ID, provider location ID, provider name, category name, title, description, images, price, discount amount, activity status, creation date, update date, and average rates with distribution across different star ratings.</p>\n<p><strong>This endpoint is for everybody.</strong></p>\n<p>The response will be in JSON format with a status code of 200.</p>\n<p>Example response:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">[\n    {\n        \"id\": 0,\n        \"provider_location_id\": 0,\n        \"provider_name\": \"\",\n        \"category_name\": \"\",\n        \"title\": \"\",\n        \"description\": \"\",\n        \"images\": [\"\"],\n        \"price\": 0,\n        \"created_at\": \"\",\n        \"updated_at\": \"\",\n        \"rates\": {\n            \"avg_rate\": 0,\n            \"5 stars\": 0,\n            \"4 stars\": 0,\n            \"3 stars\": 0,\n            \"2 stars\": 0,\n            \"1 stars\": 0,\n            \"0 stars\": 0\n        }\n    }\n]\n\n</code></pre>\n","urlObject":{"path":["services","category","by_id","2",""],"host":["http://127.0.0.1:8000/api/v1"],"query":[],"variable":[]}},"response":[{"id":"b1ecd40e-e38b-4d09-ba6b-04dea92e2371","name":"services category read","originalRequest":{"method":"GET","header":[{"key":"Accept-Language","value":"","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/services/category/2/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 15 Dec 2023 20:41:35 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.9.10"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language, Cookie"},{"key":"Allow","value":"OPTIONS, GET"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"1139"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"same-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 3,\n        \"provider_location_id\": 2,\n        \"provider_name\": \"newprovider\",\n        \"category_name\": \"OPTICS\",\n        \"title\": \"Eye glasses\",\n        \"description\": \"Eye glasses description\",\n        \"images\": [\n            \"https://imgs.search.brave.com/2tHckcLHGys54UZ1Bi6KXPi94n0fSURL-hXyuORg44M/rs:fit:632:225:1/g:ce/aHR0cHM6Ly90c2Ux/Lm1tLmJpbmcubmV0/L3RoP2lkPU9JUC5x/MU5VamdUTTJnYjUx/Z2YyazBwR09BSGFG/aiZwaWQ9QXBp\"\n        ],\n        \"price\": 6,\n        \"created_at\": \"2023-12-11T15:43:40.921345Z\",\n        \"updated_at\": \"2023-12-11T15:43:40.921345Z\",\n        \"rates\": {\n            \"avg_rate\": {\n                \"rate__avg\": null\n            },\n            \"5 stars\": 0,\n            \"4 stars\": 0,\n            \"3 stars\": 0,\n            \"2 stars\": 0,\n            \"1 stars\": 0,\n            \"0 stars\": 0\n        }\n    },\n    {\n        \"id\": 4,\n        \"provider_location_id\": 3,\n        \"provider_name\": \"secondprovider\",\n        \"category_name\": \"OPTICS\",\n        \"title\": \"Eye glasses2\",\n        \"description\": \"Eye glasses2 description\",\n        \"images\": [\n            \"https://imgs.search.brave.com/2tHckcLHGys54UZ1Bi6KXPi94n0fSURL-hXyuORg44M/rs:fit:632:225:1/g:ce/aHR0cHM6Ly90c2Ux/Lm1tLmJpbmcubmV0/L3RoP2lkPU9JUC5x/MU5VamdUTTJnYjUx/Z2YyazBwR09BSGFG/aiZwaWQ9QXBp\"\n        ],\n        \"price\": 10,\n        \"created_at\": \"2023-12-11T15:49:55.841209Z\",\n        \"updated_at\": \"2023-12-11T15:49:55.841209Z\",\n        \"rates\": {\n            \"avg_rate\": {\n                \"rate__avg\": null\n            },\n            \"5 stars\": 0,\n            \"4 stars\": 0,\n            \"3 stars\": 0,\n            \"2 stars\": 0,\n            \"1 stars\": 0,\n            \"0 stars\": 0\n        }\n    }\n]"}],"_postman_id":"84e69db6-86e2-4a80-be7f-5030203bcdc7"},{"name":"get services by category name","id":"b2823742-9572-4d38-b47c-285d230104da","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept-Language","value":"","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/services/category/optics/","description":"<h1 id=\"get-optics-services\">Get Optics Services</h1>\n<p>This endpoint retrieves a list of services within the specified category name.</p>\n<p><strong>This endpoint is for everybody.</strong></p>\n<h2 id=\"response\">Response</h2>\n<p>Upon a successful request, the server will respond with a status code of 200 and a JSON array containing objects representing optics services. Each object includes the following properties:</p>\n<ul>\n<li><code>id</code> (number): The unique identifier of the service.</li>\n<li><code>provider_location_id</code> (number): The location identifier of the service provider.</li>\n<li><code>provider_name</code> (string): The name of the service provider.</li>\n<li><code>category_id</code> (number): The identifier of the category to which the service belongs.</li>\n<li><code>category_name</code> (string): The name of the category.</li>\n<li><code>title</code> (string): The title of the service.</li>\n<li><code>description</code> (string): A brief description of the service.</li>\n<li><code>images</code> (array): An array of image URLs associated with the service.</li>\n<li><code>price</code> (number): The price of the service.</li>\n<li><code>discount_ammount</code> (number): The discount amount, if applicable.</li>\n<li><code>is_active</code> (boolean): Indicates whether the service is currently active.</li>\n<li><code>created_at</code> (string): The timestamp of when the service was created.</li>\n<li><code>updated_at</code> (string): The timestamp of when the service was last updated.</li>\n<li><code>rates</code> (object): An object containing the average rate and distribution of ratings for the service.<ul>\n<li><code>avg_rate</code> (number): The average rating of the service.</li>\n<li><code>5 stars</code> (number): The count of 5-star ratings.</li>\n<li><code>4 stars</code> (number): The count of 4-star ratings.</li>\n<li><code>3 stars</code> (number): The count of 3-star ratings.</li>\n<li><code>2 stars</code> (number): The count of 2-star ratings.</li>\n<li><code>1 stars</code> (number): The count of 1-star ratings.</li>\n<li><code>0 stars</code> (number): The count of 0-star ratings.</li>\n</ul>\n</li>\n</ul>\n<p>Example Response:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">[\n    {\n        \"id\": 0,\n        \"provider_location_id\": 0,\n        \"provider_name\": \"\",\n        \"category_id\": 0,\n        \"category_name\": \"\",\n        \"title\": \"\",\n        \"description\": \"\",\n        \"images\": [\"\"],\n        \"price\": 0,\n        \"discount_ammount\": 0,\n        \"is_active\": true,\n        \"created_at\": \"\",\n        \"updated_at\": \"\",\n        \"rates\": {\n            \"avg_rate\": 0,\n            \"5 stars\": 0,\n            \"4 stars\": 0,\n            \"3 stars\": 0,\n            \"2 stars\": 0,\n            \"1 stars\": 0,\n            \"0 stars\": 0\n        }\n    }\n]\n\n</code></pre>\n","urlObject":{"path":["services","category","optics",""],"host":["http://127.0.0.1:8000/api/v1"],"query":[],"variable":[]}},"response":[{"id":"c5437106-63ae-445f-9b72-1a96bfb6f126","name":"services category read Copy","originalRequest":{"method":"GET","header":[{"key":"Accept-Language","value":"","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/services/optics"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 15 Dec 2023 21:01:19 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.9.10"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language, Cookie"},{"key":"Allow","value":"OPTIONS, GET"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"1134"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"same-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 3,\n        \"provider_location_id\": 2,\n        \"provider_name\": \"newprovider\",\n        \"category_name\": \"OPTICS\",\n        \"title\": \"Eye glasses\",\n        \"description\": \"new en_description\",\n        \"images\": [\n            \"https://imgs.search.brave.com/2tHckcLHGys54UZ1Bi6KXPi94n0fSURL-hXyuORg44M/rs:fit:632:225:1/g:ce/aHR0cHM6Ly90c2Ux/Lm1tLmJpbmcubmV0/L3RoP2lkPU9JUC5x/MU5VamdUTTJnYjUx/Z2YyazBwR09BSGFG/aiZwaWQ9QXBp\"\n        ],\n        \"price\": 6,\n        \"created_at\": \"2023-12-15T20:52:47.422832Z\",\n        \"updated_at\": \"2023-12-11T15:43:40.921345Z\",\n        \"rates\": {\n            \"avg_rate\": {\n                \"rate__avg\": null\n            },\n            \"5 stars\": 0,\n            \"4 stars\": 0,\n            \"3 stars\": 0,\n            \"2 stars\": 0,\n            \"1 stars\": 0,\n            \"0 stars\": 0\n        }\n    },\n    {\n        \"id\": 4,\n        \"provider_location_id\": 3,\n        \"provider_name\": \"secondprovider\",\n        \"category_name\": \"OPTICS\",\n        \"title\": \"Eye glasses2\",\n        \"description\": \"Eye glasses2 description\",\n        \"images\": [\n            \"https://imgs.search.brave.com/2tHckcLHGys54UZ1Bi6KXPi94n0fSURL-hXyuORg44M/rs:fit:632:225:1/g:ce/aHR0cHM6Ly90c2Ux/Lm1tLmJpbmcubmV0/L3RoP2lkPU9JUC5x/MU5VamdUTTJnYjUx/Z2YyazBwR09BSGFG/aiZwaWQ9QXBp\"\n        ],\n        \"price\": 10,\n        \"created_at\": \"2023-12-11T15:49:55.841209Z\",\n        \"updated_at\": \"2023-12-11T15:49:55.841209Z\",\n        \"rates\": {\n            \"avg_rate\": {\n                \"rate__avg\": null\n            },\n            \"5 stars\": 0,\n            \"4 stars\": 0,\n            \"3 stars\": 0,\n            \"2 stars\": 0,\n            \"1 stars\": 0,\n            \"0 stars\": 0\n        }\n    }\n]"}],"_postman_id":"b2823742-9572-4d38-b47c-285d230104da"}],"id":"dd765350-ec0a-447c-818e-a22652dd5d13","_postman_id":"dd765350-ec0a-447c-818e-a22652dd5d13","description":""},{"name":"by location","item":[{"name":"provider location services","id":"3396a579-2c55-48ec-949e-17ca2ca6ebd9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://127.0.0.1:8000/api/v1/services/provider/location/5/","description":"<p>This HTTP GET request retrieves information about a specific provider location with the specified ID. The response is in JSON format and includes details such as the provider's name, category, title, description, images, price, discounts, and rates. The rates are further broken down into average rate and individual star ratings.</p>\n<p><strong>This endpoint is for everybody.</strong></p>\n<p>The response will include a status code of 200 upon successful execution. Below is an example of the response:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">[\n    {\n        \"id\": 0,\n        \"provider_location_id\": 0,\n        \"provider_name\": \"\",\n        \"category_name\": \"\",\n        \"title\": \"\",\n        \"description\": \"\",\n        \"images\": [\"\"],\n        \"price\": 0,\n        \"created_at\": \"\",\n        \"updated_at\": \"\",\n        \"rates\": {\n            \"avg_rate\": 0,\n            \"5 stars\": 0,\n            \"4 stars\": 0,\n            \"3 stars\": 0,\n            \"2 stars\": 0,\n            \"1 stars\": 0,\n            \"0 stars\": 0\n        }\n    }\n]\n\n</code></pre>\n","urlObject":{"path":["services","provider","location","5",""],"host":["http://127.0.0.1:8000/api/v1"],"query":[],"variable":[]}},"response":[{"id":"c44a03c9-19d7-46cd-bc74-f938dc72c29e","name":"services location read","originalRequest":{"method":"GET","header":[],"url":"http://127.0.0.1:8000/api/v1/services/location/2"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 15 Dec 2023 20:45:02 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.9.10"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language, Cookie"},{"key":"Allow","value":"OPTIONS, GET"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"1113"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"same-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 3,\n        \"provider_location_id\": 2,\n        \"provider_name\": \"newprovider\",\n        \"category_name\": \"OPTICS\",\n        \"title\": \"Eye glasses\",\n        \"description\": \"Eye glasses description\",\n        \"images\": [\n            \"https://imgs.search.brave.com/2tHckcLHGys54UZ1Bi6KXPi94n0fSURL-hXyuORg44M/rs:fit:632:225:1/g:ce/aHR0cHM6Ly90c2Ux/Lm1tLmJpbmcubmV0/L3RoP2lkPU9JUC5x/MU5VamdUTTJnYjUx/Z2YyazBwR09BSGFG/aiZwaWQ9QXBp\"\n        ],\n        \"price\": 6,\n        \"created_at\": \"2023-12-11T15:43:40.921345Z\",\n        \"updated_at\": \"2023-12-11T15:43:40.921345Z\",\n        \"rates\": {\n            \"avg_rate\": {\n                \"rate__avg\": null\n            },\n            \"5 stars\": 0,\n            \"4 stars\": 0,\n            \"3 stars\": 0,\n            \"2 stars\": 0,\n            \"1 stars\": 0,\n            \"0 stars\": 0\n        }\n    },\n    {\n        \"id\": 5,\n        \"provider_location_id\": 2,\n        \"provider_name\": \"newprovider\",\n        \"category_name\": \"DOCTOR\",\n        \"title\": \"eye\",\n        \"description\": \"description\",\n        \"images\": [\n            \"https://imgs.search.brave.com/2tHckcLHGys54UZ1Bi6KXPi94n0fSURL-hXyuORg44M/rs:fit:632:225:1/g:ce/aHR0cHM6Ly90c2Ux/Lm1tLmJpbmcubmV0/L3RoP2lkPU9JUC5x/MU5VamdUTTJnYjUx/Z2YyazBwR09BSGFG/aiZwaWQ9QXBp\"\n        ],\n        \"price\": 4,\n        \"created_at\": \"2023-12-11T17:31:09.952608Z\",\n        \"updated_at\": \"2023-12-11T17:13:42.175393Z\",\n        \"rates\": {\n            \"avg_rate\": {\n                \"rate__avg\": null\n            },\n            \"5 stars\": 0,\n            \"4 stars\": 0,\n            \"3 stars\": 0,\n            \"2 stars\": 0,\n            \"1 stars\": 0,\n            \"0 stars\": 0\n        }\n    }\n]"}],"_postman_id":"3396a579-2c55-48ec-949e-17ca2ca6ebd9"}],"id":"46ddd039-8b03-4d74-8f50-70c5ddf8674e","_postman_id":"46ddd039-8b03-4d74-8f50-70c5ddf8674e","description":""},{"name":"by service name","item":[{"name":"search in services by service title","id":"9d8af9ce-e2d2-4291-910f-bb1bc08022cb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://127.0.0.1:8000/api/v1/services/by_name/check/","description":"<p>This endpoint makes an HTTP GET request to retrieve services by it's name (title).</p>\n<p><strong>This endpoint is for everybody.</strong></p>\n<p>The response will be in JSON format and will include an array of service objects with details such as ID, provider location ID, provider name, category ID, category name, title, description, images, price, discount amount, activity status, creation and update timestamps, and average rates along with individual star ratings.</p>\n<p>The response will have a status code of 200 upon successful execution. Here is an example of the response:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">[{\"id\":0,\"provider_location_id\":0,\"provider_name\":\"\",\"category_name\":\"\",\"title\":\"\",\"description\":\"\",\"images\":[\"\"],\"price\":0,\"created_at\":\"\",\"updated_at\":\"\",\"rates\":{\"avg_rate\":{\"rate__avg\":null},\"5 stars\":0,\"4 stars\":0,\"3 stars\":0,\"2 stars\":0,\"1 stars\":0,\"0 stars\":0}}]\n\n</code></pre>\n","urlObject":{"path":["services","by_name","check",""],"host":["http://127.0.0.1:8000/api/v1"],"query":[],"variable":[]}},"response":[{"id":"806dca34-9df8-45b8-a0f4-4fe3d9911933","name":"services productname list","originalRequest":{"method":"GET","header":[],"url":"http://127.0.0.1:8000/api/v1/services/by_name/teethb"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 15 Dec 2023 20:47:53 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.9.10"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language, Cookie"},{"key":"Allow","value":"OPTIONS, GET"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"554"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"same-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 5,\n        \"provider_location_id\": 2,\n        \"provider_name\": \"newprovider\",\n        \"category_name\": \"DOCTOR\",\n        \"title\": \"teethbrush\",\n        \"description\": \"description\",\n        \"images\": [\n            \"https://imgs.search.brave.com/2tHckcLHGys54UZ1Bi6KXPi94n0fSURL-hXyuORg44M/rs:fit:632:225:1/g:ce/aHR0cHM6Ly90c2Ux/Lm1tLmJpbmcubmV0/L3RoP2lkPU9JUC5x/MU5VamdUTTJnYjUx/Z2YyazBwR09BSGFG/aiZwaWQ9QXBp\"\n        ],\n        \"price\": 4,\n        \"created_at\": \"2023-12-15T20:47:17.532602Z\",\n        \"updated_at\": \"2023-12-11T17:13:42.175393Z\",\n        \"rates\": {\n            \"avg_rate\": {\n                \"rate__avg\": null\n            },\n            \"5 stars\": 0,\n            \"4 stars\": 0,\n            \"3 stars\": 0,\n            \"2 stars\": 0,\n            \"1 stars\": 0,\n            \"0 stars\": 0\n        }\n    }\n]"}],"_postman_id":"9d8af9ce-e2d2-4291-910f-bb1bc08022cb"}],"id":"0186a4cd-9881-40b5-b79a-72c5da326ce8","_postman_id":"0186a4cd-9881-40b5-b79a-72c5da326ce8","description":""},{"name":"service_provider","item":[{"name":"services service provider read","id":"fb5bf27b-a4d9-4ec4-8302-0a4bc8811963","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://127.0.0.1:8000/api/v1/services/provider/31","description":"<p>This endpoint makes an HTTP GET request to retrieve information about a specific service provider.</p>\n<p><strong>This endpoint is for everybody.</strong></p>\n<p>The response will be in JSON format and will include details such as the provider's ID, location ID, name, category ID, category name, title, description, images, price, discount amount, activity status, creation date, update date, and rates.</p>\n<p>The response will have a status code of 200 upon successful execution.</p>\n<p>Here is an example of the response:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">[\n    {\n        \"id\": 0,\n        \"provider_location_id\": 0,\n        \"provider_name\": \"\",\n        \"category_name\": \"\",\n        \"title\": \"\",\n        \"description\": \"\",\n        \"images\": [\"\"],\n        \"price\": 0,\n        \"created_at\": \"\",\n        \"updated_at\": \"\",\n        \"rates\": {\n            \"avg_rate\": {\n                \"rate__avg\": null\n            },\n            \"5 stars\": 0,\n            \"4 stars\": 0,\n            \"3 stars\": 0,\n            \"2 stars\": 0,\n            \"1 stars\": 0,\n            \"0 stars\": 0\n        }\n    }\n]\n\n</code></pre>\n","urlObject":{"path":["services","provider","31"],"host":["http://127.0.0.1:8000/api/v1"],"query":[],"variable":[]}},"response":[{"id":"46a2cf35-7587-4d4d-a379-4e7cd4d20286","name":"services service provider read","originalRequest":{"method":"GET","header":[],"url":"http://127.0.0.1:8000/api/v1/services/provider/10"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 15 Dec 2023 20:49:10 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.9.10"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language, Cookie"},{"key":"Allow","value":"OPTIONS, GET"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"1120"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"same-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 3,\n        \"provider_location_id\": 2,\n        \"provider_name\": \"newprovider\",\n        \"category_name\": \"OPTICS\",\n        \"title\": \"Eye glasses\",\n        \"description\": \"Eye glasses description\",\n        \"images\": [\n            \"https://imgs.search.brave.com/2tHckcLHGys54UZ1Bi6KXPi94n0fSURL-hXyuORg44M/rs:fit:632:225:1/g:ce/aHR0cHM6Ly90c2Ux/Lm1tLmJpbmcubmV0/L3RoP2lkPU9JUC5x/MU5VamdUTTJnYjUx/Z2YyazBwR09BSGFG/aiZwaWQ9QXBp\"\n        ],\n        \"price\": 6,\n        \"created_at\": \"2023-12-11T15:43:40.921345Z\",\n        \"updated_at\": \"2023-12-11T15:43:40.921345Z\",\n        \"rates\": {\n            \"avg_rate\": {\n                \"rate__avg\": null\n            },\n            \"5 stars\": 0,\n            \"4 stars\": 0,\n            \"3 stars\": 0,\n            \"2 stars\": 0,\n            \"1 stars\": 0,\n            \"0 stars\": 0\n        }\n    },\n    {\n        \"id\": 5,\n        \"provider_location_id\": 2,\n        \"provider_name\": \"newprovider\",\n        \"category_name\": \"DOCTOR\",\n        \"title\": \"teethbrush\",\n        \"description\": \"description\",\n        \"images\": [\n            \"https://imgs.search.brave.com/2tHckcLHGys54UZ1Bi6KXPi94n0fSURL-hXyuORg44M/rs:fit:632:225:1/g:ce/aHR0cHM6Ly90c2Ux/Lm1tLmJpbmcubmV0/L3RoP2lkPU9JUC5x/MU5VamdUTTJnYjUx/Z2YyazBwR09BSGFG/aiZwaWQ9QXBp\"\n        ],\n        \"price\": 4,\n        \"created_at\": \"2023-12-15T20:47:17.532602Z\",\n        \"updated_at\": \"2023-12-11T17:13:42.175393Z\",\n        \"rates\": {\n            \"avg_rate\": {\n                \"rate__avg\": null\n            },\n            \"5 stars\": 0,\n            \"4 stars\": 0,\n            \"3 stars\": 0,\n            \"2 stars\": 0,\n            \"1 stars\": 0,\n            \"0 stars\": 0\n        }\n    }\n]"}],"_postman_id":"fb5bf27b-a4d9-4ec4-8302-0a4bc8811963"},{"name":"provider category services","id":"10e58d6a-01d7-451d-8e7d-6562880b792a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://127.0.0.1:8000/api/v1/services/provider/30/1/","description":"<p>This endpoint makes an HTTP GET request to retrieve information about a specific service provider. The request should be made to http://127.0.0.1:8000/api/v1/services/provider/30/1/.</p>\n<p>The response to this request will have a status code of 200 and a content type of application/json. The response will include an array of objects, each containing details about a service provided by the specified provider. The objects will have properties such as id, provider_location_id, provider_name, category_id, category_name, title, description, images, price, discount_ammount, is_active, created_at, updated_at, and rates. The rates property further contains properties such as avg_rate, 5 stars, 4 stars, 3 stars, 2 stars, 1 stars, and 0 stars.</p>\n<p>Here is an example of the response:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">[{\"id\":0,\"provider_location_id\":0,\"provider_name\":\"\",\"category_name\":\"\",\"title\":\"\",\"description\":\"\",\"images\":[\"\"],\"price\":0,\"created_at\":\"\",\"updated_at\":\"\",\"rates\":{\"avg_rate\":{\"rate__avg\":0},\"5 stars\":0,\"4 stars\":0,\"3 stars\":0,\"2 stars\":0,\"1 stars\":0,\"0 stars\":0}}]\n</code></pre>\n","urlObject":{"path":["services","provider","30","1",""],"host":["http://127.0.0.1:8000/api/v1"],"query":[],"variable":[]}},"response":[{"id":"2ba5e39f-fb65-4325-818a-4bcb4cfeb46a","name":"services service provider read Copy","originalRequest":{"method":"GET","header":[],"url":"http://127.0.0.1:8000/api/v1/services/10/1"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 15 Dec 2023 21:13:10 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.9.10"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language, Cookie"},{"key":"Allow","value":"OPTIONS, GET"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"553"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"same-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 5,\n        \"provider_location_id\": 2,\n        \"provider_name\": \"newprovider\",\n        \"category_name\": \"DOCTOR\",\n        \"title\": \"teethbrush\",\n        \"description\": \"description\",\n        \"images\": [\n            \"https://imgs.search.brave.com/2tHckcLHGys54UZ1Bi6KXPi94n0fSURL-hXyuORg44M/rs:fit:632:225:1/g:ce/aHR0cHM6Ly90c2Ux/Lm1tLmJpbmcubmV0/L3RoP2lkPU9JUC5x/MU5VamdUTTJnYjUx/Z2YyazBwR09BSGFG/aiZwaWQ9QXBp\"\n        ],\n        \"price\": 4,\n        \"created_at\": \"2023-12-15T20:47:17.532602Z\",\n        \"updated_at\": \"2023-12-11T17:13:42.175393Z\",\n        \"rates\": {\n            \"avg_rate\": {\n                \"rate__avg\": 6\n            },\n            \"5 stars\": 0,\n            \"4 stars\": 0,\n            \"3 stars\": 0,\n            \"2 stars\": 0,\n            \"1 stars\": 0,\n            \"0 stars\": 0\n        }\n    }\n]"}],"_postman_id":"10e58d6a-01d7-451d-8e7d-6562880b792a"}],"id":"2536110d-7a01-44cf-8c04-d6b9f6bdff15","_postman_id":"2536110d-7a01-44cf-8c04-d6b9f6bdff15","description":""}],"id":"a49aa0f8-bc7e-4ec2-bedc-30d1a978f31a","_postman_id":"a49aa0f8-bc7e-4ec2-bedc-30d1a978f31a","description":""},{"name":"rates","item":[{"name":"specific rate","item":[{"name":"get","id":"e8c46d9f-aa06-4e27-a43d-7c69943dfc35","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://127.0.0.1:8000/api/v1/services/rates/39/","description":"<p>This endpoint makes an HTTP GET request to retrieve the rates for a specific service. The response will include an array of rate objects, each containing the rate ID, user ID, user email, service ID, service title, and rate value.</p>\n<p>The response will have a status code of 200, and the content type will be in JSON format.</p>\n<p><strong>This endpoint is for everybody.</strong></p>\n","urlObject":{"path":["services","rates","39",""],"host":["http://127.0.0.1:8000/api/v1"],"query":[],"variable":[]}},"response":[{"id":"527ee80d-3c3c-4792-b3fa-6c5b169852a9","name":"get","originalRequest":{"method":"GET","header":[],"url":"http://127.0.0.1:8000/api/v1/services/rates/39/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 07 Feb 2024 18:35:16 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.11.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language, Cookie"},{"key":"Allow","value":"GET, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"124"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"rate_id\": 39,\n        \"user_id\": 29,\n        \"user_email\": \"maamoun.h.najeeb@gmail.com\",\n        \"service_id\": 20,\n        \"service_tile\": \"check feet\",\n        \"rate\": 5\n    }\n]"}],"_postman_id":"e8c46d9f-aa06-4e27-a43d-7c69943dfc35"},{"name":"delete","id":"8d8e5cd1-feda-45de-8160-b7fe7b0083d5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MzMxOTc0LCJpYXQiOjE3MDczMzA3NzQsImp0aSI6ImYxNTAwMjQxZWE0YzQ3M2E5YzlkMWQ0MDI4ODE5Mzg1IiwidXNlcl9pZCI6MjN9.l4JqPh12PsjNqXlYmxVhzxpHDqjNCufH3RICC0FwVjs","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/services/rates/delete_or_update/40/","description":"<h3 id=\"delete-or-update-service-rates\">Delete or Update Service Rates</h3>\n<p>This endpoint is used to delete service rates with the specified ID.</p>\n<p><strong>This endpoint for authenticated users only.</strong></p>\n<p><strong>Only rate owner can delete his rate.</strong></p>\n<h4 id=\"request-parameters\">Request Parameters</h4>\n<ul>\n<li>No request parameters required.</li>\n</ul>\n<h4 id=\"response\">Response</h4>\n<ul>\n<li><p><strong>Status</strong>: 204</p>\n</li>\n<li><p><strong>Content-Type</strong>: application/json</p>\n</li>\n<li><p><strong>Body</strong>:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">  {\n      \"Done\": \"\"\n  }\n\n</code></pre>\n</li>\n</ul>\n","urlObject":{"path":["services","rates","delete_or_update","40",""],"host":["http://127.0.0.1:8000/api/v1"],"query":[],"variable":[]}},"response":[{"id":"fc64d544-e4a9-4bf1-9231-2cb3efb95279","name":"delete","originalRequest":{"method":"DELETE","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MzMxOTc0LCJpYXQiOjE3MDczMzA3NzQsImp0aSI6ImYxNTAwMjQxZWE0YzQ3M2E5YzlkMWQ0MDI4ODE5Mzg1IiwidXNlcl9pZCI6MjN9.l4JqPh12PsjNqXlYmxVhzxpHDqjNCufH3RICC0FwVjs","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/services/rates/delete_or_update/40/"},"status":"No Content","code":204,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 07 Feb 2024 18:36:27 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.11.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language"},{"key":"Allow","value":"DELETE, PATCH, PUT, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"31"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"Done\": \"Deleted Successfully\"\n}"}],"_postman_id":"8d8e5cd1-feda-45de-8160-b7fe7b0083d5"},{"name":"patch","id":"92b06485-6185-40df-9b12-23b097f364e1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MzMyMjIyLCJpYXQiOjE3MDczMzEwMjIsImp0aSI6IjlmODRjN2IxOWI5YTRiYjI4MzIwMDA5YzM4NWEwMDA2IiwidXNlcl9pZCI6Mjl9.GCteBrPuaqmq1j8Dzqc01F30-eMieedgVe1IDrszIQg","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"rate\": 3\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/api/v1/services/rates/delete_or_update/39/","description":"<p>This endpoint allows you to update a specific rate with the given ID.</p>\n<p><strong>This endpoint for authenticated users.</strong></p>\n<p><strong>only rate owner can edit his rate.</strong></p>\n<h3 id=\"request-body\">Request Body</h3>\n<ul>\n<li><code>rate</code>: The new value for the rate.</li>\n</ul>\n<h3 id=\"response\">Response</h3>\n<ul>\n<li>Status: 202</li>\n<li>Content-Type: application/json</li>\n<li><code>rate_id</code>: The ID of the rate that was updated or deleted.</li>\n<li><code>user_id</code>: The ID of the user associated with the rate.</li>\n<li><code>user_email</code>: The email of the user associated with the rate.</li>\n<li><code>service_id</code>: The ID of the service associated with the rate.</li>\n<li><code>service_tile</code>: The title of the service associated with the rate.</li>\n<li><code>rate</code>: The updated value of the rate.</li>\n</ul>\n","urlObject":{"path":["services","rates","delete_or_update","39",""],"host":["http://127.0.0.1:8000/api/v1"],"query":[],"variable":[]}},"response":[{"id":"ecabb519-9dc2-42ce-80d0-f19159c36f2a","name":"patch","originalRequest":{"method":"PATCH","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MzMyMjIyLCJpYXQiOjE3MDczMzEwMjIsImp0aSI6IjlmODRjN2IxOWI5YTRiYjI4MzIwMDA5YzM4NWEwMDA2IiwidXNlcl9pZCI6Mjl9.GCteBrPuaqmq1j8Dzqc01F30-eMieedgVe1IDrszIQg","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"rate\": 3\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/api/v1/services/rates/delete_or_update/39/"},"status":"Accepted","code":202,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 07 Feb 2024 18:37:18 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.11.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language"},{"key":"Allow","value":"DELETE, PATCH, PUT, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"122"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"rate_id\": 39,\n    \"user_id\": 29,\n    \"user_email\": \"maamoun.h.najeeb@gmail.com\",\n    \"service_id\": 20,\n    \"service_tile\": \"check feet\",\n    \"rate\": 3\n}"}],"_postman_id":"92b06485-6185-40df-9b12-23b097f364e1"},{"name":"create","id":"8d42dcf7-7ef5-4474-a08e-3f762131e061","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MzMxOTc0LCJpYXQiOjE3MDczMzA3NzQsImp0aSI6ImYxNTAwMjQxZWE0YzQ3M2E5YzlkMWQ0MDI4ODE5Mzg1IiwidXNlcl9pZCI6MjN9.l4JqPh12PsjNqXlYmxVhzxpHDqjNCufH3RICC0FwVjs","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"service\": 20,\r\n    \"rate\": 5\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/api/v1/services/rates/create/","description":"<p>This endpoint allows you to create a new rate for a service.</p>\n<p><strong>This endpoint for authenticated users.</strong></p>\n<p>The user automatically added in the background (no need to add user manually).</p>\n<h3 id=\"request-body\">Request Body</h3>\n<ul>\n<li><code>service</code> (number) - The ID of the service for which the rate is being created.</li>\n<li><code>rate</code> (number) - The value of the rate.</li>\n</ul>\n<h3 id=\"response\">Response</h3>\n<p>Upon successful creation, the endpoint returns a status code of 201 and a JSON object with the following properties:</p>\n<ul>\n<li><code>rate_id</code> (number) - The ID of the created rate.</li>\n<li><code>user_id</code> (number) - The ID of the user associated with the rate.</li>\n<li><code>user_email</code> (string) - The email of the user associated with the rate.</li>\n<li><code>service_id</code> (number) - The ID of the service for which the rate was created.</li>\n<li><code>service_tile</code> (string) - The title of the service for which the rate was created.</li>\n<li><code>rate</code> (number) - The value of the created rate.</li>\n</ul>\n","urlObject":{"path":["services","rates","create",""],"host":["http://127.0.0.1:8000/api/v1"],"query":[],"variable":[]}},"response":[{"id":"df6256e8-7b43-4471-b974-dfc62a4ed043","name":"create","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MzMxOTc0LCJpYXQiOjE3MDczMzA3NzQsImp0aSI6ImYxNTAwMjQxZWE0YzQ3M2E5YzlkMWQ0MDI4ODE5Mzg1IiwidXNlcl9pZCI6MjN9.l4JqPh12PsjNqXlYmxVhzxpHDqjNCufH3RICC0FwVjs","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"service\": 20,\r\n    \"rate\": 5\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/api/v1/services/rates/create/"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 07 Feb 2024 18:35:56 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.11.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language"},{"key":"Allow","value":"POST, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"124"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"rate_id\": 40,\n    \"user_id\": 23,\n    \"user_email\": \"maamoun.haj.najeeb@gmail.com\",\n    \"service_id\": 20,\n    \"service_tile\": \"check feet\",\n    \"rate\": 5\n}"}],"_postman_id":"8d42dcf7-7ef5-4474-a08e-3f762131e061"}],"id":"3fced34d-129c-4f41-b7e6-6f0697772f38","_postman_id":"3fced34d-129c-4f41-b7e6-6f0697772f38","description":""},{"name":"user rates by user ID","id":"c0e28dc4-0ba2-4fab-a44b-eb61b831bd36","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MzMyNDUxLCJpYXQiOjE3MDczMzEyNTEsImp0aSI6IjAyY2FjY2VlYTZhZDQ0ODA5MzgyMDQ5NmZmNmNhODU3IiwidXNlcl9pZCI6Mjl9.U2heQdP6a6eEpsp_p89C3Sz2gNkIled3aMuJtpgb9yo","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/services/rates/user/","description":"<p>This endpoint retrieves the rates for a specific user. It makes an HTTP GET request to the specified URL.</p>\n<p>The response will be in JSON format and will include the rate ID, user ID, user email, service ID, service title, and the rate value.</p>\n<p><strong>This endpoint is for authenticated users.</strong></p>\n","urlObject":{"path":["services","rates","user",""],"host":["http://127.0.0.1:8000/api/v1"],"query":[],"variable":[]}},"response":[{"id":"7028e7ea-6613-457a-88b0-7bf259cf1a52","name":"user rates by user ID","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MzMyNDUxLCJpYXQiOjE3MDczMzEyNTEsImp0aSI6IjAyY2FjY2VlYTZhZDQ0ODA5MzgyMDQ5NmZmNmNhODU3IiwidXNlcl9pZCI6Mjl9.U2heQdP6a6eEpsp_p89C3Sz2gNkIled3aMuJtpgb9yo","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/services/rates/user/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 07 Feb 2024 18:41:17 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.11.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language"},{"key":"Allow","value":"GET, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"1479"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"rate_id\": 1,\n        \"user_id\": 29,\n        \"user_email\": \"maamoun.h.najeeb@gmail.com\",\n        \"service_id\": 7,\n        \"service_tile\": \"check stomach\",\n        \"rate\": 5\n    },\n    {\n        \"rate_id\": 2,\n        \"user_id\": 29,\n        \"user_email\": \"maamoun.h.najeeb@gmail.com\",\n        \"service_id\": 8,\n        \"service_tile\": \"check Endocrine\",\n        \"rate\": 4\n    },\n    {\n        \"rate_id\": 3,\n        \"user_id\": 29,\n        \"user_email\": \"maamoun.h.najeeb@gmail.com\",\n        \"service_id\": 9,\n        \"service_tile\": \"check ear\",\n        \"rate\": 4\n    },\n    {\n        \"rate_id\": 4,\n        \"user_id\": 29,\n        \"user_email\": \"maamoun.h.najeeb@gmail.com\",\n        \"service_id\": 10,\n        \"service_tile\": \"check eye\",\n        \"rate\": 2\n    },\n    {\n        \"rate_id\": 5,\n        \"user_id\": 29,\n        \"user_email\": \"maamoun.h.najeeb@gmail.com\",\n        \"service_id\": 11,\n        \"service_tile\": \"check teeth\",\n        \"rate\": 1\n    },\n    {\n        \"rate_id\": 6,\n        \"user_id\": 29,\n        \"user_email\": \"maamoun.h.najeeb@gmail.com\",\n        \"service_id\": 12,\n        \"service_tile\": \"general check_up\",\n        \"rate\": 0\n    },\n    {\n        \"rate_id\": 7,\n        \"user_id\": 29,\n        \"user_email\": \"maamoun.h.najeeb@gmail.com\",\n        \"service_id\": 13,\n        \"service_tile\": \"check kidney\",\n        \"rate\": 5\n    },\n    {\n        \"rate_id\": 8,\n        \"user_id\": 29,\n        \"user_email\": \"maamoun.h.najeeb@gmail.com\",\n        \"service_id\": 15,\n        \"service_tile\": \"check feet\",\n        \"rate\": 4\n    },\n    {\n        \"rate_id\": 36,\n        \"user_id\": 29,\n        \"user_email\": \"maamoun.h.najeeb@gmail.com\",\n        \"service_id\": 16,\n        \"service_tile\": \"check feet\",\n        \"rate\": 0\n    },\n    {\n        \"rate_id\": 37,\n        \"user_id\": 29,\n        \"user_email\": \"maamoun.h.najeeb@gmail.com\",\n        \"service_id\": 17,\n        \"service_tile\": \"check feet\",\n        \"rate\": 0\n    },\n    {\n        \"rate_id\": 38,\n        \"user_id\": 29,\n        \"user_email\": \"maamoun.h.najeeb@gmail.com\",\n        \"service_id\": 21,\n        \"service_tile\": \"Dry milk\",\n        \"rate\": 2\n    },\n    {\n        \"rate_id\": 39,\n        \"user_id\": 29,\n        \"user_email\": \"maamoun.h.najeeb@gmail.com\",\n        \"service_id\": 20,\n        \"service_tile\": \"check feet\",\n        \"rate\": 3\n    }\n]"}],"_postman_id":"c0e28dc4-0ba2-4fab-a44b-eb61b831bd36"},{"name":"provider rates","id":"27a32134-fc6a-4c58-a568-d9356ba69881","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MzMyNzc5LCJpYXQiOjE3MDczMzE1NzksImp0aSI6IjNlZDY4MjFhNmJiYTRhY2I5MWFhNDZmNjM0MGRkZmJiIiwidXNlcl9pZCI6Mjl9.6Srzwd00rBnudRDd3BEM-aI7cXnGY9oJtPx9VRf4vk0","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/services/rates/provider/30/","description":"<p>This endpoint makes an HTTP GET request to retrieve the rates for a specific provider. The response will contain an array of objects, each representing a rate with its associated details such as rate ID, user ID, user email, service ID, service title, and the actual rate value.</p>\n<p><strong>This endpoint is for authenticated users.</strong></p>\n<p>Example response:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">[\n    {\n        \"rate_id\": 0,\n        \"user_id\": 0,\n        \"user_email\": \"\",\n        \"service_id\": 0,\n        \"service_title\": \"\",\n        \"rate\": 0\n    }\n]\n\n</code></pre>\n","urlObject":{"path":["services","rates","provider","30",""],"host":["http://127.0.0.1:8000/api/v1"],"query":[],"variable":[]}},"response":[{"id":"0be03a77-327c-4d97-a9fb-76e0072c0f17","name":"provider rates","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MzMyNzc5LCJpYXQiOjE3MDczMzE1NzksImp0aSI6IjNlZDY4MjFhNmJiYTRhY2I5MWFhNDZmNjM0MGRkZmJiIiwidXNlcl9pZCI6Mjl9.6Srzwd00rBnudRDd3BEM-aI7cXnGY9oJtPx9VRf4vk0","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/services/rates/provider/30/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 07 Feb 2024 18:46:49 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.11.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language"},{"key":"Allow","value":"OPTIONS, GET"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"1235"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"rate_id\": 39,\n        \"user_id\": 29,\n        \"user_email\": \"maamoun.h.najeeb@gmail.com\",\n        \"service_id\": 20,\n        \"service_tile\": \"check feet\",\n        \"rate\": 3\n    },\n    {\n        \"rate_id\": 36,\n        \"user_id\": 29,\n        \"user_email\": \"maamoun.h.najeeb@gmail.com\",\n        \"service_id\": 16,\n        \"service_tile\": \"check feet\",\n        \"rate\": 0\n    },\n    {\n        \"rate_id\": 37,\n        \"user_id\": 29,\n        \"user_email\": \"maamoun.h.najeeb@gmail.com\",\n        \"service_id\": 17,\n        \"service_tile\": \"check feet\",\n        \"rate\": 0\n    },\n    {\n        \"rate_id\": 2,\n        \"user_id\": 29,\n        \"user_email\": \"maamoun.h.najeeb@gmail.com\",\n        \"service_id\": 8,\n        \"service_tile\": \"check Endocrine\",\n        \"rate\": 4\n    },\n    {\n        \"rate_id\": 1,\n        \"user_id\": 29,\n        \"user_email\": \"maamoun.h.najeeb@gmail.com\",\n        \"service_id\": 7,\n        \"service_tile\": \"check stomach\",\n        \"rate\": 5\n    },\n    {\n        \"rate_id\": 27,\n        \"user_id\": 23,\n        \"user_email\": \"maamoun.haj.najeeb@gmail.com\",\n        \"service_id\": 7,\n        \"service_tile\": \"check stomach\",\n        \"rate\": 3\n    },\n    {\n        \"rate_id\": 4,\n        \"user_id\": 29,\n        \"user_email\": \"maamoun.h.najeeb@gmail.com\",\n        \"service_id\": 10,\n        \"service_tile\": \"check eye\",\n        \"rate\": 2\n    },\n    {\n        \"rate_id\": 22,\n        \"user_id\": 23,\n        \"user_email\": \"maamoun.haj.najeeb@gmail.com\",\n        \"service_id\": 10,\n        \"service_tile\": \"check eye\",\n        \"rate\": 0\n    },\n    {\n        \"rate_id\": 3,\n        \"user_id\": 29,\n        \"user_email\": \"maamoun.h.najeeb@gmail.com\",\n        \"service_id\": 9,\n        \"service_tile\": \"check ear\",\n        \"rate\": 4\n    },\n    {\n        \"rate_id\": 23,\n        \"user_id\": 23,\n        \"user_email\": \"maamoun.haj.najeeb@gmail.com\",\n        \"service_id\": 9,\n        \"service_tile\": \"check ear\",\n        \"rate\": 5\n    }\n]"}],"_postman_id":"27a32134-fc6a-4c58-a568-d9356ba69881"},{"name":"location rates","id":"1c92b660-a457-47f4-a725-efa25391bc9d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MzMyNzc5LCJpYXQiOjE3MDczMzE1NzksImp0aSI6IjNlZDY4MjFhNmJiYTRhY2I5MWFhNDZmNjM0MGRkZmJiIiwidXNlcl9pZCI6Mjl9.6Srzwd00rBnudRDd3BEM-aI7cXnGY9oJtPx9VRf4vk0","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/services/rates/location/3/","description":"<p>This endpoint performs an HTTP GET request to retrieve the rates for a specific service provider location.</p>\n<p><strong>This endpoint is for authenticated users.</strong></p>\n<p>The response to the request will have a status code of 200 and a content type of application/json. The response body will contain an array of objects, each representing a rate. Each rate object will have the following properties:</p>\n<ul>\n<li>rate_id (number): The ID of the rate</li>\n<li>user_id (number): The ID of the user</li>\n<li>user_email (string): The email of the user</li>\n<li>service_id (number): The ID of the service</li>\n<li>service_title (string): The title of the service</li>\n<li>rate (number): The rate value</li>\n</ul>\n<p>Example response:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">[\n    {\n        \"rate_id\": 0,\n        \"user_id\": 0,\n        \"user_email\": \"\",\n        \"service_id\": 0,\n        \"service_title\": \"\",\n        \"rate\": 0\n    }\n]\n\n</code></pre>\n","urlObject":{"path":["services","rates","location","3",""],"host":["http://127.0.0.1:8000/api/v1"],"query":[],"variable":[]}},"response":[{"id":"c670cb05-c108-4f48-96ec-4456ab656b17","name":"location rates","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MzMyNzc5LCJpYXQiOjE3MDczMzE1NzksImp0aSI6IjNlZDY4MjFhNmJiYTRhY2I5MWFhNDZmNjM0MGRkZmJiIiwidXNlcl9pZCI6Mjl9.6Srzwd00rBnudRDd3BEM-aI7cXnGY9oJtPx9VRf4vk0","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/services/rates/location/3/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 07 Feb 2024 18:47:23 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.11.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language"},{"key":"Allow","value":"OPTIONS, GET"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"747"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"rate_id\": 1,\n        \"user_id\": 29,\n        \"user_email\": \"maamoun.h.najeeb@gmail.com\",\n        \"service_id\": 7,\n        \"service_tile\": \"check stomach\",\n        \"rate\": 5\n    },\n    {\n        \"rate_id\": 27,\n        \"user_id\": 23,\n        \"user_email\": \"maamoun.haj.najeeb@gmail.com\",\n        \"service_id\": 7,\n        \"service_tile\": \"check stomach\",\n        \"rate\": 3\n    },\n    {\n        \"rate_id\": 2,\n        \"user_id\": 29,\n        \"user_email\": \"maamoun.h.najeeb@gmail.com\",\n        \"service_id\": 8,\n        \"service_tile\": \"check Endocrine\",\n        \"rate\": 4\n    },\n    {\n        \"rate_id\": 37,\n        \"user_id\": 29,\n        \"user_email\": \"maamoun.h.najeeb@gmail.com\",\n        \"service_id\": 17,\n        \"service_tile\": \"check feet\",\n        \"rate\": 0\n    },\n    {\n        \"rate_id\": 36,\n        \"user_id\": 29,\n        \"user_email\": \"maamoun.h.najeeb@gmail.com\",\n        \"service_id\": 16,\n        \"service_tile\": \"check feet\",\n        \"rate\": 0\n    },\n    {\n        \"rate_id\": 39,\n        \"user_id\": 29,\n        \"user_email\": \"maamoun.h.najeeb@gmail.com\",\n        \"service_id\": 20,\n        \"service_tile\": \"check feet\",\n        \"rate\": 3\n    }\n]"}],"_postman_id":"1c92b660-a457-47f4-a725-efa25391bc9d"},{"name":"service rates","id":"25a63ea3-bbc7-4eb9-979e-688ce23f4098","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MzMyNzc5LCJpYXQiOjE3MDczMzE1NzksImp0aSI6IjNlZDY4MjFhNmJiYTRhY2I5MWFhNDZmNjM0MGRkZmJiIiwidXNlcl9pZCI6Mjl9.6Srzwd00rBnudRDd3BEM-aI7cXnGY9oJtPx9VRf4vk0","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/services/12/rates/","description":"<p>This endpoint makes an HTTP GET request to retrieve the rates for a specific service. The response will be in JSON format and will include an array of rate objects, each containing the rate ID, user ID, user email, service ID, service title, and the rate value.</p>\n<p><strong>This endpoint for authenticated users.</strong></p>\n","urlObject":{"path":["services","12","rates",""],"host":["http://127.0.0.1:8000/api/v1"],"query":[],"variable":[]}},"response":[{"id":"9f021e21-7750-4e00-a95f-fa06a232f96a","name":"service rates","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MzMyNzc5LCJpYXQiOjE3MDczMzE1NzksImp0aSI6IjNlZDY4MjFhNmJiYTRhY2I5MWFhNDZmNjM0MGRkZmJiIiwidXNlcl9pZCI6Mjl9.6Srzwd00rBnudRDd3BEM-aI7cXnGY9oJtPx9VRf4vk0","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/services/12/rates/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 07 Feb 2024 18:47:43 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.11.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language"},{"key":"Allow","value":"OPTIONS, GET"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"260"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"rate_id\": 6,\n        \"user_id\": 29,\n        \"user_email\": \"maamoun.h.najeeb@gmail.com\",\n        \"service_id\": 12,\n        \"service_tile\": \"general check_up\",\n        \"rate\": 0\n    },\n    {\n        \"rate_id\": 20,\n        \"user_id\": 23,\n        \"user_email\": \"maamoun.haj.najeeb@gmail.com\",\n        \"service_id\": 12,\n        \"service_tile\": \"general check_up\",\n        \"rate\": 2\n    }\n]"}],"_postman_id":"25a63ea3-bbc7-4eb9-979e-688ce23f4098"},{"name":"all rates","id":"1fbea9d9-557d-4e74-bbc8-8e538f91e59f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MzMyOTEwLCJpYXQiOjE3MDczMzE3MTAsImp0aSI6IjZhMzY3NTI1MWE4NjQwN2U5NWQzNTBkODY3NjUwYjNiIiwidXNlcl9pZCI6MjN9.cSCvESTGZuQR4op8Qvx-KlhSaixnhoZcFZ-YuPNjH4o","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/services/rates/all/","description":"<p>This endpoint makes an HTTP GET request to retrieve all rates for services. The response will be in JSON format and will include an array of objects, with each object containing the rate_id, user_id, user_email, service_id, service_tile, and rate.</p>\n<p><strong>This endpoint for admins only.</strong></p>\n","urlObject":{"path":["services","rates","all",""],"host":["http://127.0.0.1:8000/api/v1"],"query":[],"variable":[]}},"response":[{"id":"b008d824-bde2-47e3-a672-b2b384299836","name":"all rates","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MzMyOTEwLCJpYXQiOjE3MDczMzE3MTAsImp0aSI6IjZhMzY3NTI1MWE4NjQwN2U5NWQzNTBkODY3NjUwYjNiIiwidXNlcl9pZCI6MjN9.cSCvESTGZuQR4op8Qvx-KlhSaixnhoZcFZ-YuPNjH4o","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/services/rates/all/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 07 Feb 2024 18:48:48 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.11.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language"},{"key":"Allow","value":"OPTIONS, GET"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"2362"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"rate_id\": 1,\n        \"user_id\": 29,\n        \"user_email\": \"maamoun.h.najeeb@gmail.com\",\n        \"service_id\": 7,\n        \"service_tile\": \"check stomach\",\n        \"rate\": 5\n    },\n    {\n        \"rate_id\": 2,\n        \"user_id\": 29,\n        \"user_email\": \"maamoun.h.najeeb@gmail.com\",\n        \"service_id\": 8,\n        \"service_tile\": \"check Endocrine\",\n        \"rate\": 4\n    },\n    {\n        \"rate_id\": 3,\n        \"user_id\": 29,\n        \"user_email\": \"maamoun.h.najeeb@gmail.com\",\n        \"service_id\": 9,\n        \"service_tile\": \"check ear\",\n        \"rate\": 4\n    },\n    {\n        \"rate_id\": 4,\n        \"user_id\": 29,\n        \"user_email\": \"maamoun.h.najeeb@gmail.com\",\n        \"service_id\": 10,\n        \"service_tile\": \"check eye\",\n        \"rate\": 2\n    },\n    {\n        \"rate_id\": 5,\n        \"user_id\": 29,\n        \"user_email\": \"maamoun.h.najeeb@gmail.com\",\n        \"service_id\": 11,\n        \"service_tile\": \"check teeth\",\n        \"rate\": 1\n    },\n    {\n        \"rate_id\": 6,\n        \"user_id\": 29,\n        \"user_email\": \"maamoun.h.najeeb@gmail.com\",\n        \"service_id\": 12,\n        \"service_tile\": \"general check_up\",\n        \"rate\": 0\n    },\n    {\n        \"rate_id\": 7,\n        \"user_id\": 29,\n        \"user_email\": \"maamoun.h.najeeb@gmail.com\",\n        \"service_id\": 13,\n        \"service_tile\": \"check kidney\",\n        \"rate\": 5\n    },\n    {\n        \"rate_id\": 8,\n        \"user_id\": 29,\n        \"user_email\": \"maamoun.h.najeeb@gmail.com\",\n        \"service_id\": 15,\n        \"service_tile\": \"check feet\",\n        \"rate\": 4\n    },\n    {\n        \"rate_id\": 19,\n        \"user_id\": 23,\n        \"user_email\": \"maamoun.haj.najeeb@gmail.com\",\n        \"service_id\": 13,\n        \"service_tile\": \"check kidney\",\n        \"rate\": 3\n    },\n    {\n        \"rate_id\": 20,\n        \"user_id\": 23,\n        \"user_email\": \"maamoun.haj.najeeb@gmail.com\",\n        \"service_id\": 12,\n        \"service_tile\": \"general check_up\",\n        \"rate\": 2\n    },\n    {\n        \"rate_id\": 21,\n        \"user_id\": 23,\n        \"user_email\": \"maamoun.haj.najeeb@gmail.com\",\n        \"service_id\": 11,\n        \"service_tile\": \"check teeth\",\n        \"rate\": 1\n    },\n    {\n        \"rate_id\": 22,\n        \"user_id\": 23,\n        \"user_email\": \"maamoun.haj.najeeb@gmail.com\",\n        \"service_id\": 10,\n        \"service_tile\": \"check eye\",\n        \"rate\": 0\n    },\n    {\n        \"rate_id\": 23,\n        \"user_id\": 23,\n        \"user_email\": \"maamoun.haj.najeeb@gmail.com\",\n        \"service_id\": 9,\n        \"service_tile\": \"check ear\",\n        \"rate\": 5\n    },\n    {\n        \"rate_id\": 27,\n        \"user_id\": 23,\n        \"user_email\": \"maamoun.haj.najeeb@gmail.com\",\n        \"service_id\": 7,\n        \"service_tile\": \"check stomach\",\n        \"rate\": 3\n    },\n    {\n        \"rate_id\": 35,\n        \"user_id\": 23,\n        \"user_email\": \"maamoun.haj.najeeb@gmail.com\",\n        \"service_id\": 15,\n        \"service_tile\": \"check feet\",\n        \"rate\": 3\n    },\n    {\n        \"rate_id\": 36,\n        \"user_id\": 29,\n        \"user_email\": \"maamoun.h.najeeb@gmail.com\",\n        \"service_id\": 16,\n        \"service_tile\": \"check feet\",\n        \"rate\": 0\n    },\n    {\n        \"rate_id\": 37,\n        \"user_id\": 29,\n        \"user_email\": \"maamoun.h.najeeb@gmail.com\",\n        \"service_id\": 17,\n        \"service_tile\": \"check feet\",\n        \"rate\": 0\n    },\n    {\n        \"rate_id\": 38,\n        \"user_id\": 29,\n        \"user_email\": \"maamoun.h.najeeb@gmail.com\",\n        \"service_id\": 21,\n        \"service_tile\": \"Dry milk\",\n        \"rate\": 2\n    },\n    {\n        \"rate_id\": 39,\n        \"user_id\": 29,\n        \"user_email\": \"maamoun.h.najeeb@gmail.com\",\n        \"service_id\": 20,\n        \"service_tile\": \"check feet\",\n        \"rate\": 3\n    }\n]"}],"_postman_id":"1fbea9d9-557d-4e74-bbc8-8e538f91e59f"}],"id":"34106417-c751-42d9-a354-f442b3b6b124","_postman_id":"34106417-c751-42d9-a354-f442b3b6b124","description":""},{"name":"filters","item":[{"name":"search with multiple filters","id":"69e43e39-53a5-47c3-acf7-a6a15f217cd4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://127.0.0.1:8000/api/v1/services/search/30/?rates=[4]&categories=[1]&min_price=4500&max_price=5500&pagination_number=8&search=check","description":"<p>This endpoint makes an HTTP GET request to retrieve specific service provider services.</p>\n<p>This endpoint is <strong>for everybody.</strong></p>\n<p>The request includes the rates, categories, minimum price, maximum price, pagination number, and search keyword.</p>\n<p>The response to the request has a status code of 200 and a content type of application/json. The response body contains an array of service objects, each including an ID, provider location ID, provider name, category ID, category name, title, description, images, price, discount amount, activity status, creation timestamp, update timestamp, and rates.</p>\n<p>Here are some examples of the response for this request:</p>\n<ol>\n<li><pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\"> [{\"id\":0,\"provider_location_id\":0,\"provider_name\":\"\",\"category_name\":\"\",\"title\":\"\",\"description\":\"\",\"images\":[\"\"],\"price\":0,\"created_at\":\"\",\"updated_at\":\"\",\"rates\":{\"avg_rate\":{\"rate__avg\":null},\"5 stars\":0,\"4 stars\":0,\"3 stars\":0,\"2 stars\":0,\"1 stars\":0,\"0 stars\":0}}]\n \n</code></pre>\n</li>\n<li><pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\"> [{\"id\":0,\"provider_location_id\":0,\"provider_name\":\"\",\"category_name\":\"\",\"title\":\"\",\"description\":\"\",\"images\":[\"\"],\"price\":0,\"discount_ammount\":0,\"is_active\":true,\"created_at\":\"\",\"updated_at\":\"\",\"rates\":{\"avg_rate\":0,\"5 stars\":0,\"4 stars\":0,\"3 stars\":0,\"2 stars\":0,\"1 stars\":0,\"0 stars\":0}}]\n \n</code></pre>\n</li>\n</ol>\n","urlObject":{"path":["services","search","30",""],"host":["http://127.0.0.1:8000/api/v1"],"query":[{"key":"rates","value":"[4]"},{"key":"categories","value":"[1]"},{"key":"min_price","value":"4500"},{"key":"max_price","value":"5500"},{"disabled":true,"key":"longitude","value":""},{"disabled":true,"key":"latitude","value":""},{"key":"pagination_number","value":"8"},{"key":"search","value":"check"}],"variable":[]}},"response":[{"id":"565f1a83-989c-4947-b297-a1e7a48d047d","name":"search with multiple filters","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://127.0.0.1:8000/api/v1/services/search/30/?rates=[4]&categories=[1]&min_price=4500&max_price=5500&pagination_number=8&search=check","host":["http://127.0.0.1:8000/api/v1"],"path":["services","search","30",""],"query":[{"key":"rates","value":"[4]"},{"key":"categories","value":"[1]"},{"key":"min_price","value":"4500"},{"key":"max_price","value":"5500"},{"key":"longitude","value":"","type":"text","disabled":true},{"key":"latitude","value":"","type":"text","disabled":true},{"key":"pagination_number","value":"8"},{"key":"search","value":"check"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 07 Feb 2024 18:49:04 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.11.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language, Cookie"},{"key":"Allow","value":"OPTIONS, GET"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"1700"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 7,\n        \"provider_location_id\": 3,\n        \"provider_name\": \"Remostart\",\n        \"category_id\": 1,\n        \"category_name\": \"DOCTORS\",\n        \"title\": \"check stomach\",\n        \"description\": \"full check for stomach\",\n        \"images\": [\n            \"http://127.0.0.1:8000/media/services/09d7260f9359477ba770a6fc4492965f.png\",\n            \"http://127.0.0.1:8000/media/services/622d0eedc29b48f99709830f282cdf0f.jpg\"\n        ],\n        \"price\": 5000,\n        \"discount_ammount\": 0,\n        \"is_active\": true,\n        \"created_at\": \"2023-12-16T10:44:45.921051Z\",\n        \"updated_at\": \"2023-12-16T09:49:54.929895Z\",\n        \"rates\": {\n            \"avg_rate\": 4,\n            \"5 stars\": 1,\n            \"4 stars\": 0,\n            \"3 stars\": 1,\n            \"2 stars\": 0,\n            \"1 stars\": 0,\n            \"0 stars\": 0\n        }\n    },\n    {\n        \"id\": 8,\n        \"provider_location_id\": 3,\n        \"provider_name\": \"Remostart\",\n        \"category_id\": 1,\n        \"category_name\": \"DOCTORS\",\n        \"title\": \"check Endocrine\",\n        \"description\": \"full check for all Endocrine\",\n        \"images\": [\n            \"http://127.0.0.1:8000/media/services/9510dab7a22042839794b2d8d0928440.png\",\n            \"http://127.0.0.1:8000/media/services/5091158aa50a46d7806d21d73f19c575.jpg\"\n        ],\n        \"price\": 5000,\n        \"discount_ammount\": 0,\n        \"is_active\": true,\n        \"created_at\": \"2023-12-06T17:58:37.837090Z\",\n        \"updated_at\": \"2023-12-06T17:58:37.837090Z\",\n        \"rates\": {\n            \"avg_rate\": 4,\n            \"5 stars\": 0,\n            \"4 stars\": 1,\n            \"3 stars\": 0,\n            \"2 stars\": 0,\n            \"1 stars\": 0,\n            \"0 stars\": 0\n        }\n    },\n    {\n        \"id\": 9,\n        \"provider_location_id\": 4,\n        \"provider_name\": \"Remostart\",\n        \"category_id\": 1,\n        \"category_name\": \"DOCTORS\",\n        \"title\": \"check ear\",\n        \"description\": \"full check for ears\",\n        \"images\": [\n            \"http://127.0.0.1:8000/media/services/97ab6bae18e14db083563f74b83059da.png\",\n            \"http://127.0.0.1:8000/media/services/0419079b9a634b09a0955d006d1a8463.jpg\"\n        ],\n        \"price\": 5000,\n        \"discount_ammount\": 0,\n        \"is_active\": true,\n        \"created_at\": \"2023-12-06T18:00:17.968911Z\",\n        \"updated_at\": \"2023-12-06T18:00:17.968911Z\",\n        \"rates\": {\n            \"avg_rate\": 4.5,\n            \"5 stars\": 1,\n            \"4 stars\": 1,\n            \"3 stars\": 0,\n            \"2 stars\": 0,\n            \"1 stars\": 0,\n            \"0 stars\": 0\n        }\n    }\n]"}],"_postman_id":"69e43e39-53a5-47c3-acf7-a6a15f217cd4"},{"name":"search by services title","id":"5ebc833e-944d-40be-8dc7-49233612e7e3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://127.0.0.1:8000/api/v1/services/by_name/check/","description":"<p>This endpoint retrieves services Compatible with the title provided in the url.</p>\n<p>This endpoint is <strong>for everybody.</strong></p>\n<p>The response will have a status of 200 and a Content-Type of application/json. The response will include an array of objects, each containing details about a service, such as id, provider location, provider name, category, title, description, images, price, discount amount, activity status, creation and update timestamps, and rates. The rates object includes the average rate and the count of ratings for each star level. Here are some examples of the response:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">[\n  {\n    \"id\": 0,\n    \"provider_location_id\": 0,\n    \"provider_name\": \"\",\n    \"category_name\": \"\",\n    \"title\": \"\",\n    \"description\": \"\",\n    \"images\": [\"\"],\n    \"price\": 0,\n    \"created_at\": \"\",\n    \"updated_at\": \"\",\n    \"rates\": {\n      \"avg_rate\": 0,\n      \"5 stars\": 0,\n      \"4 stars\": 0,\n      \"3 stars\": 0,\n      \"2 stars\": 0,\n      \"1 stars\": 0,\n      \"0 stars\": 0\n    }\n  }\n]\n\n</code></pre>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">[\n  {\n    \"id\": 0,\n    \"provider_location_id\": 0,\n    \"provider_name\": \"\",\n    \"category_name\": \"\",\n    \"title\": \"\",\n    \"description\": \"\",\n    \"images\": [\"\"],\n    \"price\": 0,\n    \"created_at\": \"\",\n    \"updated_at\": \"\",\n    \"rates\": {\n      \"avg_rate\": {\"rate__avg\": null},\n      \"5 stars\": 0,\n      \"4 stars\": 0,\n      \"3 stars\": 0,\n      \"2 stars\": 0,\n      \"1 stars\": 0,\n      \"0 stars\": 0\n    }\n  }\n]\n\n</code></pre>\n","urlObject":{"path":["services","by_name","check",""],"host":["http://127.0.0.1:8000/api/v1"],"query":[],"variable":[]}},"response":[{"id":"cdbe9546-8dde-4979-9b2c-cf0d9469eedd","name":"search by services title","originalRequest":{"method":"GET","header":[],"url":"http://127.0.0.1:8000/api/v1/services/by_name/check/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 07 Feb 2024 18:52:36 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.11.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language, Cookie"},{"key":"Allow","value":"OPTIONS, GET"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"6638"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 16,\n        \"provider_location_id\": 3,\n        \"provider_name\": \"Remostart\",\n        \"category_id\": 3,\n        \"category_name\": \"OPTICS\",\n        \"title\": \"check feet\",\n        \"description\": \"full checkup for feet\",\n        \"images\": [\n            \"http://127.0.0.1:8000/media/services/2f9cad3d63d04511be41e56f7bd7d867.png\",\n            \"http://127.0.0.1:8000/media/services/0c49b6a1016a45119a29978001cca2db.jpg\"\n        ],\n        \"price\": 5000,\n        \"discount_ammount\": 0,\n        \"is_active\": true,\n        \"created_at\": \"2023-12-16T07:22:58.160980Z\",\n        \"updated_at\": \"2023-12-16T07:22:58.160980Z\",\n        \"rates\": {\n            \"avg_rate\": 0,\n            \"5 stars\": 0,\n            \"4 stars\": 0,\n            \"3 stars\": 0,\n            \"2 stars\": 0,\n            \"1 stars\": 0,\n            \"0 stars\": 1\n        }\n    },\n    {\n        \"id\": 15,\n        \"provider_location_id\": 6,\n        \"provider_name\": \"our_new_name\",\n        \"category_id\": 3,\n        \"category_name\": \"OPTICS\",\n        \"title\": \"check feet\",\n        \"description\": \"full checkup for feet\",\n        \"images\": [\n            \"http://127.0.0.1:8000/media/services/7af244555a0145e58df600e6a502e236.jpg\",\n            \"http://127.0.0.1:8000/media/services/dad7fcd074b346d1a8332145277b0c75.png\"\n        ],\n        \"price\": 5000,\n        \"discount_ammount\": 0,\n        \"is_active\": true,\n        \"created_at\": \"2023-12-06T18:25:23.686045Z\",\n        \"updated_at\": \"2023-12-06T18:25:08.758752Z\",\n        \"rates\": {\n            \"avg_rate\": 3.5,\n            \"5 stars\": 0,\n            \"4 stars\": 1,\n            \"3 stars\": 1,\n            \"2 stars\": 0,\n            \"1 stars\": 0,\n            \"0 stars\": 0\n        }\n    },\n    {\n        \"id\": 12,\n        \"provider_location_id\": 5,\n        \"provider_name\": \"our_new_name\",\n        \"category_id\": 3,\n        \"category_name\": \"OPTICS\",\n        \"title\": \"general check_up\",\n        \"description\": \"full checkup for body\",\n        \"images\": [\n            \"http://127.0.0.1:8000/media/services/577b2844355a427d8ed5ccbf8f2ceef7.png\",\n            \"http://127.0.0.1:8000/media/services/5234ac7de48242bf851743c201054111.jpg\"\n        ],\n        \"price\": 5000,\n        \"discount_ammount\": 0,\n        \"is_active\": true,\n        \"created_at\": \"2023-12-06T18:10:17.949244Z\",\n        \"updated_at\": \"2024-02-03T14:24:44.869661Z\",\n        \"rates\": {\n            \"avg_rate\": 1,\n            \"5 stars\": 0,\n            \"4 stars\": 0,\n            \"3 stars\": 0,\n            \"2 stars\": 1,\n            \"1 stars\": 0,\n            \"0 stars\": 1\n        }\n    },\n    {\n        \"id\": 17,\n        \"provider_location_id\": 3,\n        \"provider_name\": \"Remostart\",\n        \"category_id\": 3,\n        \"category_name\": \"OPTICS\",\n        \"title\": \"check feet\",\n        \"description\": \"full checkup for feet\",\n        \"images\": [\n            \"hello.png\"\n        ],\n        \"price\": 5000,\n        \"discount_ammount\": 0,\n        \"is_active\": true,\n        \"created_at\": \"2024-01-07T07:21:28.174410Z\",\n        \"updated_at\": \"2024-01-07T07:21:28.174410Z\",\n        \"rates\": {\n            \"avg_rate\": 0,\n            \"5 stars\": 0,\n            \"4 stars\": 0,\n            \"3 stars\": 0,\n            \"2 stars\": 0,\n            \"1 stars\": 0,\n            \"0 stars\": 1\n        }\n    },\n    {\n        \"id\": 20,\n        \"provider_location_id\": 3,\n        \"provider_name\": \"Remostart\",\n        \"category_id\": 3,\n        \"category_name\": \"OPTICS\",\n        \"title\": \"check feet\",\n        \"description\": \"full checkup for feet\",\n        \"images\": [\n            \"http://127.0.0.1:8000/media/services/fc47d2f034764340add89199135bde18.png\",\n            \"http://127.0.0.1:8000/media/services/9f2a7b20616c4e56af8ca6358b2252f7.png\"\n        ],\n        \"price\": 4536,\n        \"discount_ammount\": 0,\n        \"is_active\": true,\n        \"created_at\": \"2024-01-27T07:39:13.804504Z\",\n        \"updated_at\": \"2024-01-27T08:25:58.905121Z\",\n        \"rates\": {\n            \"avg_rate\": 3,\n            \"5 stars\": 0,\n            \"4 stars\": 0,\n            \"3 stars\": 1,\n            \"2 stars\": 0,\n            \"1 stars\": 0,\n            \"0 stars\": 0\n        }\n    },\n    {\n        \"id\": 11,\n        \"provider_location_id\": 5,\n        \"provider_name\": \"our_new_name\",\n        \"category_id\": 2,\n        \"category_name\": \"DENTAL\",\n        \"title\": \"check teeth\",\n        \"description\": \"full check for teeth\",\n        \"images\": [\n            \"http://127.0.0.1:8000/media/services/1d9715f0f683458ab890d7bc5ce88497.png\",\n            \"http://127.0.0.1:8000/media/services/a6d10fa0c09743d5a74a6d7e9da67fd6.jpg\"\n        ],\n        \"price\": 5000,\n        \"discount_ammount\": 0,\n        \"is_active\": true,\n        \"created_at\": \"2023-12-06T18:09:32.693980Z\",\n        \"updated_at\": \"2023-12-06T18:09:02.683909Z\",\n        \"rates\": {\n            \"avg_rate\": 1,\n            \"5 stars\": 0,\n            \"4 stars\": 0,\n            \"3 stars\": 0,\n            \"2 stars\": 0,\n            \"1 stars\": 2,\n            \"0 stars\": 0\n        }\n    },\n    {\n        \"id\": 8,\n        \"provider_location_id\": 3,\n        \"provider_name\": \"Remostart\",\n        \"category_id\": 1,\n        \"category_name\": \"DOCTORS\",\n        \"title\": \"check Endocrine\",\n        \"description\": \"full check for all Endocrine\",\n        \"images\": [\n            \"http://127.0.0.1:8000/media/services/9510dab7a22042839794b2d8d0928440.png\",\n            \"http://127.0.0.1:8000/media/services/5091158aa50a46d7806d21d73f19c575.jpg\"\n        ],\n        \"price\": 5000,\n        \"discount_ammount\": 0,\n        \"is_active\": true,\n        \"created_at\": \"2023-12-06T17:58:37.837090Z\",\n        \"updated_at\": \"2023-12-06T17:58:37.837090Z\",\n        \"rates\": {\n            \"avg_rate\": 4,\n            \"5 stars\": 0,\n            \"4 stars\": 1,\n            \"3 stars\": 0,\n            \"2 stars\": 0,\n            \"1 stars\": 0,\n            \"0 stars\": 0\n        }\n    },\n    {\n        \"id\": 19,\n        \"provider_location_id\": 3,\n        \"provider_name\": \"Remostart\",\n        \"category_id\": 3,\n        \"category_name\": \"OPTICS\",\n        \"title\": \"check feet\",\n        \"description\": \"full checkup for feet\",\n        \"images\": [\n            \"http://127.0.0.1:8000/media/services/c793d9513e1f496786525b8a655fcdc8.png\",\n            \"http://127.0.0.1:8000/media/services/d49359ee674744518a316d1d35982a14.png\"\n        ],\n        \"price\": 4536,\n        \"discount_ammount\": 0,\n        \"is_active\": false,\n        \"created_at\": \"2024-01-27T07:35:11.846128Z\",\n        \"updated_at\": \"2024-01-27T07:35:11.846128Z\",\n        \"rates\": {\n            \"avg_rate\": 0,\n            \"5 stars\": 0,\n            \"4 stars\": 0,\n            \"3 stars\": 0,\n            \"2 stars\": 0,\n            \"1 stars\": 0,\n            \"0 stars\": 0\n        }\n    },\n    {\n        \"id\": 13,\n        \"provider_location_id\": 6,\n        \"provider_name\": \"our_new_name\",\n        \"category_id\": 3,\n        \"category_name\": \"OPTICS\",\n        \"title\": \"check kidney\",\n        \"description\": \"full checkup for kidnys\",\n        \"images\": [\n            \"http://127.0.0.1:8000/media/services/d58a5d34741249598a0ae68ed3429599.png\",\n            \"http://127.0.0.1:8000/media/services/5f33816bcddb447f8c9889decbcba4d2.jpg\"\n        ],\n        \"price\": 5000,\n        \"discount_ammount\": 0,\n        \"is_active\": true,\n        \"created_at\": \"2023-12-06T18:11:33.144963Z\",\n        \"updated_at\": \"2023-12-06T18:11:33.144963Z\",\n        \"rates\": {\n            \"avg_rate\": 4,\n            \"5 stars\": 1,\n            \"4 stars\": 0,\n            \"3 stars\": 1,\n            \"2 stars\": 0,\n            \"1 stars\": 0,\n            \"0 stars\": 0\n        }\n    },\n    {\n        \"id\": 10,\n        \"provider_location_id\": 4,\n        \"provider_name\": \"Remostart\",\n        \"category_id\": 3,\n        \"category_name\": \"OPTICS\",\n        \"title\": \"check eye\",\n        \"description\": \"full check for eyes\",\n        \"images\": [\n            \"http://127.0.0.1:8000/media/services/51e707450b0547a3b4386a83c0d38239.png\",\n            \"http://127.0.0.1:8000/media/services/d611dadbc7634debb3ba4b67fccc4a0c.jpg\"\n        ],\n        \"price\": 5000,\n        \"discount_ammount\": 0,\n        \"is_active\": true,\n        \"created_at\": \"2023-12-06T18:07:33.810552Z\",\n        \"updated_at\": \"2023-12-06T18:07:33.810552Z\",\n        \"rates\": {\n            \"avg_rate\": 1,\n            \"5 stars\": 0,\n            \"4 stars\": 0,\n            \"3 stars\": 0,\n            \"2 stars\": 1,\n            \"1 stars\": 0,\n            \"0 stars\": 1\n        }\n    },\n    {\n        \"id\": 9,\n        \"provider_location_id\": 4,\n        \"provider_name\": \"Remostart\",\n        \"category_id\": 1,\n        \"category_name\": \"DOCTORS\",\n        \"title\": \"check ear\",\n        \"description\": \"full check for ears\",\n        \"images\": [\n            \"http://127.0.0.1:8000/media/services/97ab6bae18e14db083563f74b83059da.png\",\n            \"http://127.0.0.1:8000/media/services/0419079b9a634b09a0955d006d1a8463.jpg\"\n        ],\n        \"price\": 5000,\n        \"discount_ammount\": 0,\n        \"is_active\": true,\n        \"created_at\": \"2023-12-06T18:00:17.968911Z\",\n        \"updated_at\": \"2023-12-06T18:00:17.968911Z\",\n        \"rates\": {\n            \"avg_rate\": 4.5,\n            \"5 stars\": 1,\n            \"4 stars\": 1,\n            \"3 stars\": 0,\n            \"2 stars\": 0,\n            \"1 stars\": 0,\n            \"0 stars\": 0\n        }\n    },\n    {\n        \"id\": 7,\n        \"provider_location_id\": 3,\n        \"provider_name\": \"Remostart\",\n        \"category_id\": 1,\n        \"category_name\": \"DOCTORS\",\n        \"title\": \"check stomach\",\n        \"description\": \"full check for stomach\",\n        \"images\": [\n            \"http://127.0.0.1:8000/media/services/09d7260f9359477ba770a6fc4492965f.png\",\n            \"http://127.0.0.1:8000/media/services/622d0eedc29b48f99709830f282cdf0f.jpg\"\n        ],\n        \"price\": 5000,\n        \"discount_ammount\": 0,\n        \"is_active\": true,\n        \"created_at\": \"2023-12-16T10:44:45.921051Z\",\n        \"updated_at\": \"2023-12-16T09:49:54.929895Z\",\n        \"rates\": {\n            \"avg_rate\": 4,\n            \"5 stars\": 1,\n            \"4 stars\": 0,\n            \"3 stars\": 1,\n            \"2 stars\": 0,\n            \"1 stars\": 0,\n            \"0 stars\": 0\n        }\n    }\n]"}],"_postman_id":"5ebc833e-944d-40be-8dc7-49233612e7e3"},{"name":"search services by distance","id":"8bff5940-8d74-4f7f-95c4-3c8e0516a850","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://127.0.0.1:8000/api/v1/services/distance/check/-116.234234/35.345345/","description":"<p>This endpoint makes an HTTP GET request to check the distance service with the provided latitude and longitude parameters.</p>\n<p>The last execution of this request returned a 404 status with a JSON response containing a message key.</p>\n","urlObject":{"path":["services","distance","check","-116.234234","35.345345",""],"host":["http://127.0.0.1:8000/api/v1"],"query":[],"variable":[]}},"response":[{"id":"4a950183-c535-4b10-95ba-8613348b4232","name":"search services by distance","originalRequest":{"method":"GET","header":[],"url":"http://127.0.0.1:8000/api/v1/services/distance/check/92.365/135.654/"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 07 Feb 2024 18:55:54 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.11.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language, Cookie"},{"key":"Allow","value":"GET, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"60"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"No services with this search term in this area\"\n}"},{"id":"aa98fd95-8ced-4e70-9b45-8d3858bff39f","name":"search services by distance","originalRequest":{"method":"GET","header":[],"url":"http://127.0.0.1:8000/api/v1/services/distance/check/-116.234234/35.345345/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 07 Feb 2024 18:56:41 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.11.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language, Cookie"},{"key":"Allow","value":"GET, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"3250"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 7,\n        \"provider_location_id\": 3,\n        \"provider_name\": \"Remostart\",\n        \"category_id\": 1,\n        \"category_name\": \"DOCTORS\",\n        \"title\": \"check stomach\",\n        \"description\": \"full check for stomach\",\n        \"images\": [\n            \"http://127.0.0.1:8000/media/services/09d7260f9359477ba770a6fc4492965f.png\",\n            \"http://127.0.0.1:8000/media/services/622d0eedc29b48f99709830f282cdf0f.jpg\"\n        ],\n        \"price\": 5000,\n        \"discount_ammount\": 0,\n        \"is_active\": true,\n        \"created_at\": \"2023-12-16T10:44:45.921051Z\",\n        \"updated_at\": \"2023-12-16T09:49:54.929895Z\",\n        \"rates\": {\n            \"avg_rate\": 4,\n            \"5 stars\": 1,\n            \"4 stars\": 0,\n            \"3 stars\": 1,\n            \"2 stars\": 0,\n            \"1 stars\": 0,\n            \"0 stars\": 0\n        }\n    },\n    {\n        \"id\": 8,\n        \"provider_location_id\": 3,\n        \"provider_name\": \"Remostart\",\n        \"category_id\": 1,\n        \"category_name\": \"DOCTORS\",\n        \"title\": \"check Endocrine\",\n        \"description\": \"full check for all Endocrine\",\n        \"images\": [\n            \"http://127.0.0.1:8000/media/services/9510dab7a22042839794b2d8d0928440.png\",\n            \"http://127.0.0.1:8000/media/services/5091158aa50a46d7806d21d73f19c575.jpg\"\n        ],\n        \"price\": 5000,\n        \"discount_ammount\": 0,\n        \"is_active\": true,\n        \"created_at\": \"2023-12-06T17:58:37.837090Z\",\n        \"updated_at\": \"2023-12-06T17:58:37.837090Z\",\n        \"rates\": {\n            \"avg_rate\": 4,\n            \"5 stars\": 0,\n            \"4 stars\": 1,\n            \"3 stars\": 0,\n            \"2 stars\": 0,\n            \"1 stars\": 0,\n            \"0 stars\": 0\n        }\n    },\n    {\n        \"id\": 16,\n        \"provider_location_id\": 3,\n        \"provider_name\": \"Remostart\",\n        \"category_id\": 3,\n        \"category_name\": \"OPTICS\",\n        \"title\": \"check feet\",\n        \"description\": \"full checkup for feet\",\n        \"images\": [\n            \"http://127.0.0.1:8000/media/services/2f9cad3d63d04511be41e56f7bd7d867.png\",\n            \"http://127.0.0.1:8000/media/services/0c49b6a1016a45119a29978001cca2db.jpg\"\n        ],\n        \"price\": 5000,\n        \"discount_ammount\": 0,\n        \"is_active\": true,\n        \"created_at\": \"2023-12-16T07:22:58.160980Z\",\n        \"updated_at\": \"2023-12-16T07:22:58.160980Z\",\n        \"rates\": {\n            \"avg_rate\": 0,\n            \"5 stars\": 0,\n            \"4 stars\": 0,\n            \"3 stars\": 0,\n            \"2 stars\": 0,\n            \"1 stars\": 0,\n            \"0 stars\": 1\n        }\n    },\n    {\n        \"id\": 17,\n        \"provider_location_id\": 3,\n        \"provider_name\": \"Remostart\",\n        \"category_id\": 3,\n        \"category_name\": \"OPTICS\",\n        \"title\": \"check feet\",\n        \"description\": \"full checkup for feet\",\n        \"images\": [\n            \"hello.png\"\n        ],\n        \"price\": 5000,\n        \"discount_ammount\": 0,\n        \"is_active\": true,\n        \"created_at\": \"2024-01-07T07:21:28.174410Z\",\n        \"updated_at\": \"2024-01-07T07:21:28.174410Z\",\n        \"rates\": {\n            \"avg_rate\": 0,\n            \"5 stars\": 0,\n            \"4 stars\": 0,\n            \"3 stars\": 0,\n            \"2 stars\": 0,\n            \"1 stars\": 0,\n            \"0 stars\": 1\n        }\n    },\n    {\n        \"id\": 19,\n        \"provider_location_id\": 3,\n        \"provider_name\": \"Remostart\",\n        \"category_id\": 3,\n        \"category_name\": \"OPTICS\",\n        \"title\": \"check feet\",\n        \"description\": \"full checkup for feet\",\n        \"images\": [\n            \"http://127.0.0.1:8000/media/services/c793d9513e1f496786525b8a655fcdc8.png\",\n            \"http://127.0.0.1:8000/media/services/d49359ee674744518a316d1d35982a14.png\"\n        ],\n        \"price\": 4536,\n        \"discount_ammount\": 0,\n        \"is_active\": false,\n        \"created_at\": \"2024-01-27T07:35:11.846128Z\",\n        \"updated_at\": \"2024-01-27T07:35:11.846128Z\",\n        \"rates\": {\n            \"avg_rate\": 0,\n            \"5 stars\": 0,\n            \"4 stars\": 0,\n            \"3 stars\": 0,\n            \"2 stars\": 0,\n            \"1 stars\": 0,\n            \"0 stars\": 0\n        }\n    },\n    {\n        \"id\": 20,\n        \"provider_location_id\": 3,\n        \"provider_name\": \"Remostart\",\n        \"category_id\": 3,\n        \"category_name\": \"OPTICS\",\n        \"title\": \"check feet\",\n        \"description\": \"full checkup for feet\",\n        \"images\": [\n            \"http://127.0.0.1:8000/media/services/fc47d2f034764340add89199135bde18.png\",\n            \"http://127.0.0.1:8000/media/services/9f2a7b20616c4e56af8ca6358b2252f7.png\"\n        ],\n        \"price\": 4536,\n        \"discount_ammount\": 0,\n        \"is_active\": true,\n        \"created_at\": \"2024-01-27T07:39:13.804504Z\",\n        \"updated_at\": \"2024-01-27T08:25:58.905121Z\",\n        \"rates\": {\n            \"avg_rate\": 3,\n            \"5 stars\": 0,\n            \"4 stars\": 0,\n            \"3 stars\": 1,\n            \"2 stars\": 0,\n            \"1 stars\": 0,\n            \"0 stars\": 0\n        }\n    }\n]"}],"_postman_id":"8bff5940-8d74-4f7f-95c4-3c8e0516a850"}],"id":"3b530f8d-9574-4f6d-ba90-3dd7294fd1ad","_postman_id":"3b530f8d-9574-4f6d-ba90-3dd7294fd1ad","description":""},{"name":"specific service","item":[{"name":"get","id":"f7cdb80f-b32f-44e7-822b-5ca8c0054f55","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MzMzNTU0LCJpYXQiOjE3MDczMzIzNTQsImp0aSI6Ijk3MmQ2ZjNiYTdhNjQ2ZDVhODAyNjVhMDQxZDYxNDQwIiwidXNlcl9pZCI6MjN9.LZIUflDFnGdPjsdqw0W59Aixx4toPnDNewxykBNqVUY","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/services/12/","description":"<p>This endpoint makes an HTTP GET request to retrieve information about a specific service. The response will be in JSON format and will include details such as the service ID, provider location ID, provider name, category ID, category name, title, description, images, price, discount amount, activity status, creation date, update date, and rates. The rates will include the average rate and the distribution of ratings from 5 stars to 0 stars.</p>\n<p>This endpoint <strong>for authenticated users only.</strong></p>\n<p>Example response:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">[\n    {\n        \"id\": 0,\n        \"provider_location_id\": 0,\n        \"provider_name\": \"\",\n        \"category_id\": 0,\n        \"category_name\": \"\",\n        \"title\": \"\",\n        \"description\": \"\",\n        \"images\": [\"\"],\n        \"price\": 0,\n        \"discount_ammount\": 0,\n        \"is_active\": true,\n        \"created_at\": \"\",\n        \"updated_at\": \"\",\n        \"rates\": {\n            \"avg_rate\": 0,\n            \"5 stars\": 0,\n            \"4 stars\": 0,\n            \"3 stars\": 0,\n            \"2 stars\": 0,\n            \"1 stars\": 0,\n            \"0 stars\": 0\n        }\n    }\n]\n\n</code></pre>\n","urlObject":{"path":["services","12",""],"host":["http://127.0.0.1:8000/api/v1"],"query":[],"variable":[]}},"response":[{"id":"6123e6c7-5639-4a07-93c3-484cfd6ca546","name":"get","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MzMzNTU0LCJpYXQiOjE3MDczMzIzNTQsImp0aSI6Ijk3MmQ2ZjNiYTdhNjQ2ZDVhODAyNjVhMDQxZDYxNDQwIiwidXNlcl9pZCI6MjN9.LZIUflDFnGdPjsdqw0W59Aixx4toPnDNewxykBNqVUY","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/services/12/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 07 Feb 2024 19:06:18 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.11.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language"},{"key":"Allow","value":"GET, PUT, PATCH, DELETE, HEAD, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"572"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 12,\n        \"provider_location_id\": 5,\n        \"provider_name\": \"our_new_name\",\n        \"category_id\": 3,\n        \"category_name\": \"OPTICS\",\n        \"title\": \"general check_up\",\n        \"description\": \"full checkup for body\",\n        \"images\": [\n            \"http://127.0.0.1:8000/media/services/577b2844355a427d8ed5ccbf8f2ceef7.png\",\n            \"http://127.0.0.1:8000/media/services/5234ac7de48242bf851743c201054111.jpg\"\n        ],\n        \"price\": 5000,\n        \"discount_ammount\": 0,\n        \"is_active\": true,\n        \"created_at\": \"2023-12-06T18:10:17.949244Z\",\n        \"updated_at\": \"2024-02-03T14:24:44.869661Z\",\n        \"rates\": {\n            \"avg_rate\": 1,\n            \"5 stars\": 0,\n            \"4 stars\": 0,\n            \"3 stars\": 0,\n            \"2 stars\": 1,\n            \"1 stars\": 0,\n            \"0 stars\": 1\n        }\n    }\n]"}],"_postman_id":"f7cdb80f-b32f-44e7-822b-5ca8c0054f55"},{"name":"delete","id":"e3aef605-cae8-4e29-a5ef-d5aa0726f759","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA2OTcxNDU5LCJpYXQiOjE3MDY5NzAyNTksImp0aSI6IjUzNGZhN2YzMDFlZDQwZjRiYzU3ODU4MDRmNDBkZDkxIiwidXNlcl9pZCI6MzB9.12RAdNQH2EJ0Y2cNzlC0RdK8p1JO58OHoJj8cIj7JNc","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/api/v1/services/22/","description":"<p>This endpoint is used to delete a specific service. Upon successful deletion, the server returns a status code of 204 with a Content-Type of text/xml. The response body is empty.</p>\n<p>This endpoint for admins &amp; service provider</p>\n","urlObject":{"path":["services","22",""],"host":["http://127.0.0.1:8000/api/v1"],"query":[],"variable":[]}},"response":[{"id":"3c6226c3-13d4-4cd5-ba93-f3c8b8e064fb","name":"Untitled Response","originalRequest":{"method":"DELETE","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzAyMTkyMjg5LCJpYXQiOjE3MDIxOTEwODksImp0aSI6ImJhMGRiODRkZDNmMzQwNmZiNzYzODQ5MDJiNjgxYmUyIiwidXNlcl9pZCI6MX0.eDtaWzQ6CAr8vVh7zIbyrLJ4r7JZcINcbuK8Wt-cUY0"},{"key":"","value":"","type":"text"}],"url":{"raw":"http://127.0.0.1:8000/api/v1/products/:id/","host":["http://127.0.0.1:8000/api/v1"],"path":["products",":id",""],"variable":[{"key":"id","value":""}]}},"status":"No Content","code":204,"_postman_previewlanguage":"text","header":[],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"e3aef605-cae8-4e29-a5ef-d5aa0726f759"},{"name":"create","id":"7cf144b8-f17c-4dd3-b844-5a917e298ff9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MzI0MDI5LCJpYXQiOjE3MDczMjI4MjksImp0aSI6ImIxYjBlNmY1MDk0MzQ0MTE5ZWQxODNhMmEyYTNkYTMwIiwidXNlcl9pZCI6MX0.TM-9yq6XARpHa-GtMVSoXaQ06F8ZViCaZKYs_A1pwCM","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"provider_location","value":"1","type":"text"},{"key":"quantity","value":"20","type":"text"},{"key":"ar_title","value":"حليب أطفال","type":"text"},{"key":"en_title","value":"Swisslac","type":"text"},{"key":"en_description","value":"powder milk for babies","type":"text"},{"key":"ar_description","value":"حليب مجفف للأطفال","type":"text"},{"key":"price","value":"558.3","type":"text"},{"key":"image","type":"file","fileNotInWorkingDirectoryWarning":"This file isn't in your working directory. Teammates you share this request with won't be able to use this file. To make collaboration easier you can setup your working directory in Settings.","filesNotInWorkingDirectory":["/C:/Users/HP/Desktop/docerkfile.png"],"src":"/C:/Users/HP/Desktop/docerkfile.png"},{"key":"category","value":"1","type":"text"}]},"url":"http://127.0.0.1:8000/api/v1/services/","description":"<h3 id=\"add-a-new-service\">Add a New Service</h3>\n<p>This endpoint allows you to add a new service by making an HTTP POST request to the specified URL.</p>\n<p><strong>This endpoint is for service providers.</strong></p>\n<h4 id=\"request-body\">Request Body</h4>\n<ul>\n<li><code>provider_location</code> (text): The location of the service provider.</li>\n<li><code>quantity</code> (text): The quantity of the service available.</li>\n<li><code>ar_title</code> (text): The title of the service in Arabic.</li>\n<li><code>en_title</code> (text): The title of the service in English.</li>\n<li><code>en_description</code> (text): The description of the service in English.</li>\n<li><code>ar_description</code> (text): The description of the service in Arabic.</li>\n<li><code>price</code> (text): The price of the service.</li>\n<li><code>image</code> (file): The image of the service.</li>\n<li><code>category</code> (text): The category of the service.</li>\n</ul>\n<h4 id=\"response\">Response</h4>\n<ul>\n<li>Status: 201 Created</li>\n<li>Content-Type: application/json</li>\n<li><code>id</code> (number): The ID of the newly added service.</li>\n<li><code>provider_location_id</code> (number): The ID of the service provider's location.</li>\n<li><code>provider_name</code> (string): The name of the service provider.</li>\n<li><code>category_title</code> (string): The title of the service category.</li>\n<li><code>ar_title</code> (string): The title of the service in Arabic.</li>\n<li><code>en_title</code> (string): The title of the service in English.</li>\n<li><code>ar_description</code> (string): The description of the service in Arabic.</li>\n<li><code>en_description</code> (string): The description of the service in English.</li>\n<li><code>images</code> (array): An array of images associated with the service.</li>\n<li><code>price</code> (number): The price of the service.</li>\n<li><code>discount_ammount</code> (number): The discount amount, if applicable.</li>\n<li><code>created_at</code> (string): The timestamp when the service was created.</li>\n<li><code>updated_at</code> (string): The timestamp when the service was last updated.</li>\n</ul>\n<h4 id=\"example-response\">Example Response</h4>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"id\": 0,\n    \"provider_location_id\": 0,\n    \"provider_name\": \"\",\n    \"category_title\": \"\",\n    \"ar_title\": \"\",\n    \"en_title\": \"\",\n    \"ar_description\": \"\",\n    \"en_description\": \"\",\n    \"images\": [\"\"],\n    \"price\": 0,\n    \"discount_ammount\": 0,\n    \"created_at\": \"\",\n    \"updated_at\": \"\"\n}\n\n</code></pre>\n","urlObject":{"path":["services",""],"host":["http://127.0.0.1:8000/api/v1"],"query":[],"variable":[]}},"response":[{"id":"09da458e-f449-4658-8749-b94be6ea9339","name":"create","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MzI0MDI5LCJpYXQiOjE3MDczMjI4MjksImp0aSI6ImIxYjBlNmY1MDk0MzQ0MTE5ZWQxODNhMmEyYTNkYTMwIiwidXNlcl9pZCI6MX0.TM-9yq6XARpHa-GtMVSoXaQ06F8ZViCaZKYs_A1pwCM","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"provider_location","value":"1","type":"text"},{"key":"quantity","value":"20","type":"text"},{"key":"ar_title","value":"حليب أطفال","type":"text"},{"key":"en_title","value":"Swisslac","type":"text"},{"key":"en_description","value":"powder milk for babies","type":"text"},{"key":"ar_description","value":"حليب مجفف للأطفال","type":"text"},{"key":"price","value":"558.3","type":"text"},{"key":"image","type":"file","fileNotInWorkingDirectoryWarning":"This file isn't in your working directory. Teammates you share this request with won't be able to use this file. To make collaboration easier you can setup your working directory in Settings.","filesNotInWorkingDirectory":["/C:/Users/HP/Desktop/docerkfile.png"],"src":"/C:/Users/HP/Desktop/docerkfile.png"},{"key":"category","value":"1","type":"text"}]},"url":"http://127.0.0.1:8000/api/v1/services/"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 07 Feb 2024 16:37:30 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.9.10"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language"},{"key":"Allow","value":"POST, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"441"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 1,\n    \"provider_location_id\": 1,\n    \"provider_name\": \"google\",\n    \"category_title\": \"PHARMACY\",\n    \"ar_title\": \"حليب أطفال\",\n    \"en_title\": \"Swisslac\",\n    \"ar_description\": \"حليب مجفف للأطفال\",\n    \"en_description\": \"powder milk for babies\",\n    \"images\": [\n        \"http://127.0.0.1:8000/media/services/7b64fe621c7146c78218bf6cb7e8abe7.png\"\n    ],\n    \"price\": 558.3,\n    \"discount_ammount\": 0,\n    \"created_at\": \"2024-02-07T19:37:30.420160\",\n    \"updated_at\": \"2024-02-07T19:37:30.420160\"\n}"}],"_postman_id":"7cf144b8-f17c-4dd3-b844-5a917e298ff9"},{"name":"update","id":"ee78ad1a-6882-4a83-8922-e79769d26e32","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MzM0MDQ0LCJpYXQiOjE3MDczMzI4NDQsImp0aSI6ImI0ZGExMDFiMjhlMDQ1ZTlhZTc5YWM1ZWEzYWNlY2JhIiwidXNlcl9pZCI6MzB9.gV24mHE4V7wSqBWwZxp33bhXqvA69KqQikslNxRKAt4","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"en_title\": \"general check_up\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"http://127.0.0.1:8000/api/v1/services/12/","description":"<h3 id=\"update-service-details\">Update Service Details</h3>\n<p>This endpoint is used to update the details of a specific service.</p>\n<p><strong>This endpoint for authenticated admins &amp; service providers only.</strong></p>\n<h4 id=\"request\">Request</h4>\n<p>The HTTP PATCH request is sent to <code>http://127.0.0.1:8000/api/v1/services/12/</code> with the following payload in the raw request body type:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"en_title\": \"\"\n}\n\n</code></pre>\n<h4 id=\"response\">Response</h4>\n<ul>\n<li>Status: 200</li>\n<li>Content-Type: application/json</li>\n</ul>\n<p>The response will contain the updated details of the service. An example response is as follows:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"id\": 0,\n    \"provider_location_id\": 0,\n    \"provider_name\": \"\",\n    \"category_id\": 0,\n    \"category_name\": \"\",\n    \"title\": \"\",\n    \"description\": \"\",\n    \"images\": [\"\"],\n    \"price\": 0,\n    \"discount_ammount\": 0,\n    \"is_active\": true,\n    \"created_at\": \"\",\n    \"updated_at\": \"\",\n    \"rates\": {\n        \"avg_rate\": 0,\n        \"5 stars\": 0,\n        \"4 stars\": 0,\n        \"3 stars\": 0,\n        \"2 stars\": 0,\n        \"1 stars\": 0,\n        \"0 stars\": 0\n    }\n}\n\n</code></pre>\n<p>The response will include the updated details of the service, such as the service ID, provider details, category, title, description, images, price, discount amount, activity status, creation and update timestamps, and rates.</p>\n","urlObject":{"path":["services","12",""],"host":["http://127.0.0.1:8000/api/v1"],"query":[],"variable":[]}},"response":[{"id":"c6db3416-22d0-4989-96ba-2badde1b1253","name":"update","originalRequest":{"method":"PATCH","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MzM0MDQ0LCJpYXQiOjE3MDczMzI4NDQsImp0aSI6ImI0ZGExMDFiMjhlMDQ1ZTlhZTc5YWM1ZWEzYWNlY2JhIiwidXNlcl9pZCI6MzB9.gV24mHE4V7wSqBWwZxp33bhXqvA69KqQikslNxRKAt4","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"en_title\": \"general check_up\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"http://127.0.0.1:8000/api/v1/services/12/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 07 Feb 2024 19:07:38 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.11.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language"},{"key":"Allow","value":"GET, PUT, PATCH, DELETE, HEAD, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"570"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 12,\n    \"provider_location_id\": 5,\n    \"provider_name\": \"our_new_name\",\n    \"category_id\": 3,\n    \"category_name\": \"OPTICS\",\n    \"title\": \"general check_up\",\n    \"description\": \"full checkup for body\",\n    \"images\": [\n        \"http://127.0.0.1:8000/media/services/577b2844355a427d8ed5ccbf8f2ceef7.png\",\n        \"http://127.0.0.1:8000/media/services/5234ac7de48242bf851743c201054111.jpg\"\n    ],\n    \"price\": 5000,\n    \"discount_ammount\": 0,\n    \"is_active\": true,\n    \"created_at\": \"2023-12-06T18:10:17.949244Z\",\n    \"updated_at\": \"2024-02-07T19:07:38.024922Z\",\n    \"rates\": {\n        \"avg_rate\": 1,\n        \"5 stars\": 0,\n        \"4 stars\": 0,\n        \"3 stars\": 0,\n        \"2 stars\": 1,\n        \"1 stars\": 0,\n        \"0 stars\": 1\n    }\n}"}],"_postman_id":"ee78ad1a-6882-4a83-8922-e79769d26e32"}],"id":"59a581d4-638f-4985-95ca-0fb54ad24c3b","_postman_id":"59a581d4-638f-4985-95ca-0fb54ad24c3b","description":""},{"name":"all services","id":"9b848056-8732-45ad-a14a-fde44986c9d7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"http://127.0.0.1:8000/api/v1/services/all/","description":"<p>This endpoint retrieves a list of all available services.</p>\n<p><strong>This endpoint for everybody (no authentication needed).</strong></p>\n<p>The response will be a JSON array containing objects with the following properties:</p>\n<ul>\n<li>id (number): The unique identifier for the service</li>\n<li>provider_location_id (number): The unique identifier for the provider's location</li>\n<li>provider_name (string): The name of the service provider</li>\n<li>category_id (number): The unique identifier for the category of the service</li>\n<li>category_name (string): The name of the category</li>\n<li>title (string): The title of the service</li>\n<li>description (string): The description of the service</li>\n<li>images (array): An array of strings representing the images related to the service</li>\n<li>price (number): The price of the service</li>\n<li>discount_ammount (number): The discount amount, if applicable</li>\n<li>is_active (boolean): Indicates whether the service is active</li>\n<li>created_at (string): The timestamp of when the service was created</li>\n<li>updated_at (string): The timestamp of when the service was last updated</li>\n<li>rates (object): An object containing the average rate and individual star ratings for the service</li>\n</ul>\n<p>Example response:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">[\n    {\n        \"id\": 0,\n        \"provider_location_id\": 0,\n        \"provider_name\": \"\",\n        \"category_name\": \"\",\n        \"title\": \"\",\n        \"description\": \"\",\n        \"images\": [\"\"],\n        \"price\": 0,\n        \"created_at\": \"\",\n        \"updated_at\": \"\",\n        \"rates\": {\n            \"avg_rate\": {\n                \"rate__avg\": null\n            },\n            \"5 stars\": 0,\n            \"4 stars\": 0,\n            \"3 stars\": 0,\n            \"2 stars\": 0,\n            \"1 stars\": 0,\n            \"0 stars\": 0\n        }\n    }\n]\n\n</code></pre>\n","urlObject":{"path":["services","all",""],"host":["http://127.0.0.1:8000/api/v1"],"query":[],"variable":[]}},"response":[{"id":"5be9b175-1fd5-4f32-8553-e9d39f16b7d8","name":"all services","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"http://127.0.0.1:8000/api/v1/services/all/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 07 Feb 2024 18:58:26 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.11.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language, Cookie"},{"key":"Allow","value":"GET, HEAD, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"7752"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 18,\n        \"provider_location_id\": 5,\n        \"provider_name\": \"our_new_name\",\n        \"category_id\": 4,\n        \"category_name\": \"Nutritionist\",\n        \"title\": \"services for collage students\",\n        \"description\": \"services for collage students about internet and electricty\",\n        \"images\": [\n            \"http://127.0.0.1:8000/media/services/502d370c303446a3be093e2cef24f220.png\",\n            \"http://127.0.0.1:8000/media/services/f46762ba74ca41b79001da648dc9212c.png\"\n        ],\n        \"price\": 565.99,\n        \"discount_ammount\": 20,\n        \"is_active\": true,\n        \"created_at\": \"2024-01-09T10:09:19.845535Z\",\n        \"updated_at\": \"2024-01-09T10:09:19.845535Z\",\n        \"rates\": {\n            \"avg_rate\": 0,\n            \"5 stars\": 0,\n            \"4 stars\": 0,\n            \"3 stars\": 0,\n            \"2 stars\": 0,\n            \"1 stars\": 0,\n            \"0 stars\": 0\n        }\n    },\n    {\n        \"id\": 16,\n        \"provider_location_id\": 3,\n        \"provider_name\": \"Remostart\",\n        \"category_id\": 3,\n        \"category_name\": \"OPTICS\",\n        \"title\": \"check feet\",\n        \"description\": \"full checkup for feet\",\n        \"images\": [\n            \"http://127.0.0.1:8000/media/services/2f9cad3d63d04511be41e56f7bd7d867.png\",\n            \"http://127.0.0.1:8000/media/services/0c49b6a1016a45119a29978001cca2db.jpg\"\n        ],\n        \"price\": 5000,\n        \"discount_ammount\": 0,\n        \"is_active\": true,\n        \"created_at\": \"2023-12-16T07:22:58.160980Z\",\n        \"updated_at\": \"2023-12-16T07:22:58.160980Z\",\n        \"rates\": {\n            \"avg_rate\": 0,\n            \"5 stars\": 0,\n            \"4 stars\": 0,\n            \"3 stars\": 0,\n            \"2 stars\": 0,\n            \"1 stars\": 0,\n            \"0 stars\": 1\n        }\n    },\n    {\n        \"id\": 15,\n        \"provider_location_id\": 6,\n        \"provider_name\": \"our_new_name\",\n        \"category_id\": 3,\n        \"category_name\": \"OPTICS\",\n        \"title\": \"check feet\",\n        \"description\": \"full checkup for feet\",\n        \"images\": [\n            \"http://127.0.0.1:8000/media/services/7af244555a0145e58df600e6a502e236.jpg\",\n            \"http://127.0.0.1:8000/media/services/dad7fcd074b346d1a8332145277b0c75.png\"\n        ],\n        \"price\": 5000,\n        \"discount_ammount\": 0,\n        \"is_active\": true,\n        \"created_at\": \"2023-12-06T18:25:23.686045Z\",\n        \"updated_at\": \"2023-12-06T18:25:08.758752Z\",\n        \"rates\": {\n            \"avg_rate\": 3.5,\n            \"5 stars\": 0,\n            \"4 stars\": 1,\n            \"3 stars\": 1,\n            \"2 stars\": 0,\n            \"1 stars\": 0,\n            \"0 stars\": 0\n        }\n    },\n    {\n        \"id\": 21,\n        \"provider_location_id\": 5,\n        \"provider_name\": \"our_new_name\",\n        \"category_id\": 1,\n        \"category_name\": \"DOCTORS\",\n        \"title\": \"Dry milk\",\n        \"description\": \"Dry milk for babies\",\n        \"images\": [\n            \"http://127.0.0.1:8000/media/services/4682b2c0ee8c44e5896ddbba11d003c3.jpg\"\n        ],\n        \"price\": 55.39,\n        \"discount_ammount\": 0,\n        \"is_active\": true,\n        \"created_at\": \"2024-02-01T15:11:55.421578Z\",\n        \"updated_at\": \"2024-02-03T14:40:00.934699Z\",\n        \"rates\": {\n            \"avg_rate\": 2,\n            \"5 stars\": 0,\n            \"4 stars\": 0,\n            \"3 stars\": 0,\n            \"2 stars\": 1,\n            \"1 stars\": 0,\n            \"0 stars\": 0\n        }\n    },\n    {\n        \"id\": 12,\n        \"provider_location_id\": 5,\n        \"provider_name\": \"our_new_name\",\n        \"category_id\": 3,\n        \"category_name\": \"OPTICS\",\n        \"title\": \"general check_up\",\n        \"description\": \"full checkup for body\",\n        \"images\": [\n            \"http://127.0.0.1:8000/media/services/577b2844355a427d8ed5ccbf8f2ceef7.png\",\n            \"http://127.0.0.1:8000/media/services/5234ac7de48242bf851743c201054111.jpg\"\n        ],\n        \"price\": 5000,\n        \"discount_ammount\": 0,\n        \"is_active\": true,\n        \"created_at\": \"2023-12-06T18:10:17.949244Z\",\n        \"updated_at\": \"2024-02-03T14:24:44.869661Z\",\n        \"rates\": {\n            \"avg_rate\": 1,\n            \"5 stars\": 0,\n            \"4 stars\": 0,\n            \"3 stars\": 0,\n            \"2 stars\": 1,\n            \"1 stars\": 0,\n            \"0 stars\": 1\n        }\n    },\n    {\n        \"id\": 17,\n        \"provider_location_id\": 3,\n        \"provider_name\": \"Remostart\",\n        \"category_id\": 3,\n        \"category_name\": \"OPTICS\",\n        \"title\": \"check feet\",\n        \"description\": \"full checkup for feet\",\n        \"images\": [\n            \"hello.png\"\n        ],\n        \"price\": 5000,\n        \"discount_ammount\": 0,\n        \"is_active\": true,\n        \"created_at\": \"2024-01-07T07:21:28.174410Z\",\n        \"updated_at\": \"2024-01-07T07:21:28.174410Z\",\n        \"rates\": {\n            \"avg_rate\": 0,\n            \"5 stars\": 0,\n            \"4 stars\": 0,\n            \"3 stars\": 0,\n            \"2 stars\": 0,\n            \"1 stars\": 0,\n            \"0 stars\": 1\n        }\n    },\n    {\n        \"id\": 20,\n        \"provider_location_id\": 3,\n        \"provider_name\": \"Remostart\",\n        \"category_id\": 3,\n        \"category_name\": \"OPTICS\",\n        \"title\": \"check feet\",\n        \"description\": \"full checkup for feet\",\n        \"images\": [\n            \"http://127.0.0.1:8000/media/services/fc47d2f034764340add89199135bde18.png\",\n            \"http://127.0.0.1:8000/media/services/9f2a7b20616c4e56af8ca6358b2252f7.png\"\n        ],\n        \"price\": 4536,\n        \"discount_ammount\": 0,\n        \"is_active\": true,\n        \"created_at\": \"2024-01-27T07:39:13.804504Z\",\n        \"updated_at\": \"2024-01-27T08:25:58.905121Z\",\n        \"rates\": {\n            \"avg_rate\": 3,\n            \"5 stars\": 0,\n            \"4 stars\": 0,\n            \"3 stars\": 1,\n            \"2 stars\": 0,\n            \"1 stars\": 0,\n            \"0 stars\": 0\n        }\n    },\n    {\n        \"id\": 11,\n        \"provider_location_id\": 5,\n        \"provider_name\": \"our_new_name\",\n        \"category_id\": 2,\n        \"category_name\": \"DENTAL\",\n        \"title\": \"check teeth\",\n        \"description\": \"full check for teeth\",\n        \"images\": [\n            \"http://127.0.0.1:8000/media/services/1d9715f0f683458ab890d7bc5ce88497.png\",\n            \"http://127.0.0.1:8000/media/services/a6d10fa0c09743d5a74a6d7e9da67fd6.jpg\"\n        ],\n        \"price\": 5000,\n        \"discount_ammount\": 0,\n        \"is_active\": true,\n        \"created_at\": \"2023-12-06T18:09:32.693980Z\",\n        \"updated_at\": \"2023-12-06T18:09:02.683909Z\",\n        \"rates\": {\n            \"avg_rate\": 1,\n            \"5 stars\": 0,\n            \"4 stars\": 0,\n            \"3 stars\": 0,\n            \"2 stars\": 0,\n            \"1 stars\": 2,\n            \"0 stars\": 0\n        }\n    },\n    {\n        \"id\": 8,\n        \"provider_location_id\": 3,\n        \"provider_name\": \"Remostart\",\n        \"category_id\": 1,\n        \"category_name\": \"DOCTORS\",\n        \"title\": \"check Endocrine\",\n        \"description\": \"full check for all Endocrine\",\n        \"images\": [\n            \"http://127.0.0.1:8000/media/services/9510dab7a22042839794b2d8d0928440.png\",\n            \"http://127.0.0.1:8000/media/services/5091158aa50a46d7806d21d73f19c575.jpg\"\n        ],\n        \"price\": 5000,\n        \"discount_ammount\": 0,\n        \"is_active\": true,\n        \"created_at\": \"2023-12-06T17:58:37.837090Z\",\n        \"updated_at\": \"2023-12-06T17:58:37.837090Z\",\n        \"rates\": {\n            \"avg_rate\": 4,\n            \"5 stars\": 0,\n            \"4 stars\": 1,\n            \"3 stars\": 0,\n            \"2 stars\": 0,\n            \"1 stars\": 0,\n            \"0 stars\": 0\n        }\n    },\n    {\n        \"id\": 19,\n        \"provider_location_id\": 3,\n        \"provider_name\": \"Remostart\",\n        \"category_id\": 3,\n        \"category_name\": \"OPTICS\",\n        \"title\": \"check feet\",\n        \"description\": \"full checkup for feet\",\n        \"images\": [\n            \"http://127.0.0.1:8000/media/services/c793d9513e1f496786525b8a655fcdc8.png\",\n            \"http://127.0.0.1:8000/media/services/d49359ee674744518a316d1d35982a14.png\"\n        ],\n        \"price\": 4536,\n        \"discount_ammount\": 0,\n        \"is_active\": false,\n        \"created_at\": \"2024-01-27T07:35:11.846128Z\",\n        \"updated_at\": \"2024-01-27T07:35:11.846128Z\",\n        \"rates\": {\n            \"avg_rate\": 0,\n            \"5 stars\": 0,\n            \"4 stars\": 0,\n            \"3 stars\": 0,\n            \"2 stars\": 0,\n            \"1 stars\": 0,\n            \"0 stars\": 0\n        }\n    },\n    {\n        \"id\": 13,\n        \"provider_location_id\": 6,\n        \"provider_name\": \"our_new_name\",\n        \"category_id\": 3,\n        \"category_name\": \"OPTICS\",\n        \"title\": \"check kidney\",\n        \"description\": \"full checkup for kidnys\",\n        \"images\": [\n            \"http://127.0.0.1:8000/media/services/d58a5d34741249598a0ae68ed3429599.png\",\n            \"http://127.0.0.1:8000/media/services/5f33816bcddb447f8c9889decbcba4d2.jpg\"\n        ],\n        \"price\": 5000,\n        \"discount_ammount\": 0,\n        \"is_active\": true,\n        \"created_at\": \"2023-12-06T18:11:33.144963Z\",\n        \"updated_at\": \"2023-12-06T18:11:33.144963Z\",\n        \"rates\": {\n            \"avg_rate\": 4,\n            \"5 stars\": 1,\n            \"4 stars\": 0,\n            \"3 stars\": 1,\n            \"2 stars\": 0,\n            \"1 stars\": 0,\n            \"0 stars\": 0\n        }\n    },\n    {\n        \"id\": 10,\n        \"provider_location_id\": 4,\n        \"provider_name\": \"Remostart\",\n        \"category_id\": 3,\n        \"category_name\": \"OPTICS\",\n        \"title\": \"check eye\",\n        \"description\": \"full check for eyes\",\n        \"images\": [\n            \"http://127.0.0.1:8000/media/services/51e707450b0547a3b4386a83c0d38239.png\",\n            \"http://127.0.0.1:8000/media/services/d611dadbc7634debb3ba4b67fccc4a0c.jpg\"\n        ],\n        \"price\": 5000,\n        \"discount_ammount\": 0,\n        \"is_active\": true,\n        \"created_at\": \"2023-12-06T18:07:33.810552Z\",\n        \"updated_at\": \"2023-12-06T18:07:33.810552Z\",\n        \"rates\": {\n            \"avg_rate\": 1,\n            \"5 stars\": 0,\n            \"4 stars\": 0,\n            \"3 stars\": 0,\n            \"2 stars\": 1,\n            \"1 stars\": 0,\n            \"0 stars\": 1\n        }\n    },\n    {\n        \"id\": 9,\n        \"provider_location_id\": 4,\n        \"provider_name\": \"Remostart\",\n        \"category_id\": 1,\n        \"category_name\": \"DOCTORS\",\n        \"title\": \"check ear\",\n        \"description\": \"full check for ears\",\n        \"images\": [\n            \"http://127.0.0.1:8000/media/services/97ab6bae18e14db083563f74b83059da.png\",\n            \"http://127.0.0.1:8000/media/services/0419079b9a634b09a0955d006d1a8463.jpg\"\n        ],\n        \"price\": 5000,\n        \"discount_ammount\": 0,\n        \"is_active\": true,\n        \"created_at\": \"2023-12-06T18:00:17.968911Z\",\n        \"updated_at\": \"2023-12-06T18:00:17.968911Z\",\n        \"rates\": {\n            \"avg_rate\": 4.5,\n            \"5 stars\": 1,\n            \"4 stars\": 1,\n            \"3 stars\": 0,\n            \"2 stars\": 0,\n            \"1 stars\": 0,\n            \"0 stars\": 0\n        }\n    },\n    {\n        \"id\": 7,\n        \"provider_location_id\": 3,\n        \"provider_name\": \"Remostart\",\n        \"category_id\": 1,\n        \"category_name\": \"DOCTORS\",\n        \"title\": \"check stomach\",\n        \"description\": \"full check for stomach\",\n        \"images\": [\n            \"http://127.0.0.1:8000/media/services/09d7260f9359477ba770a6fc4492965f.png\",\n            \"http://127.0.0.1:8000/media/services/622d0eedc29b48f99709830f282cdf0f.jpg\"\n        ],\n        \"price\": 5000,\n        \"discount_ammount\": 0,\n        \"is_active\": true,\n        \"created_at\": \"2023-12-16T10:44:45.921051Z\",\n        \"updated_at\": \"2023-12-16T09:49:54.929895Z\",\n        \"rates\": {\n            \"avg_rate\": 4,\n            \"5 stars\": 1,\n            \"4 stars\": 0,\n            \"3 stars\": 1,\n            \"2 stars\": 0,\n            \"1 stars\": 0,\n            \"0 stars\": 0\n        }\n    }\n]"}],"_postman_id":"9b848056-8732-45ad-a14a-fde44986c9d7"},{"name":"admin activation switcher","id":"2b21c770-1eda-4dd5-bfc2-011d92448301","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MzMzNTU0LCJpYXQiOjE3MDczMzIzNTQsImp0aSI6Ijk3MmQ2ZjNiYTdhNjQ2ZDVhODAyNjVhMDQxZDYxNDQwIiwidXNlcl9pZCI6MjN9.LZIUflDFnGdPjsdqw0W59Aixx4toPnDNewxykBNqVUY","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"status\": true\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/api/v1/services/21/activation_switcher/","description":"<p>This endpoint allows admins to activate or deactivate a specific service.</p>\n<p><strong>This endpoint for admins only.</strong></p>\n<h3 id=\"request-body\">Request Body</h3>\n<ul>\n<li><code>status</code> (boolean): Indicates whether to activate (true) or deactivate (false) the service.</li>\n</ul>\n<h3 id=\"response\">Response</h3>\n<p>Upon successful activation or deactivation, the server will respond with a status code of 202 and an empty JSON object with a \"Message\" key.</p>\n","urlObject":{"path":["services","21","activation_switcher",""],"host":["http://127.0.0.1:8000/api/v1"],"query":[],"variable":[]}},"response":[{"id":"b36c4705-ce73-4856-8d47-3d6383cedb40","name":"admin activation switcher","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MzMzNTU0LCJpYXQiOjE3MDczMzIzNTQsImp0aSI6Ijk3MmQ2ZjNiYTdhNjQ2ZDVhODAyNjVhMDQxZDYxNDQwIiwidXNlcl9pZCI6MjN9.LZIUflDFnGdPjsdqw0W59Aixx4toPnDNewxykBNqVUY","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"status\": true\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/api/v1/services/21/activation_switcher/"},"status":"Accepted","code":202,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 07 Feb 2024 18:59:25 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.11.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language"},{"key":"Allow","value":"OPTIONS, POST"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"76"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"Message\": \"Activation status for the service with id: 21 changed to: True\"\n}"}],"_postman_id":"2b21c770-1eda-4dd5-bfc2-011d92448301"}],"id":"12df6476-bfc3-4802-9fb6-84fb9d3d7775","_postman_id":"12df6476-bfc3-4802-9fb6-84fb9d3d7775","description":""},{"name":"service_providers","item":[{"name":"locations","item":[{"name":"specific location","item":[{"name":"service providers location read","id":"53206551-1916-4959-956c-80e1c2a79a11","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"http://127.0.0.1:8000/api/v1/service_providers/location/6/","description":"<p>This HTTP GET request retrieves information about a service provider location. The response will include details such as the service provider ID, name, location coordinates, opening and closing times, crew information, and creation timestamp.</p>\n<p><strong>This endpoint is for everybody.</strong></p>\n<p>The response will be in JSON format and will include the following fields:</p>\n<ul>\n<li><code>id</code>: The unique identifier of the service provider.</li>\n<li><code>service_provider</code>: The name of the service provider.</li>\n<li><code>location</code>: An object containing the type of location and its coordinates.</li>\n<li><code>opening</code>: The opening time of the service provider.</li>\n<li><code>closing</code>: The closing time of the service provider.</li>\n<li><code>crew</code>: Information about the crew associated with the service provider.</li>\n<li><code>created_at</code>: The timestamp indicating when the service provider information was created.</li>\n</ul>\n<p>Example response:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"id\": 0,\n  \"service_provider\": \"\",\n  \"location\": {\n    \"type\": \"\",\n    \"coordinates\": [0]\n  },\n  \"opening\": \"\",\n  \"closing\": \"\",\n  \"crew\": \"\",\n  \"created_at\": \"\"\n}\n\n</code></pre>\n","urlObject":{"path":["service_providers","location","6",""],"host":["http://127.0.0.1:8000/api/v1"],"query":[],"variable":[]}},"response":[{"id":"212cd79c-a0bd-442b-b350-81b3315f9da0","name":"service providers location read","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"http://127.0.0.1:8000/api/v1/service_providers/location/1"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sun, 10 Dec 2023 07:07:36 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.9.10"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language, Cookie"},{"key":"Allow","value":"GET, PUT, PATCH, DELETE, HEAD, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"218"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"same-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 1,\n    \"service_provider\": \"service\",\n    \"location\": {\n        \"type\": \"Point\",\n        \"coordinates\": [\n            0.832397315378675,\n            55.668667294670605\n        ]\n    },\n    \"opening\": \"21:16:51\",\n    \"closing\": \"21:16:52\",\n    \"crew\": \"tareq\",\n    \"created_at\": \"2023-12-06T21:16:55.546862Z\"\n}"}],"_postman_id":"53206551-1916-4959-956c-80e1c2a79a11"},{"name":"service providers location delete","id":"50dd3bf2-1ab1-4de2-8049-234be37023ce","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA2Nzg2MjI1LCJpYXQiOjE3MDY3ODUwMjUsImp0aSI6ImYxMWIyMmVkYTAwMTRkNDNiNzI1M2Y4OGVmMmI5MGExIiwidXNlcl9pZCI6MzB9.6Xd2S-7SuZ6HbW1Ssf2cqE1B15YaRvUQHQW3fh-oP6A","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/service_providers/location/7/","description":"<p>This HTTP DELETE request is used to remove a specific location for service providers. The request should be sent to http://127.0.0.1:8000/api/v1/service_providers/location/7/. Upon successful execution, the server will respond with a status code of 204 and a Content-Type of text/xml. The response body will be empty (null).</p>\n<p><strong>This endpoint for admins &amp; service providers</strong></p>\n","urlObject":{"path":["service_providers","location","7",""],"host":["http://127.0.0.1:8000/api/v1"],"query":[],"variable":[]}},"response":[{"id":"c2741704-9985-45b8-a9d1-59100acb5474","name":"Untitled Response","originalRequest":{"method":"DELETE","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"}],"url":{"raw":"http://127.0.0.1:8000/api/v1/service_providers/location/:id/","host":["http://127.0.0.1:8000/api/v1"],"path":["service_providers","location",":id",""],"variable":[{"key":"id"}]}},"status":"No Content","code":204,"_postman_previewlanguage":"text","header":[],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"50dd3bf2-1ab1-4de2-8049-234be37023ce"},{"name":"create service providers locations","id":"d7e43c4d-2c2a-4f46-9bba-a2b21ac3ad11","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MzI0MjU2LCJpYXQiOjE3MDczMjMwNTYsImp0aSI6IjUxMzE2NzNmMTA5ZjQ2ZjFiZDc3MmEzOWE3MmFiNjE0IiwidXNlcl9pZCI6MzB9.a0uGYr4ggWlGZVxjxmP32ph9A66i99sOUIz4t1R9zNc","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"opening\": \"9:00\",\n  \"closing\": \"14:00\",\n  \"crew\": \"Tarek, Maamoun\",\n  \"location\": \"POINT (-90.432432 2.345945)\"\n}\n","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"http://127.0.0.1:8000/api/v1/service_providers/locations/create/","description":"<p>This endpoint allows you to create a new location for a service provider using an HTTP POST request to http://127.0.0.1:8000/api/v1/service_providers/locations/create/.</p>\n<p><strong>This endpoint for service provideres only.</strong></p>\n<h3 id=\"request-body\">Request Body</h3>\n<ul>\n<li><strong>opening</strong> (string, required): The opening time of the location.</li>\n<li><strong>closing</strong> (string, required): The closing time of the location.</li>\n<li><strong>crew</strong> (string, required): Details of the crew at the location.</li>\n<li><strong>location</strong> (string, required): Details of the location.</li>\n</ul>\n<h3 id=\"response\">Response</h3>\n<p>Upon successful creation, the endpoint returns a status code of 201 and a JSON object with the following fields:</p>\n<ul>\n<li><strong>id</strong> (integer): The ID of the created location.</li>\n<li><strong>location</strong> (object): Details of the location, including type and coordinates.</li>\n<li><strong>opening</strong> (string): The opening time of the location.</li>\n<li><strong>closing</strong> (string): The closing time of the location.</li>\n<li><strong>crew</strong> (string): Details of the crew at the location.</li>\n<li><strong>created_at</strong> (string): Timestamp of when the location was created.</li>\n<li><strong>service_provider</strong> (integer): The ID of the service provider associated with the location.</li>\n</ul>\n<h4 id=\"example-response\">Example Response</h4>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"id\": 0,\n    \"location\": {\n        \"type\": \"\",\n        \"coordinates\": [0]\n    },\n    \"opening\": \"\",\n    \"closing\": \"\",\n    \"crew\": \"\",\n    \"created_at\": \"\",\n    \"service_provider\": 0\n}\n\n</code></pre>\n","urlObject":{"path":["service_providers","locations","create",""],"host":["http://127.0.0.1:8000/api/v1"],"query":[],"variable":[]}},"response":[{"id":"7f106735-9f11-4d77-9eb0-9bb17fc5ae9f","name":"create service providers locations","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MzI0MjU2LCJpYXQiOjE3MDczMjMwNTYsImp0aSI6IjUxMzE2NzNmMTA5ZjQ2ZjFiZDc3MmEzOWE3MmFiNjE0IiwidXNlcl9pZCI6MzB9.a0uGYr4ggWlGZVxjxmP32ph9A66i99sOUIz4t1R9zNc","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"opening\": \"9:00\",\n  \"closing\": \"14:00\",\n  \"crew\": \"Tarek, Maamoun\",\n  \"location\": \"POINT (-90.432432 2.345945)\"\n}\n","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"http://127.0.0.1:8000/api/v1/service_providers/locations/create/"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 07 Feb 2024 16:26:44 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.11.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language"},{"key":"Allow","value":"POST, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"208"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 8,\n    \"location\": {\n        \"type\": \"Point\",\n        \"coordinates\": [\n            -90.432432,\n            2.345945\n        ]\n    },\n    \"opening\": \"09:00:00\",\n    \"closing\": \"14:00:00\",\n    \"crew\": \"Tarek, Maamoun\",\n    \"created_at\": \"2024-02-07T19:26:44.741664+03:00\",\n    \"service_provider\": 30\n}"}],"_postman_id":"d7e43c4d-2c2a-4f46-9bba-a2b21ac3ad11"},{"name":"service providers location partial update","id":"42d220fa-7b9e-484f-869c-d5ef5fdfe193","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MzI0MjU2LCJpYXQiOjE3MDczMjMwNTYsImp0aSI6IjUxMzE2NzNmMTA5ZjQ2ZjFiZDc3MmEzOWE3MmFiNjE0IiwidXNlcl9pZCI6MzB9.a0uGYr4ggWlGZVxjxmP32ph9A66i99sOUIz4t1R9zNc","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"location\": \"POINT (975.321 456.25)\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"http://127.0.0.1:8000/api/v1/service_providers/location/8/","urlObject":{"path":["service_providers","location","8",""],"host":["http://127.0.0.1:8000/api/v1"],"query":[],"variable":[]}},"response":[{"id":"4cd4f93f-7bdb-4c4a-baf0-9ab1dcc407f5","name":"service providers location partial update","originalRequest":{"method":"PATCH","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MzI0MjU2LCJpYXQiOjE3MDczMjMwNTYsImp0aSI6IjUxMzE2NzNmMTA5ZjQ2ZjFiZDc3MmEzOWE3MmFiNjE0IiwidXNlcl9pZCI6MzB9.a0uGYr4ggWlGZVxjxmP32ph9A66i99sOUIz4t1R9zNc","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"location\": \"POINT (975.321 456.25)\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"http://127.0.0.1:8000/api/v1/service_providers/location/8/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 07 Feb 2024 16:27:53 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.11.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language"},{"key":"Allow","value":"GET, PUT, PATCH, DELETE, HEAD, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"212"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 8,\n    \"service_provider\": \"Remostart\",\n    \"location\": {\n        \"type\": \"Point\",\n        \"coordinates\": [\n            975.321,\n            456.25\n        ]\n    },\n    \"opening\": \"09:00:00\",\n    \"closing\": \"14:00:00\",\n    \"crew\": \"Tarek, Maamoun\",\n    \"created_at\": \"2024-02-07T19:26:44.741664+03:00\"\n}"}],"_postman_id":"42d220fa-7b9e-484f-869c-d5ef5fdfe193"}],"id":"04eff54f-68aa-4553-b363-24bca92d4b4d","_postman_id":"04eff54f-68aa-4553-b363-24bca92d4b4d","description":""},{"name":"show service provider location","id":"3f6e9dd7-1355-446f-9643-24bd68e4fc9d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://127.0.0.1:8000/api/v1/service_providers/locations/30/","description":"<p>This endpoint retrieves information about a specific service provider locations.</p>\n<p><strong>This endpoint is for everybody.</strong></p>\n<p>The response will include details such as the location ID, service provider name, location type, coordinates, opening and closing times, crew information, and the creation timestamp.</p>\n<p>The response will be in JSON format and will include an array of objects, each containing the aforementioned details.</p>\n<p>Example response:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">[\n    {\n        \"id\": 0,\n        \"service_provider\": \"\",\n        \"location\": {\n            \"type\": \"\",\n            \"coordinates\": [0]\n        },\n        \"opening\": \"\",\n        \"closing\": \"\",\n        \"crew\": \"\",\n        \"created_at\": \"\"\n    }\n]\n\n</code></pre>\n","urlObject":{"path":["service_providers","locations","30",""],"host":["http://127.0.0.1:8000/api/v1"],"query":[],"variable":[]}},"response":[{"id":"10dbfdcb-7efa-4da5-85d6-ff27a0ddacd2","name":"service providers locations list","originalRequest":{"method":"GET","header":[],"url":"http://127.0.0.1:8000/api/v1/service_providers/locations/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 06 Dec 2023 17:38:47 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.9.10"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language, Cookie"},{"key":"Allow","value":"OPTIONS, GET"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"665"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"same-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 1,\n        \"service_provider\": \"service\",\n        \"location\": {\n            \"type\": \"Point\",\n            \"coordinates\": [\n                0.994445655199845,\n                55.68752626472786\n            ]\n        },\n        \"opening\": \"16:17:32\",\n        \"closing\": \"06:00:00\",\n        \"crew\": \"maamoun\",\n        \"created_at\": \"2023-12-01T16:17:44.355450Z\"\n    },\n    {\n        \"id\": 2,\n        \"service_provider\": \"service1\",\n        \"location\": {\n            \"type\": \"Point\",\n            \"coordinates\": [\n                0.97933945403016,\n                55.67049164664836\n            ]\n        },\n        \"opening\": \"16:21:25\",\n        \"closing\": \"12:00:00\",\n        \"crew\": \"tareq\",\n        \"created_at\": \"2023-12-01T16:21:32.560511Z\"\n    },\n    {\n        \"id\": 3,\n        \"service_provider\": \"service1\",\n        \"location\": {\n            \"type\": \"Point\",\n            \"coordinates\": [\n                0.94775376067508,\n                55.72079978388958\n            ]\n        },\n        \"opening\": \"16:26:14\",\n        \"closing\": \"16:26:16\",\n        \"crew\": \"tareq maamoun\",\n        \"created_at\": \"2023-12-01T16:26:22.091842Z\"\n    }\n]"}],"_postman_id":"3f6e9dd7-1355-446f-9643-24bd68e4fc9d"},{"name":"show all system location","id":"a32e25c2-38cc-4c1f-a80e-5e8ab03b4069","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://127.0.0.1:8000/api/v1/service_providers/locations/","description":"<p>This endpoint makes an HTTP GET request to retrieve a list of service provider locations. The response will be in JSON format and will include an array of objects, each containing the id, service provider, location details, opening and closing times, crew information, and creation timestamp.</p>\n<p><strong>This endpoint for everybody.</strong></p>\n<p>The response will have a status code of 200 indicating a successful request.</p>\n<p>Example response:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">[\n    {\n        \"id\": 0,\n        \"service_provider\": \"\",\n        \"location\": {\n            \"type\": \"\",\n            \"coordinates\": [0]\n        },\n        \"opening\": \"\",\n        \"closing\": \"\",\n        \"crew\": \"\",\n        \"created_at\": \"\"\n    }\n]\n\n</code></pre>\n","urlObject":{"path":["service_providers","locations",""],"host":["http://127.0.0.1:8000/api/v1"],"query":[],"variable":[]}},"response":[{"id":"051b972a-2419-4363-b9cb-556d069f800b","name":"show all system location","originalRequest":{"method":"GET","header":[],"url":"http://127.0.0.1:8000/api/v1/service_providers/locations/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 06 Feb 2024 17:54:09 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.11.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language, Cookie"},{"key":"Allow","value":"GET, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"1073"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 3,\n        \"service_provider\": \"Remostart\",\n        \"location\": {\n            \"type\": \"Point\",\n            \"coordinates\": [\n                -116.234234,\n                35.345345\n            ]\n        },\n        \"opening\": \"08:00:00\",\n        \"closing\": \"19:00:00\",\n        \"crew\": \"Maamoun Haj Najeeb: second doctor, Tareq Dabaan: first doctor\",\n        \"created_at\": \"2023-12-05T20:37:13.285235+03:00\"\n    },\n    {\n        \"id\": 4,\n        \"service_provider\": \"Remostart\",\n        \"location\": {\n            \"type\": \"Point\",\n            \"coordinates\": [\n                -19.432432,\n                32.345945\n            ]\n        },\n        \"opening\": \"08:00:00\",\n        \"closing\": \"19:00:00\",\n        \"crew\": \"Maamoun Haj Najeeb: second doctor, Tareq Dabaan: first doctor\",\n        \"created_at\": \"2023-12-05T20:47:38.941693+03:00\"\n    },\n    {\n        \"id\": 5,\n        \"service_provider\": \"our_new_name\",\n        \"location\": {\n            \"type\": \"Point\",\n            \"coordinates\": [\n                -190.432432,\n                302.345945\n            ]\n        },\n        \"opening\": \"08:00:00\",\n        \"closing\": \"19:00:00\",\n        \"crew\": \"Maamoun Haj Najeeb: second doctor, Tareq Dabaan: first doctor\",\n        \"created_at\": \"2023-12-05T20:49:04.291682+03:00\"\n    },\n    {\n        \"id\": 6,\n        \"service_provider\": \"our_new_name\",\n        \"location\": {\n            \"type\": \"Point\",\n            \"coordinates\": [\n                -90.432432,\n                2.345945\n            ]\n        },\n        \"opening\": \"08:00:00\",\n        \"closing\": \"19:00:00\",\n        \"crew\": \"Maamoun Haj Najeeb: second doctor, Tareq Dabaan: first doctor\",\n        \"created_at\": \"2023-12-05T20:49:21.336680+03:00\"\n    }\n]"}],"_postman_id":"a32e25c2-38cc-4c1f-a80e-5e8ab03b4069"}],"id":"9194a1b0-36fc-4463-b0e2-5588e643f026","_postman_id":"9194a1b0-36fc-4463-b0e2-5588e643f026","description":""},{"name":"service providers information update","item":[{"name":"specific service provider update information request","item":[{"name":"specific provider update info","id":"c2af655b-d019-4457-b7cc-35ae5ef7c87b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MzI0MjU2LCJpYXQiOjE3MDczMjMwNTYsImp0aSI6IjUxMzE2NzNmMTA5ZjQ2ZjFiZDc3MmEzOWE3MmFiNjE0IiwidXNlcl9pZCI6MzB9.a0uGYr4ggWlGZVxjxmP32ph9A66i99sOUIz4t1R9zNc","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/service_providers/update_request/6/","description":"<p>This endpoint makes an HTTP GET request to get a specific service provider request (by update information id not service provider id). It returns a JSON response with details of the updated request</p>\n<p><strong>This endpoint</strong> <strong>for admins and service providers</strong></p>\n<p>The response will have the following structure:</p>\n<ul>\n<li>id (number): The ID of the request.</li>\n<li>sent_data (object): Data sent with the request.</li>\n<li>created_at (string): The timestamp of when the request was created.</li>\n<li>updated_at (string): The timestamp of when the request was last updated.</li>\n<li>request_status (string): The status of the request.</li>\n<li>provider_requested (number): The ID of the provider requested.</li>\n<li>checked_by (string): The entity that checked the request.</li>\n<li>checked_by_email (string): The email of the entity that checked the request.</li>\n</ul>\n<p>Here are some example responses:</p>\n<ul>\n<li>{\"sent_data\":{},\"provider_requested\":\"\",\"id\":\"\",\"updated_at\":\"\",\"request_status\":\"\",\"checked_by\":\"\"}</li>\n<li>{\"id\":0,\"sent_data\":{\"iban\":\"\"},\"created_at\":\"\",\"updated_at\":\"\",\"request_status\":\"\",\"provider_requested\":0,\"checked_by\":null,\"checked_by_email\":null}</li>\n</ul>\n","urlObject":{"path":["service_providers","update_request","6",""],"host":["http://127.0.0.1:8000/api/v1"],"query":[],"variable":[]}},"response":[{"id":"3453455d-1f59-4eb5-aeaa-5e9494367523","name":"specific provider update info","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MzI0MjU2LCJpYXQiOjE3MDczMjMwNTYsImp0aSI6IjUxMzE2NzNmMTA5ZjQ2ZjFiZDc3MmEzOWE3MmFiNjE0IiwidXNlcl9pZCI6MzB9.a0uGYr4ggWlGZVxjxmP32ph9A66i99sOUIz4t1R9zNc","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/service_providers/update_request/6/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 07 Feb 2024 16:29:08 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.11.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language"},{"key":"Allow","value":"GET, PUT, PATCH, DELETE, HEAD, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"251"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 6,\n    \"sent_data\": {\n        \"iban\": \"i1b2a3n455\"\n    },\n    \"created_at\": \"2023-12-13T20:53:09.620545+03:00\",\n    \"updated_at\": \"2024-02-01T17:40:18.464891+03:00\",\n    \"request_status\": \"accepted\",\n    \"provider_requested\": 30,\n    \"checked_by\": 23,\n    \"admin_email\": \"maamoun.haj.najeeb@gmail.com\"\n}"}],"_postman_id":"c2af655b-d019-4457-b7cc-35ae5ef7c87b"},{"name":"delete service provider update information request","id":"9a9b9a77-c628-4de8-b2cd-9f866ada7c6d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MzM0MzY2LCJpYXQiOjE3MDczMzMxNjYsImp0aSI6IjI0ZmNlZGMyYjEwOTQxN2VhNzJjNzBiNzExODQyMTRiIiwidXNlcl9pZCI6MjN9.I7ZURKbnYFVtH6ZhfjRPiPntGl3YTqryUqt8qq9MImg","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/service_providers/update_request/6/","description":"<p>This endpoint sends an HTTP DELETE request to update a specific request for service providers. Upon successful execution, it returns a status of 204 with a Content-Type of text/xml. The response body is null.</p>\n<p>this endpoint is <strong>for admins only</strong></p>\n","urlObject":{"path":["service_providers","update_request","6",""],"host":["http://127.0.0.1:8000/api/v1"],"query":[],"variable":[]}},"response":[{"id":"e2f33eb2-1a57-4b54-9faa-53ae586bd06a","name":"delete service provider update information request","originalRequest":{"method":"DELETE","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MzM0MzY2LCJpYXQiOjE3MDczMzMxNjYsImp0aSI6IjI0ZmNlZGMyYjEwOTQxN2VhNzJjNzBiNzExODQyMTRiIiwidXNlcl9pZCI6MjN9.I7ZURKbnYFVtH6ZhfjRPiPntGl3YTqryUqt8qq9MImg","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/service_providers/update_request/6/"},"status":"No Content","code":204,"_postman_previewlanguage":"plain","header":[{"key":"Date","value":"Wed, 07 Feb 2024 19:12:58 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.11.0"},{"key":"Vary","value":"Accept, origin, Accept-Language"},{"key":"Allow","value":"GET, PUT, PATCH, DELETE, HEAD, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"0"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":null}],"_postman_id":"9a9b9a77-c628-4de8-b2cd-9f866ada7c6d"},{"name":"create provider request","id":"c44b7bd3-981b-4186-ae00-4980b888c45e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MzM0NDc0LCJpYXQiOjE3MDczMzMyNzQsImp0aSI6IjJkMDY2ZGVmMGY4MjQ0ODJhMTEwNDNlMmNkNDY2Zjc0IiwidXNlcl9pZCI6MzB9.Um11-nLxL_Vd-Ky2cQn8wOY4N0StKYHHZDEceonuieo","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"sent_data\": {\n    \"iban\": \"I don't know\"\n  }\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"http://127.0.0.1:8000/api/v1/service_providers/update_request/","description":"<h3 id=\"update-service-provider-request\">Update Service Provider Request</h3>\n<p>This endpoint is used to create a service provider information update request.</p>\n<p><strong>This endpoint for service providers.</strong></p>\n<h4 id=\"request-body\">Request Body</h4>\n<ul>\n<li><code>sent_data</code> (object): An object containing the IBAN information.</li>\n</ul>\n<h4 id=\"response\">Response</h4>\n<ul>\n<li><code>id</code> (number): The ID of the updated request.</li>\n<li><code>sent_data</code> (object): The updated IBAN information.</li>\n<li><code>created_at</code> (string): Timestamp of when the request was created.</li>\n<li><code>updated_at</code> (string): Timestamp of when the request was last updated.</li>\n<li><code>request_status</code> (string): The status of the request.</li>\n<li><code>provider_requested</code> (number): The ID of the requested provider.</li>\n<li><code>checked_by</code> (string): The user who checked the request.</li>\n<li><code>checked_by_email</code> (string): The email of the user who checked the request.</li>\n</ul>\n<h4 id=\"example-response\">Example Response</h4>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"id\": 0,\n    \"sent_data\": {\n        \"iban\": \"\"\n    },\n    \"created_at\": \"\",\n    \"updated_at\": \"\",\n    \"request_status\": \"\",\n    \"provider_requested\": 0,\n    \"checked_by\": null,\n    \"checked_by_email\": null\n}\n\n</code></pre>\n","urlObject":{"path":["service_providers","update_request",""],"host":["http://127.0.0.1:8000/api/v1"],"query":[],"variable":[]}},"response":[{"id":"347b9d0d-0e3c-40c0-8e7f-299858927f46","name":"create provider request","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MzM0NDc0LCJpYXQiOjE3MDczMzMyNzQsImp0aSI6IjJkMDY2ZGVmMGY4MjQ0ODJhMTEwNDNlMmNkNDY2Zjc0IiwidXNlcl9pZCI6MzB9.Um11-nLxL_Vd-Ky2cQn8wOY4N0StKYHHZDEceonuieo","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"sent_data\": {\n    \"iban\": \"I don't know\"\n  }\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"http://127.0.0.1:8000/api/v1/service_providers/update_request/"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 07 Feb 2024 19:14:46 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.11.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language"},{"key":"Allow","value":"GET, POST, HEAD, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"209"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 9,\n    \"sent_data\": {\n        \"iban\": \"I don't know\"\n    },\n    \"created_at\": \"2024-02-07T22:14:46.648435+03:00\",\n    \"updated_at\": \"2024-02-07T22:14:46.648435+03:00\",\n    \"request_status\": \"pending\",\n    \"provider_requested\": 30,\n    \"checked_by\": null\n}"}],"_postman_id":"c44b7bd3-981b-4186-ae00-4980b888c45e"},{"name":"change service provider update request","id":"39fe20db-8c56-47bf-a373-24551f2302b8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MzM0MzY2LCJpYXQiOjE3MDczMzMxNjYsImp0aSI6IjI0ZmNlZGMyYjEwOTQxN2VhNzJjNzBiNzExODQyMTRiIiwidXNlcl9pZCI6MjN9.I7ZURKbnYFVtH6ZhfjRPiPntGl3YTqryUqt8qq9MImg","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"request_status\": \"accepted\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"http://127.0.0.1:8000/api/v1/service_providers/update_request/4/","description":"<h3 id=\"update-service-provider-request-status\">Update Service Provider Request Status</h3>\n<p>This endpoint is used to update the status (or any another field) of a service provider update information request</p>\n<p><strong>This endpoint for admins only</strong></p>\n<h4 id=\"request\">Request</h4>\n<p>The HTTP PATCH request is sent to <code>http://127.0.0.1:8000/api/v1/service_providers/update_request/8/</code> with the following payload in the raw request body type:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"request_status\": \"\"\n}\n\n</code></pre>\n<h4 id=\"response\">Response</h4>\n<ul>\n<li>Status: 200</li>\n<li>Content-Type: application/json</li>\n</ul>\n<p>Example response body:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"id\": 0,\n    \"sent_data\": {\n        \"iban\": \"\"\n    },\n    \"created_at\": \"\",\n    \"updated_at\": \"\",\n    \"request_status\": \"\",\n    \"provider_requested\": 0,\n    \"checked_by\": 0,\n    \"checked_by_email\": \"\"\n}\n\n</code></pre>\n<h4 id=\"example-responses\">Example Responses</h4>\n<ol>\n<li><pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">  {\n   \"sent_data\": {},\n   \"provider_requested\": \"\",\n   \"id\": \"\",\n   \"updated_at\": \"\",\n   \"request_status\": \"\",\n   \"checked_by\": \"\"\n  }\n \n</code></pre>\n</li>\n<li><pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">  {\n   \"sent_data\": {},\n   \"provider_requested\": \"\",\n   \"id\": \"\",\n   \"updated_at\": \"\",\n   \"request_status\": \"\",\n   \"checked_by\": \"\"\n  }\n \n</code></pre>\n</li>\n</ol>\n","urlObject":{"path":["service_providers","update_request","4",""],"host":["http://127.0.0.1:8000/api/v1"],"query":[],"variable":[]}},"response":[{"id":"961c6bb0-34e5-4321-aa0e-2d00c9e08972","name":"change service provider update request","originalRequest":{"method":"PATCH","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MzM0MzY2LCJpYXQiOjE3MDczMzMxNjYsImp0aSI6IjI0ZmNlZGMyYjEwOTQxN2VhNzJjNzBiNzExODQyMTRiIiwidXNlcl9pZCI6MjN9.I7ZURKbnYFVtH6ZhfjRPiPntGl3YTqryUqt8qq9MImg","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"request_status\": \"accepted\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"http://127.0.0.1:8000/api/v1/service_providers/update_request/4/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 07 Feb 2024 19:13:59 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.11.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language"},{"key":"Allow","value":"GET, PUT, PATCH, DELETE, HEAD, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"251"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 4,\n    \"sent_data\": {\n        \"iban\": \"i1b2a3n455\"\n    },\n    \"created_at\": \"2023-12-13T20:51:04.375901+03:00\",\n    \"updated_at\": \"2024-02-07T22:13:59.363992+03:00\",\n    \"request_status\": \"accepted\",\n    \"provider_requested\": 30,\n    \"checked_by\": 23,\n    \"admin_email\": \"maamoun.haj.najeeb@gmail.com\"\n}"}],"_postman_id":"39fe20db-8c56-47bf-a373-24551f2302b8"}],"id":"7a73b2be-2ee0-46df-8a16-bcd4700f97ef","_postman_id":"7a73b2be-2ee0-46df-8a16-bcd4700f97ef","description":""},{"name":"list providers requests","id":"b5e02caf-9461-49f8-b397-7b5d7361b63e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MzM0MjE0LCJpYXQiOjE3MDczMzMwMTQsImp0aSI6IjEzNmQwYzJkZjEzYzQ2NDI4YmFjNDVhZWE3NGIzZDEwIiwidXNlcl9pZCI6MjN9.2rVnu62i11vw5IbUi6cLU-q3jHKMWvwsOa2ixes8k8s","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/service_providers/update_request/","description":"<p>This endpoint makes an HTTP GET request to retrieve information related to update requests for service providers <strong>for admins only</strong>. The response will be in JSON format and will include the details of the update request, such as the request ID, sent data, creation and update timestamps, request status, provider requested, and the user who checked the request.</p>\n<p>An example response for this request is:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">[{\"sent_data\":{},\"provider_requested\":\"\",\"id\":\"\",\"updated_at\":\"\",\"request_status\":\"\",\"checked_by\":\"\"}]\n\n</code></pre>\n","urlObject":{"path":["service_providers","update_request",""],"host":["http://127.0.0.1:8000/api/v1"],"query":[],"variable":[]}},"response":[{"id":"ac87d69a-b186-4a4b-84b1-bfff91c12b12","name":"list providers requests","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MzM0MjE0LCJpYXQiOjE3MDczMzMwMTQsImp0aSI6IjEzNmQwYzJkZjEzYzQ2NDI4YmFjNDVhZWE3NGIzZDEwIiwidXNlcl9pZCI6MjN9.2rVnu62i11vw5IbUi6cLU-q3jHKMWvwsOa2ixes8k8s","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/service_providers/update_request/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 07 Feb 2024 19:10:31 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.11.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language"},{"key":"Allow","value":"GET, POST, HEAD, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"1171"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 3,\n        \"sent_data\": {\n            \"iban\": \"i1b2a3n455\"\n        },\n        \"created_at\": \"2023-12-13T20:50:01.665667+03:00\",\n        \"updated_at\": \"2023-12-13T20:50:01.665667+03:00\",\n        \"request_status\": \"pending\",\n        \"provider_requested\": 30,\n        \"checked_by\": null\n    },\n    {\n        \"id\": 4,\n        \"sent_data\": {\n            \"iban\": \"i1b2a3n455\"\n        },\n        \"created_at\": \"2023-12-13T20:51:04.375901+03:00\",\n        \"updated_at\": \"2023-12-13T20:51:04.375901+03:00\",\n        \"request_status\": \"pending\",\n        \"provider_requested\": 30,\n        \"checked_by\": null\n    },\n    {\n        \"id\": 2,\n        \"sent_data\": {\n            \"iban\": \"i1b2a3n4\"\n        },\n        \"created_at\": \"2023-12-05T12:51:08.104456+03:00\",\n        \"updated_at\": \"2023-12-13T20:57:05.307262+03:00\",\n        \"request_status\": \"accepted\",\n        \"provider_requested\": 30,\n        \"checked_by\": 23,\n        \"admin_email\": \"maamoun.haj.najeeb@gmail.com\"\n    },\n    {\n        \"id\": 5,\n        \"sent_data\": {\n            \"iban\": \"i1b2a3n455\"\n        },\n        \"created_at\": \"2023-12-13T20:52:41.920724+03:00\",\n        \"updated_at\": \"2023-12-13T20:57:19.196388+03:00\",\n        \"request_status\": \"accepted\",\n        \"provider_requested\": 30,\n        \"checked_by\": 23,\n        \"admin_email\": \"maamoun.haj.najeeb@gmail.com\"\n    },\n    {\n        \"id\": 6,\n        \"sent_data\": {\n            \"iban\": \"i1b2a3n455\"\n        },\n        \"created_at\": \"2023-12-13T20:53:09.620545+03:00\",\n        \"updated_at\": \"2024-02-01T17:40:18.464891+03:00\",\n        \"request_status\": \"accepted\",\n        \"provider_requested\": 30,\n        \"checked_by\": 23,\n        \"admin_email\": \"maamoun.haj.najeeb@gmail.com\"\n    }\n]"}],"_postman_id":"b5e02caf-9461-49f8-b397-7b5d7361b63e"},{"name":"provider update information status","id":"80c0eed4-603b-4b3e-bdf5-867e1a04693c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MzM0MjczLCJpYXQiOjE3MDczMzMwNzMsImp0aSI6ImExYTM5YmY0YmQwNzQ4ZDNiYzkwMDYzMjE0ZjhjMjYyIiwidXNlcl9pZCI6MzB9.ZYHbg77iwyJMw5jMRPW8rXxRVrP00dPNhhzd-Z9VNyY","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/service_providers/check/","description":"<p>This endpoint makes an HTTP GET request to the specified URL to check service provider update information request status. The response will be in JSON format with a 200 status code. An example response includes an array of objects, each containing details such as ID, sent data, creation and update timestamps, request status, provider requested, and checked by information.</p>\n<p><strong>for service providers only.</strong></p>\n","urlObject":{"path":["service_providers","check",""],"host":["http://127.0.0.1:8000/api/v1"],"query":[],"variable":[]}},"response":[{"id":"0ab10482-0061-432f-afe4-dd5fc3cbe3fe","name":"provider update information status","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MzM0MjczLCJpYXQiOjE3MDczMzMwNzMsImp0aSI6ImExYTM5YmY0YmQwNzQ4ZDNiYzkwMDYzMjE0ZjhjMjYyIiwidXNlcl9pZCI6MzB9.ZYHbg77iwyJMw5jMRPW8rXxRVrP00dPNhhzd-Z9VNyY","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/service_providers/check/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 07 Feb 2024 19:11:27 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.11.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language"},{"key":"Allow","value":"OPTIONS, GET"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"1171"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 2,\n        \"sent_data\": {\n            \"iban\": \"i1b2a3n4\"\n        },\n        \"created_at\": \"2023-12-05T12:51:08.104456+03:00\",\n        \"updated_at\": \"2023-12-13T20:57:05.307262+03:00\",\n        \"request_status\": \"accepted\",\n        \"provider_requested\": 30,\n        \"checked_by\": 23,\n        \"admin_email\": \"maamoun.haj.najeeb@gmail.com\"\n    },\n    {\n        \"id\": 3,\n        \"sent_data\": {\n            \"iban\": \"i1b2a3n455\"\n        },\n        \"created_at\": \"2023-12-13T20:50:01.665667+03:00\",\n        \"updated_at\": \"2023-12-13T20:50:01.665667+03:00\",\n        \"request_status\": \"pending\",\n        \"provider_requested\": 30,\n        \"checked_by\": null\n    },\n    {\n        \"id\": 4,\n        \"sent_data\": {\n            \"iban\": \"i1b2a3n455\"\n        },\n        \"created_at\": \"2023-12-13T20:51:04.375901+03:00\",\n        \"updated_at\": \"2023-12-13T20:51:04.375901+03:00\",\n        \"request_status\": \"pending\",\n        \"provider_requested\": 30,\n        \"checked_by\": null\n    },\n    {\n        \"id\": 5,\n        \"sent_data\": {\n            \"iban\": \"i1b2a3n455\"\n        },\n        \"created_at\": \"2023-12-13T20:52:41.920724+03:00\",\n        \"updated_at\": \"2023-12-13T20:57:19.196388+03:00\",\n        \"request_status\": \"accepted\",\n        \"provider_requested\": 30,\n        \"checked_by\": 23,\n        \"admin_email\": \"maamoun.haj.najeeb@gmail.com\"\n    },\n    {\n        \"id\": 6,\n        \"sent_data\": {\n            \"iban\": \"i1b2a3n455\"\n        },\n        \"created_at\": \"2023-12-13T20:53:09.620545+03:00\",\n        \"updated_at\": \"2024-02-01T17:40:18.464891+03:00\",\n        \"request_status\": \"accepted\",\n        \"provider_requested\": 30,\n        \"checked_by\": 23,\n        \"admin_email\": \"maamoun.haj.najeeb@gmail.com\"\n    }\n]"}],"_postman_id":"80c0eed4-603b-4b3e-bdf5-867e1a04693c"}],"id":"c95dd0dd-0037-4345-8710-908dccf60f06","_postman_id":"c95dd0dd-0037-4345-8710-908dccf60f06","description":""},{"name":"reports","item":[{"name":"provider reports","id":"8817bb29-aff4-4dab-af88-4d818f1361ae","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MzI0MjU2LCJpYXQiOjE3MDczMjMwNTYsImp0aSI6IjUxMzE2NzNmMTA5ZjQ2ZjFiZDc3MmEzOWE3MmFiNjE0IiwidXNlcl9pZCI6MzB9.a0uGYr4ggWlGZVxjxmP32ph9A66i99sOUIz4t1R9zNc","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/service_providers/reports/","description":"<h1 id=\"get-service-providers-reports\">Get Service Providers Reports</h1>\n<p>This endpoint retrieves the reports for service providers.</p>\n<p><strong>for service providers only</strong></p>\n<h2 id=\"response\">Response</h2>\n<p>Upon a successful request, the endpoint returns a JSON object with the following structure:</p>\n<ul>\n<li><code>stats</code> (object)<ul>\n<li><code>products_stats</code> (array): Array of objects containing statistics for products, each with <code>title</code> and <code>count</code> properties.</li>\n<li><code>services_stats</code> (array): Array of objects containing statistics for services, each with <code>title</code> and <code>count</code> properties.</li>\n<li><code>user_stats</code> (array): Array of objects containing statistics for users, each with <code>result</code> and <code>count</code> properties.</li>\n</ul>\n</li>\n<li><code>counts</code> (object)<ul>\n<li><code>product</code> (number): Count of products.</li>\n<li><code>services</code> (number): Count of services.</li>\n<li><code>users</code> (number): Count of users.</li>\n</ul>\n</li>\n<li><code>services_diagram</code> (array): Array of objects containing diagram data for services, each with <code>year</code>, <code>month</code>, and <code>services_count</code> properties.</li>\n<li><code>products_diagram</code> (array): Array of objects containing diagram data for products, each with <code>year</code>, <code>month</code>, and <code>products_count</code> properties.</li>\n<li><code>users_diagram</code> (array): Array of objects containing diagram data for users, each with <code>year</code>, <code>month</code>, and <code>total_customers</code> properties.</li>\n</ul>\n<p>Example Response:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"stats\": {\n        \"products_stats\": [\n            {\"title\": \"\", \"count\": 0}\n        ],\n        \"services_stats\": [\n            {\"title\": \"\", \"count\": 0}\n        ],\n        \"user_stats\": [\n            {\"result\": \"\", \"count\": 0}\n        ]\n    },\n    \"counts\": {\n        \"product\": 0,\n        \"services\": 0,\n        \"users\": 0\n    },\n    \"services_diagram\": [\n        {\"year\": 0, \"month\": 0, \"services_count\": 0}\n    ],\n    \"products_diagram\": [\n        {\"year\": 0, \"month\": 0, \"products_count\": 0}\n    ],\n    \"users_diagram\": [\n        {\"year\": 0, \"month\": 0, \"total_customers\": 0}\n    ]\n}\n\n</code></pre>\n","urlObject":{"path":["service_providers","reports",""],"host":["http://127.0.0.1:8000/api/v1"],"query":[],"variable":[]}},"response":[{"id":"ae5322eb-f033-4d9a-864f-7b70da40cbc1","name":"provider reports","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MzI0MjU2LCJpYXQiOjE3MDczMjMwNTYsImp0aSI6IjUxMzE2NzNmMTA5ZjQ2ZjFiZDc3MmEzOWE3MmFiNjE0IiwidXNlcl9pZCI6MzB9.a0uGYr4ggWlGZVxjxmP32ph9A66i99sOUIz4t1R9zNc","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/service_providers/reports/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 07 Feb 2024 16:24:29 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.11.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language"},{"key":"Allow","value":"OPTIONS, GET"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"753"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"stats\": {\n        \"products_stats\": [\n            {\n                \"title\": \"unadol\",\n                \"count\": 1\n            },\n            {\n                \"title\": \"unadol cold and flu\",\n                \"count\": 1\n            },\n            {\n                \"title\": \"unadol extra\",\n                \"count\": 2\n            }\n        ],\n        \"services_stats\": [\n            {\n                \"title\": \"check ear\",\n                \"count\": 2\n            },\n            {\n                \"title\": \"check Endocrine\",\n                \"count\": 1\n            },\n            {\n                \"title\": \"check eye\",\n                \"count\": 1\n            },\n            {\n                \"title\": \"check stomach\",\n                \"count\": 1\n            }\n        ],\n        \"user_stats\": [\n            {\n                \"result\": \"General_Check\",\n                \"count\": 3\n            },\n            {\n                \"result\": \"Treatment_Finished\",\n                \"count\": 2\n            }\n        ]\n    },\n    \"counts\": {\n        \"product\": 8,\n        \"services\": 5,\n        \"users\": 2\n    },\n    \"services_diagram\": [\n        {\n            \"year\": 2023,\n            \"month\": 12,\n            \"services_count\": 5\n        },\n        {\n            \"year\": 2024,\n            \"month\": 1,\n            \"services_count\": 3\n        }\n    ],\n    \"products_diagram\": [\n        {\n            \"year\": 2023,\n            \"month\": 12,\n            \"products_count\": 2\n        },\n        {\n            \"year\": 2024,\n            \"month\": 2,\n            \"products_count\": 3\n        }\n    ],\n    \"users_diagram\": [\n        {\n            \"year\": 2024,\n            \"month\": 1,\n            \"total_cutomers\": 8\n        },\n        {\n            \"year\": 2024,\n            \"month\": 2,\n            \"total_cutomers\": 1\n        }\n    ]\n}"}],"_postman_id":"8817bb29-aff4-4dab-af88-4d818f1361ae"},{"name":"provider tables reports","id":"aceb03fa-f67b-417e-9d26-66d6362c5c33","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MzI0MjU2LCJpYXQiOjE3MDczMjMwNTYsImp0aSI6IjUxMzE2NzNmMTA5ZjQ2ZjFiZDc3MmEzOWE3MmFiNjE0IiwidXNlcl9pZCI6MzB9.a0uGYr4ggWlGZVxjxmP32ph9A66i99sOUIz4t1R9zNc","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/service_providers/reports/tables/","description":"<p>This HTTP GET request retrieves a report tables for service providers. The response contains tables for users, services, and products. The users_table provides information about the general check and treatment finished status for users. The services_table includes details about various check services such as check ear, Endocrine, eye, and stomach. The products_table lists different products along with their respective counts.</p>\n<p>this endpoint <strong>for service providers only</strong></p>\n","urlObject":{"path":["service_providers","reports","tables",""],"host":["http://127.0.0.1:8000/api/v1"],"query":[],"variable":[]}},"response":[{"id":"03adcbef-523f-477e-acd2-38e5b9a0f1ff","name":"provider tables reports","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MzI0MjU2LCJpYXQiOjE3MDczMjMwNTYsImp0aSI6IjUxMzE2NzNmMTA5ZjQ2ZjFiZDc3MmEzOWE3MmFiNjE0IiwidXNlcl9pZCI6MzB9.a0uGYr4ggWlGZVxjxmP32ph9A66i99sOUIz4t1R9zNc","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/service_providers/reports/tables/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 07 Feb 2024 16:24:46 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.11.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language"},{"key":"Allow","value":"OPTIONS, GET"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"403"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"users_table\": {\n        \"General_Check\": {\n            \"not_active\": 0,\n            \"active\": 3\n        },\n        \"Treatment_Finished\": {\n            \"not_active\": 0,\n            \"active\": 2\n        }\n    },\n    \"services_table\": {\n        \"check ear\": {\n            \"active\": 1,\n            \"not-active\": 1\n        },\n        \"check Endocrine\": {\n            \"active\": 1,\n            \"not-active\": 0\n        },\n        \"check eye\": {\n            \"active\": 0,\n            \"not-active\": 1\n        },\n        \"check stomach\": {\n            \"active\": 1,\n            \"not-active\": 0\n        }\n    },\n    \"products_table\": {\n        \"check feet\": 0,\n        \"prodol strong\": 0,\n        \"unadol\": 1,\n        \"unadol cold and flu\": 1,\n        \"unadol extra\": 3\n    }\n}"}],"_postman_id":"aceb03fa-f67b-417e-9d26-66d6362c5c33"}],"id":"b4f6ffde-cd25-48bd-b47a-78f755037df5","_postman_id":"b4f6ffde-cd25-48bd-b47a-78f755037df5","description":""},{"name":"category related service providers locations","id":"f4562dc4-27a8-47e8-b145-3e4289079a1d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://127.0.0.1:8000/api/v1/service_providers/locations/category/1/","description":"<p>This endpoint retrieves service provider locations for a specific category.</p>\n<p><strong>this endpoint for everybody</strong></p>\n<p>The response will be a JSON array containing objects with the following properties:</p>\n<ul>\n<li>id (number): The unique identifier for the location</li>\n<li>service_provider (string): The name of the service provider</li>\n<li>location (object): An object containing the type of location and its coordinates<ul>\n<li>type (string): The type of location</li>\n<li>coordinates (array): An array of coordinates</li>\n</ul>\n</li>\n<li>opening (string): The opening time of the location</li>\n<li>closing (string): The closing time of the location</li>\n<li>crew (string): Details about the crew at the location</li>\n<li>created_at (string): The timestamp of when the location was created</li>\n</ul>\n<p>Example response:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">[\n  {\n    \"id\": 0,\n    \"service_provider\": \"\",\n    \"location\": {\n      \"type\": \"\",\n      \"coordinates\": [0]\n    },\n    \"opening\": \"\",\n    \"closing\": \"\",\n    \"crew\": \"\",\n    \"created_at\": \"\"\n  }\n]\n\n</code></pre>\n","urlObject":{"path":["service_providers","locations","category","1",""],"host":["http://127.0.0.1:8000/api/v1"],"query":[],"variable":[]}},"response":[{"id":"43a57517-753a-4550-86d8-de17237bd2ab","name":"service providers locations category read","originalRequest":{"method":"GET","header":[],"url":"http://127.0.0.1:8000/api/v1/service_providers/locations/category/2/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 06 Dec 2023 17:33:24 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.9.10"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language, Cookie"},{"key":"Allow","value":"OPTIONS, GET"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"445"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"same-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 2,\n        \"service_provider\": \"service1\",\n        \"location\": {\n            \"type\": \"Point\",\n            \"coordinates\": [\n                0.97933945403016,\n                55.67049164664836\n            ]\n        },\n        \"opening\": \"16:21:25\",\n        \"closing\": \"12:00:00\",\n        \"crew\": \"tareq\",\n        \"created_at\": \"2023-12-01T16:21:32.560511Z\"\n    },\n    {\n        \"id\": 3,\n        \"service_provider\": \"service1\",\n        \"location\": {\n            \"type\": \"Point\",\n            \"coordinates\": [\n                0.94775376067508,\n                55.72079978388958\n            ]\n        },\n        \"opening\": \"16:26:14\",\n        \"closing\": \"16:26:16\",\n        \"crew\": \"tareq maamoun\",\n        \"created_at\": \"2023-12-01T16:26:22.091842Z\"\n    }\n]"}],"_postman_id":"f4562dc4-27a8-47e8-b145-3e4289079a1d"},{"name":"category related service providers","id":"7778abd2-e07c-423d-8860-fbbc378bebbe","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://127.0.0.1:8000/api/v1/service_providers/category/1/","description":"<h1 id=\"get-service-provider-by-category\">Get Service Provider by Category</h1>\n<p>This endpoint retrieves a service providers related to specific category by category id</p>\n<p><strong>this endpoint for everybody</strong></p>\n<h2 id=\"request\">Request</h2>\n<h3 id=\"http-request\">HTTP Request</h3>\n<p><code>GET http://127.0.0.1:8000/api/v1/service_providers/category/1/</code></p>\n<h2 id=\"response\">Response</h2>\n<ul>\n<li>Status: 200</li>\n<li>Content-Type: application/json</li>\n</ul>\n<p>Example Response:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">[\n    {\n        \"id\": 0,\n        \"user\": {\n            \"email\": \"\",\n            \"phone\": \"\",\n            \"image\": \"\",\n            \"user_type\": \"\"\n        },\n        \"provider_file\": \"\",\n        \"category\": 0,\n        \"business_name\": \"\",\n        \"bank_name\": \"\",\n        \"iban\": \"\",\n        \"swift_code\": \"\",\n        \"account_status\": \"\"\n    }\n]\n\n</code></pre>\n","urlObject":{"path":["service_providers","category","1",""],"host":["http://127.0.0.1:8000/api/v1"],"query":[],"variable":[]}},"response":[{"id":"778142c2-0d3f-4dcc-8afd-b15429ecb6e9","name":"service providers category read","originalRequest":{"method":"GET","header":[],"url":"http://127.0.0.1:8000/api/v1/service_providers/category/2/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sun, 10 Dec 2023 07:07:09 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.9.10"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language, Cookie"},{"key":"Allow","value":"GET, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"401"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"same-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 4,\n        \"user\": {\n            \"email\": \"service_provider@gmail.com\",\n            \"phone\": \"+96325354245124\",\n            \"image\": \"/media/profile_images/2023/12/7/a6b2ac3b8db940599575d03258587646.png\",\n            \"user_type\": \"SERVICE_PROVIDER\"\n        },\n        \"provider_file\": \"/media/service_providers/42fe34b0235e4b5189e7bbeac47fd8cf.png\",\n        \"category\": 2,\n        \"business_name\": \"service\",\n        \"bank_name\": \"service\",\n        \"iban\": \"service\",\n        \"swift_code\": \"service\",\n        \"account_status\": \"accepted\"\n    }\n]"}],"_postman_id":"7778abd2-e07c-423d-8860-fbbc378bebbe"},{"name":"search with name or email","event":[{"listen":"test","script":{"id":"99dc5f7f-19da-4c56-a8f1-6528fb310c7a","exec":["\r","pm.test(\"Response status code is 200\", function () {\r","    pm.expect(pm.response.code).to.equal(200);\r","});\r","\r","\r","pm.test(\"Response content type is application/json\", function () {\r","    pm.expect(pm.response.headers.get(\"Content-Type\")).to.include(\"application/json\");\r","});\r","\r","\r","pm.test(\"Id is a non-negative integer\", function () {\r","  const responseData = pm.response.json();\r","  \r","  pm.expect(responseData).to.be.an('array');\r","  responseData.forEach(function(item) {\r","    pm.expect(item.id).to.be.a('number').and.to.be.at.least(0, \"Id should be a non-negative integer\");\r","  });\r","});\r","\r","\r","pm.test(\"Business name is a non-empty string\", function () {\r","    const responseData = pm.response.json();\r","    \r","    responseData.forEach(function(provider) {\r","        pm.expect(provider.business_name).to.be.a('string').and.to.have.lengthOf.at.least(1, \"Business name should not be empty\");\r","    });\r","});\r","\r",""],"type":"text/javascript"}}],"id":"707b2874-d19e-4f34-9c45-45611e4c3b34","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://127.0.0.1:8000/api/v1/service_providers/search_by_email_&_name/our_new_name/","description":"<p>This endpoint makes an HTTP GET request to search for service providers by email and name with the provided name parameter in the URL. The response returns a JSON array with details of the service providers matching the search criteria.</p>\n<p>This endpoint is <strong>for everybody.</strong></p>\n<p>The response status returned is 200, and the content type is application/json. The JSON array includes objects with keys such as \"id\", \"user\" (containing \"email\", \"phone\", \"image\", and \"user_type\" keys), \"provider_file\", \"category\", \"business_name\", \"bank_name\", \"iban\", \"swift_code\", and \"account_status\".</p>\n<p>Add documentation.</p>\n","urlObject":{"path":["service_providers","search_by_email_&_name","our_new_name",""],"host":["http://127.0.0.1:8000/api/v1"],"query":[],"variable":[]}},"response":[{"id":"77a03d12-c047-47e0-9451-1d47dba71e52","name":"search with name or email","originalRequest":{"method":"GET","header":[],"url":"http://127.0.0.1:8000/api/v1/service_providers/search_by_email_&_name/our_new_name/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 07 Feb 2024 16:25:09 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.11.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language, Cookie"},{"key":"Allow","value":"OPTIONS, GET"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"415"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 31,\n        \"user\": {\n            \"email\": \"computerscience.magic@gmail.com\",\n            \"phone\": \"+963985263147\",\n            \"image\": \"/media/profile_images/2023/12/5/af64515da0f0425d9a6b5fde5f30a5cd.jpg\",\n            \"user_type\": \"SERVICE_PROVIDER\"\n        },\n        \"provider_file\": \"/media/service_providers/e6f5d3349e084ca7bd58e8e4c845784b.json\",\n        \"category\": 1,\n        \"business_name\": \"our_new_name\",\n        \"bank_name\": \"Albarka\",\n        \"iban\": \"i1b2c3n5\",\n        \"swift_code\": \"s5w4i3f2t2\",\n        \"account_status\": \"Accepted\"\n    }\n]"}],"_postman_id":"707b2874-d19e-4f34-9c45-45611e4c3b34"}],"id":"879547c8-a715-48a3-9403-f1d3489311c0","_postman_id":"879547c8-a715-48a3-9403-f1d3489311c0","description":""},{"name":"users","item":[{"name":"service_provider","item":[{"name":"specific service provider","item":[{"name":"get service provider","id":"d4cfa5ab-da94-414e-8a85-e52a493e640d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA2Nzc1ODUxLCJpYXQiOjE3MDY3NzQ2NTEsImp0aSI6ImVmZGI5ZjVlZDc1MDQ0ZWJiYmY3ZmQ3OWY1M2NkYjA1IiwidXNlcl9pZCI6Mjl9.jhfQ_bmCTznk6lql6QmzTEIay9GoLZoUVP4M3b4GjN4","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/users/service_provider/31/","description":"<p>This endpoint retrieves information about a specific service provider <strong>for everybody</strong>. The response will contain details such as user ID, email, phone number, user type, provider file, category, business name, bank name, IBAN, swift code, and account status. The response will be in JSON format with a status code of 200.</p>\n","urlObject":{"path":["users","service_provider","31",""],"host":["http://127.0.0.1:8000/api/v1"],"query":[],"variable":[]}},"response":[{"id":"0e058905-7d01-411e-b32d-729d610f0fac","name":"get service provider","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzAyMjMwMjYzLCJpYXQiOjE3MDIyMjkwNjMsImp0aSI6IjAwYjAzMTE3ZjkzYjQ5ODJiYjA1NWUwZTdkOWRkNTVhIiwidXNlcl9pZCI6MX0.giWdzq1L0QWO8tsBYHmQ9wCgKGKEfMgqn6GiECcG-uU","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/users/service_provider/4/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sun, 10 Dec 2023 17:38:55 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.9.10"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language"},{"key":"Allow","value":"GET, PUT, PATCH, DELETE, HEAD, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"441"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"same-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 4,\n    \"user\": {\n        \"email\": \"service_provider@gmail.com\",\n        \"phone\": \"+96325354245124\",\n        \"image\": \"http://127.0.0.1:8000/media/profile_images/2023/12/7/a6b2ac3b8db940599575d03258587646.png\",\n        \"user_type\": \"SERVICE_PROVIDER\"\n    },\n    \"provider_file\": \"http://127.0.0.1:8000/media/service_providers/42fe34b0235e4b5189e7bbeac47fd8cf.png\",\n    \"category\": 2,\n    \"business_name\": \"service\",\n    \"bank_name\": \"service\",\n    \"iban\": \"service\",\n    \"swift_code\": \"service\",\n    \"account_status\": \"accepted\"\n}"}],"_postman_id":"d4cfa5ab-da94-414e-8a85-e52a493e640d"},{"name":"delete service provider","id":"fb98b010-4335-4942-bfbb-0ce57ed4b105","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzAyMjMxMjIxLCJpYXQiOjE3MDIyMzAwMjEsImp0aSI6IjcxYTU0ODMwNDc1NzQ1MmJhYjBjM2ZmMmM1ZjhhNmZmIiwidXNlcl9pZCI6NH0.5EggafsinuS-Wp1NqveK4idIrUSJsrOUeQUSBJvJ2hY","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/users/service_provider/31/","description":"<p>Delete service provider.</p>\n<p><strong>for service providers and admins only</strong></p>\n","urlObject":{"path":["users","service_provider","31",""],"host":["http://127.0.0.1:8000/api/v1"],"query":[],"variable":[]}},"response":[{"id":"10d4f858-7ea0-4af0-871a-089d9f9734e7","name":"delete service provider","originalRequest":{"method":"DELETE","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzAyMjMxMjIxLCJpYXQiOjE3MDIyMzAwMjEsImp0aSI6IjcxYTU0ODMwNDc1NzQ1MmJhYjBjM2ZmMmM1ZjhhNmZmIiwidXNlcl9pZCI6NH0.5EggafsinuS-Wp1NqveK4idIrUSJsrOUeQUSBJvJ2hY","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/users/service_provider/4/"},"status":"No Content","code":204,"_postman_previewlanguage":"plain","header":[{"key":"Date","value":"Sun, 10 Dec 2023 17:46:30 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.9.10"},{"key":"Vary","value":"Accept, origin, Accept-Language"},{"key":"Allow","value":"GET, PUT, PATCH, DELETE, HEAD, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"0"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"same-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":null}],"_postman_id":"fb98b010-4335-4942-bfbb-0ce57ed4b105"},{"name":"update service provider","id":"45e4a93f-758c-426b-ad12-abc1e6fbafb4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA2Nzc1OTg4LCJpYXQiOjE3MDY3NzQ3ODgsImp0aSI6IjYwZTY5ZGE4YjFkMTRkNjFiZDQ5ZjUxZGM0NjZkOWY5IiwidXNlcl9pZCI6MzB9.QPxwWi4Lssj0juurrhHi-6g-cgmTRnYS8UHIlIbpaj0","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"business_name\": \"our_new_name\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"http://127.0.0.1:8000/api/v1/users/service_provider/31/","description":"<p>This HTTP PATCH request is used to update the details of a specific service provider <strong>for admins and serveice providers only</strong>. The request should be sent to http://127.0.0.1:8000/api/v1/users/service_provider/31/ with a payload in the raw request body type. In the last call, the payload included the \"business_name\" field with an empty value.</p>\n<h3 id=\"request-body\">Request Body</h3>\n<ul>\n<li>business_name (string, required): The name of the business.</li>\n</ul>\n<h3 id=\"response\">Response</h3>\n<ul>\n<li>Status: 202</li>\n<li>Content-Type: application/json</li>\n<li>id (integer): The ID of the service provider.</li>\n<li>user (object): Details of the user associated with the service provider.<ul>\n<li>email (string): Email of the user.</li>\n<li>phone (string): Phone number of the user.</li>\n<li>image (string): Image URL of the user.</li>\n<li>user_type (string): Type of the user.</li>\n</ul>\n</li>\n<li>provider_file (string): File related to the provider.</li>\n<li>category (integer): Category of the service provider.</li>\n<li>business_name (string): Name of the business.</li>\n<li>bank_name (string): Name of the bank associated with the provider.</li>\n<li>iban (string): International Bank Account Number (IBAN) of the provider.</li>\n<li>swift_code (string): SWIFT code of the provider's bank.</li>\n<li>account_status (string): Status of the account.</li>\n</ul>\n<h3 id=\"example-response\">Example Response</h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"id\": 0,\n    \"user\": {\n        \"email\": \"\",\n        \"phone\": \"\",\n        \"image\": \"\",\n        \"user_type\": \"\"\n    },\n    \"provider_file\": \"\",\n    \"category\": 0,\n    \"business_name\": \"\",\n    \"bank_name\": \"\",\n    \"iban\": \"\",\n    \"swift_code\": \"\",\n    \"account_status\": \"\"\n}\n\n</code></pre>\n","urlObject":{"path":["users","service_provider","31",""],"host":["http://127.0.0.1:8000/api/v1"],"query":[],"variable":[]}},"response":[{"id":"f038cb3b-c0ef-42c2-ad92-f4c71ecb4c65","name":"update service provider","originalRequest":{"method":"PATCH","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzAyMjMxMjIxLCJpYXQiOjE3MDIyMzAwMjEsImp0aSI6IjcxYTU0ODMwNDc1NzQ1MmJhYjBjM2ZmMmM1ZjhhNmZmIiwidXNlcl9pZCI6NH0.5EggafsinuS-Wp1NqveK4idIrUSJsrOUeQUSBJvJ2hY","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"business_name\": \"new_name\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"http://127.0.0.1:8000/api/v1/users/service_provider/4/"},"status":"Accepted","code":202,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sun, 10 Dec 2023 17:44:05 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.9.10"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language"},{"key":"Allow","value":"GET, PUT, PATCH, DELETE, HEAD, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"471"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"same-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 4,\n    \"user\": {\n        \"email\": \"service_provider@gmail.com\",\n        \"phone\": \"+963000000000\",\n        \"image\": \"http://127.0.0.1:8000/media/http%3A/127.0.0.1%3A8000/media/profile_images/2023/12/7/a6b2ac3b8db940599575d03258587646.png\",\n        \"user_type\": \"SERVICE_PROVIDER\"\n    },\n    \"provider_file\": \"http://127.0.0.1:8000/media/service_providers/42fe34b0235e4b5189e7bbeac47fd8cf.png\",\n    \"category\": 2,\n    \"business_name\": \"new_name\",\n    \"bank_name\": \"service\",\n    \"iban\": \"service\",\n    \"swift_code\": \"service\",\n    \"account_status\": \"accepted\"\n}"}],"_postman_id":"45e4a93f-758c-426b-ad12-abc1e6fbafb4"}],"id":"a4edc0c7-3534-4c01-ae10-b2882eb7fc69","_postman_id":"a4edc0c7-3534-4c01-ae10-b2882eb7fc69","description":""},{"name":"service providers list","id":"b50d538c-bcb1-42b2-a9eb-76423f5a112f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"http://127.0.0.1:8000/api/v1/users/service_providers/all/","description":"<h1 id=\"get-all-service-providers\">Get All Service Providers</h1>\n<p>This endpoint makes an HTTP GET request to retrieve a list of all service providers for [authenticated and un authenticated] users. The response will be in JSON format and will include details such as the unique identifier (id), user information (email, phone, image, user_type), provider file, category, business name, bank name, IBAN, SWIFT code, and account status. The status code for a successful execution is 200.</p>\n<h3 id=\"http-request\">HTTP Request</h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-http\">GET http://127.0.0.1:8000/api/v1/users/service_providers/all/\n\n</code></pre>\n<h3 id=\"response\">Response</h3>\n<ul>\n<li>Status: 200</li>\n<li>Content-Type: application/json</li>\n</ul>\n<p>Example response:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">[\n    {\n        \"id\": 0,\n        \"user\": {\n            \"email\": \"\",\n            \"phone\": \"\",\n            \"image\": \"\",\n            \"user_type\": \"\"\n        },\n        \"provider_file\": \"\",\n        \"category\": 0,\n        \"business_name\": \"\",\n        \"bank_name\": \"\",\n        \"iban\": \"\",\n        \"swift_code\": \"\",\n        \"account_status\": \"\"\n    }\n]\n\n</code></pre>\n","urlObject":{"path":["users","service_providers","all",""],"host":["http://127.0.0.1:8000/api/v1"],"query":[],"variable":[]}},"response":[{"id":"a2e3cbb7-bd63-4858-9b13-249c0d18a84f","name":"service providers list","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"http://127.0.0.1:8000/api/v1/users/service_providers/all/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 07 Feb 2024 18:22:38 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.11.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language, Cookie"},{"key":"Allow","value":"GET, HEAD, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"901"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 30,\n        \"user\": {\n            \"email\": \"maamoun3911@gmail.com\",\n            \"phone\": \"+963987456321\",\n            \"image\": \"http://127.0.0.1:8000/media/profile_images/2023/12/5/9bc801f09fb34ceea78da043787ca474.png\",\n            \"user_type\": \"SERVICE_PROVIDER\"\n        },\n        \"provider_file\": \"http://127.0.0.1:8000/media/service_providers/f59ed3413742457ea857e8c41f955228.json\",\n        \"category\": 1,\n        \"business_name\": \"Remostart\",\n        \"bank_name\": \"Albarka\",\n        \"iban\": \"i1b2a3n4\",\n        \"swift_code\": \"sw87t09co7de\",\n        \"account_status\": \"pending\"\n    },\n    {\n        \"id\": 31,\n        \"user\": {\n            \"email\": \"computerscience.magic@gmail.com\",\n            \"phone\": \"+963985263147\",\n            \"image\": \"http://127.0.0.1:8000/media/profile_images/2023/12/5/af64515da0f0425d9a6b5fde5f30a5cd.jpg\",\n            \"user_type\": \"SERVICE_PROVIDER\"\n        },\n        \"provider_file\": \"http://127.0.0.1:8000/media/service_providers/e6f5d3349e084ca7bd58e8e4c845784b.json\",\n        \"category\": 1,\n        \"business_name\": \"our_new_name\",\n        \"bank_name\": \"Albarka\",\n        \"iban\": \"i1b2c3n5\",\n        \"swift_code\": \"s5w4i3f2t2\",\n        \"account_status\": \"Accepted\"\n    }\n]"}],"_postman_id":"b50d538c-bcb1-42b2-a9eb-76423f5a112f"},{"name":"accept service provider","id":"0045f601-dd86-412d-9c38-ddb3c3e7dd4c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MzMxNDQzLCJpYXQiOjE3MDczMzAyNDMsImp0aSI6ImUzNjgzNjM2NzVmNzRjNGI5ZGU1YzdmY2U3ZDRjMmI3IiwidXNlcl9pZCI6MjN9.odT3_gt9ZADGjueHbwR2g2gwpwazdrQ-J51pUhpYGW4","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/users/service_providers/change_account_status/accepted/31/","description":"<p>This endpoint is used to change the account status of a service provider to [accepted or rejected]. It is a POST request to the specified URL with the service provider ID included in the path parameter and service provider account status.</p>\n<p>this endpoint is <strong>for admins only.</strong></p>\n<p>The response to the request returns a status code of 202 and a JSON object with a \"message\" key, which may contain additional information about the status change.</p>\n","urlObject":{"path":["users","service_providers","change_account_status","accepted","31",""],"host":["http://127.0.0.1:8000/api/v1"],"query":[],"variable":[]}},"response":[{"id":"c4409f42-94be-4f26-9194-50fea2a2dc66","name":"accept service provider","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MzMxNDQzLCJpYXQiOjE3MDczMzAyNDMsImp0aSI6ImUzNjgzNjM2NzVmNzRjNGI5ZGU1YzdmY2U3ZDRjMmI3IiwidXNlcl9pZCI6MjN9.odT3_gt9ZADGjueHbwR2g2gwpwazdrQ-J51pUhpYGW4","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/users/service_providers/change_account_status/accepted/31/"},"status":"Accepted","code":202,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 07 Feb 2024 18:24:25 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.11.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language"},{"key":"Allow","value":"POST, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"35"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Successfully Accepted\"\n}"}],"_postman_id":"0045f601-dd86-412d-9c38-ddb3c3e7dd4c"}],"id":"1bdbf255-dd56-4f28-812d-7c6fbd1229c9","_postman_id":"1bdbf255-dd56-4f28-812d-7c6fbd1229c9","description":""},{"name":"change_email (authenticated users))","item":[{"name":"1] change email","id":"df0fdbcc-43e6-45e2-abf0-e98b4bcf69b5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MzIwMjE4LCJpYXQiOjE3MDczMTkwMTgsImp0aSI6IjBiYjFlNTExMjE3ZjRjMDk4ZmJjZTk5NjNlZmVkYjUzIiwidXNlcl9pZCI6MjN9.LV9vrIGSriteGtnrbTTR-_6HD5X3mIv8P0BNP-GtiQs","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"new_email\": \"maamoun.haj.najeeb@gmail.com\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/api/v1/users/change_email/","description":"<p>give authenticated user ability to change its email\nsend a confirmation message to the new email.</p>\n","urlObject":{"path":["users","change_email",""],"host":["http://127.0.0.1:8000/api/v1"],"query":[],"variable":[]}},"response":[{"id":"6d4bb534-93c6-4595-bdb6-584a0d07d3c3","name":"1] change email","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MzIwMjE4LCJpYXQiOjE3MDczMTkwMTgsImp0aSI6IjBiYjFlNTExMjE3ZjRjMDk4ZmJjZTk5NjNlZmVkYjUzIiwidXNlcl9pZCI6MjN9.LV9vrIGSriteGtnrbTTR-_6HD5X3mIv8P0BNP-GtiQs","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"new_email\": \"maamoun.haj.najeeb@gmail.com\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/api/v1/users/change_email/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 07 Feb 2024 15:17:22 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.11.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language"},{"key":"Allow","value":"OPTIONS, POST"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"71"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"confirmation message sent to maamoun.haj.najeeb@gmail.com\"\n}"}],"_postman_id":"df0fdbcc-43e6-45e2-abf0-e98b4bcf69b5"},{"name":"2] accept new email","id":"23b34cc2-0eed-4900-83d6-f3560c0de37f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MzIwMjE4LCJpYXQiOjE3MDczMTkwMTgsImp0aSI6IjBiYjFlNTExMjE3ZjRjMDk4ZmJjZTk5NjNlZmVkYjUzIiwidXNlcl9pZCI6MjN9.LV9vrIGSriteGtnrbTTR-_6HD5X3mIv8P0BNP-GtiQs","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/users/accept_new_email/7675865029667628","urlObject":{"path":["users","accept_new_email","7675865029667628"],"host":["http://127.0.0.1:8000/api/v1"],"query":[],"variable":[]}},"response":[{"id":"f7fca354-d067-4763-892e-fe248f674a19","name":"2] accept new email","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MzIwMjE4LCJpYXQiOjE3MDczMTkwMTgsImp0aSI6IjBiYjFlNTExMjE3ZjRjMDk4ZmJjZTk5NjNlZmVkYjUzIiwidXNlcl9pZCI6MjN9.LV9vrIGSriteGtnrbTTR-_6HD5X3mIv8P0BNP-GtiQs","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/users/accept_new_email/7675865029667628"},"status":"Accepted","code":202,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 07 Feb 2024 15:18:50 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.11.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language"},{"key":"Allow","value":"GET, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"45"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"user email changed successfully\"\n}"}],"_postman_id":"23b34cc2-0eed-4900-83d6-f3560c0de37f"}],"id":"20c8054d-4b5f-4eb4-b5a1-f9df08f0d622","_postman_id":"20c8054d-4b5f-4eb4-b5a1-f9df08f0d622","description":""},{"name":"specific user","item":[{"name":"get","id":"dd027a89-68bc-40a2-864d-302757028d0d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA2NzY5OTAxLCJpYXQiOjE3MDY3Njg3MDEsImp0aSI6ImU3MTY0ZjNhZWFjYjRlYmRhODkzYmEwNTQ1ZTJlZmNmIiwidXNlcl9pZCI6MjN9.7zHgQRZxC4qzjSl7nfdijF7SEF_3ZUIy9e4wExQw4HQ","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/users/31/","description":"<p>This endpoint makes an HTTP GET request to retrieve details of a specific user with the ID 31. The response will include the user's ID, phone number, email, image, user type, and date joined. An example response would be:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"id\": 0,\n    \"phone\": \"\",\n    \"email\": \"\",\n    \"image\": \"\",\n    \"user_type\": \"\",\n    \"date_joined\": \"\",\n}\n\n</code></pre>\n","urlObject":{"path":["users","31",""],"host":["http://127.0.0.1:8000/api/v1"],"query":[],"variable":[]}},"response":[{"id":"37681fc2-1ec9-4596-94ce-6909b636497f","name":"get","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"Basic <credentials>","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/users/1/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 05 Dec 2023 22:13:37 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.9.10"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language"},{"key":"Allow","value":"GET, PUT, PATCH, DELETE, HEAD, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"196"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"same-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 1,\n    \"phone\": \"123123\",\n    \"email\": \"admin1@gmail.com\",\n    \"image\": \"http://127.0.0.1:8000/media/defaults/default_profile.jpg\",\n    \"user_type\": \"ADMIN\",\n    \"date_joined\": \"2023-12-01T15:25:18.404245Z\",\n    \"groups\": [\n        2\n    ]\n}"}],"_postman_id":"dd027a89-68bc-40a2-864d-302757028d0d"},{"name":"delete","id":"e028239e-8794-4b65-a1d4-694145009e4b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA2NzY5OTAxLCJpYXQiOjE3MDY3Njg3MDEsImp0aSI6ImU3MTY0ZjNhZWFjYjRlYmRhODkzYmEwNTQ1ZTJlZmNmIiwidXNlcl9pZCI6MjN9.7zHgQRZxC4qzjSl7nfdijF7SEF_3ZUIy9e4wExQw4HQ","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/users/31/","description":"<p>general retrieve, update, destroy api for profile owners and admins\nnot for updating email or password</p>\n","urlObject":{"path":["users","31",""],"host":["http://127.0.0.1:8000/api/v1"],"query":[],"variable":[]}},"response":[{"id":"8d6ae896-995a-43b7-be3a-18662f3e3e33","name":"delete","originalRequest":{"method":"DELETE","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"}],"url":"http://127.0.0.1:8000/api/v1/users/31/"},"status":"No Content","code":204,"_postman_previewlanguage":"text","header":[],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"e028239e-8794-4b65-a1d4-694145009e4b"},{"name":"update","id":"86b0572c-de86-4266-8564-c9679c244167","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MzE5NDIyLCJpYXQiOjE3MDczMTgyMjIsImp0aSI6ImUzZTQ3MTI0OWQ4ZjRiNTY5NmM0NTY0YmYxNTk0YmE4IiwidXNlcl9pZCI6MjN9.WRkJqpJJKJgl_2ckgDk7kwRdPk2BgxqrRuA1f0lu9Ms","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"phone\": \"+963985263147\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"http://127.0.0.1:8000/api/v1/users/31/","description":"<p>This endpoint allows updating user information via a PATCH request to the specified user ID in the URL</p>\n<p><strong>This endpoint is for authenticated users.</strong></p>\n<h3 id=\"request-body\">Request Body</h3>\n<p>The request should include a JSON payload in the raw request body type. The payload should contain the updated user information, such as the phone number.</p>\n<h3 id=\"response\">Response</h3>\n<p>Upon a successful update, the server will respond with a status code of 200 and a JSON object containing the updated user details, including the user ID, phone number, email, image, user type, and date joined.</p>\n<h4 id=\"example-response\">Example Response</h4>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"id\": 0,\n    \"phone\": \"\",\n    \"email\": \"\",\n    \"image\": \"\",\n    \"user_type\": \"\",\n    \"date_joined\": \"\"\n}\n\n</code></pre>\n","urlObject":{"path":["users","31",""],"host":["http://127.0.0.1:8000/api/v1"],"query":[],"variable":[]}},"response":[{"id":"937efd6f-261b-45e1-8b1d-0d7cfd0fb4b1","name":"update","originalRequest":{"method":"PATCH","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MzE5NDIyLCJpYXQiOjE3MDczMTgyMjIsImp0aSI6ImUzZTQ3MTI0OWQ4ZjRiNTY5NmM0NTY0YmYxNTk0YmE4IiwidXNlcl9pZCI6MjN9.WRkJqpJJKJgl_2ckgDk7kwRdPk2BgxqrRuA1f0lu9Ms","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"phone\": \"+963985263147\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"http://127.0.0.1:8000/api/v1/users/31/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 07 Feb 2024 15:15:48 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.11.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language"},{"key":"Allow","value":"GET, PUT, PATCH, DELETE, HEAD, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"255"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 31,\n    \"phone\": \"+963985263147\",\n    \"email\": \"computerscience.magic@gmail.com\",\n    \"image\": \"http://127.0.0.1:8000/media/profile_images/2023/12/5/af64515da0f0425d9a6b5fde5f30a5cd.jpg\",\n    \"user_type\": \"SERVICE_PROVIDER\",\n    \"date_joined\": \"2023-12-05T17:11:25.678776+03:00\"\n}"}],"_postman_id":"86b0572c-de86-4266-8564-c9679c244167"}],"id":"7074ca53-cc4c-4e4c-ae8e-e1462d04d473","_postman_id":"7074ca53-cc4c-4e4c-ae8e-e1462d04d473","description":""},{"name":"signup","item":[{"name":"1] sign up as service provider","id":"e3e5f263-a883-47e6-8141-470c40a57108","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"user\": {\n    \"email\": \"<email>\",\n    \"phone\": \"<string>\",\n    \"password\": \"<string>\",\n    \"password2\": \"<string>\",\n    \"image\": \"<uri>\",\n    \"user_type\": \"ADMIN\"\n  },\n  \"category\": \"<integer>\",\n  \"business_name\": \"<string>\",\n  \"bank_name\": \"<string>\",\n  \"iban\": \"<string>\",\n  \"swift_code\": \"<string>\",\n  \"provider_file\": \"<uri>\",\n  \"account_status\": \"pending\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"http://127.0.0.1:8000/api/v1/users/service_providers/","description":"<p>signing up service providers for unauthenticated users</p>\n<p>fields:</p>\n<ul>\n<li>category: take the specified category id (not null)</li>\n<li>business_name: CharField (not null and unique)</li>\n<li>bank_name: CharField (not null and unique)</li>\n<li>iban: CharField (not null and unique)</li>\n<li>provider_file: FileField (not null)</li>\n<li>user: takes the same user fields</li>\n</ul>\n<p>Response status code:</p>\n<p>201: the account successfully created and you have to go and activate it from the link in your mail box</p>\n<p>400: there's something wrong with your body values or one of these fields are incorrect [phone, user_type], check the response message</p>\n<p>406: this means that the service provider tried to register and didn't go back to his email to check the activation link.</p>\n","urlObject":{"path":["users","service_providers",""],"host":["http://127.0.0.1:8000/api/v1"],"query":[],"variable":[]}},"response":[{"id":"b3f26571-41c5-402b-a792-f206ea0df4cf","name":"Untitled Response","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"}],"body":{"mode":"raw","raw":"{\n  \"user\": {\n    \"email\": \"<email>\",\n    \"phone\": \"<string>\",\n    \"password\": \"<string>\",\n    \"password2\": \"<string>\",\n    \"id\": \"<integer>\",\n    \"image\": \"<uri>\",\n    \"user_type\": \"ADMIN\"\n  },\n  \"category\": \"<integer>\",\n  \"business_name\": \"<string>\",\n  \"bank_name\": \"<string>\",\n  \"iban\": \"<string>\",\n  \"swift_code\": \"<string>\",\n  \"id\": \"<integer>\",\n  \"provider_file\": \"<uri>\",\n  \"account_status\": \"pending\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"http://127.0.0.1:8000/api/v1/users/service_providers/"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"user\": {\n    \"email\": \"<email>\",\n    \"phone\": \"<string>\",\n    \"password\": \"<string>\",\n    \"password2\": \"<string>\",\n    \"id\": \"<integer>\",\n    \"image\": \"<uri>\",\n    \"user_type\": \"ADMIN\"\n  },\n  \"category\": \"<integer>\",\n  \"business_name\": \"<string>\",\n  \"bank_name\": \"<string>\",\n  \"iban\": \"<string>\",\n  \"swift_code\": \"<string>\",\n  \"id\": \"<integer>\",\n  \"provider_file\": \"<uri>\",\n  \"account_status\": \"pending\"\n}"}],"_postman_id":"e3e5f263-a883-47e6-8141-470c40a57108"},{"name":"1] sign up as {patient, super_admin, admin}","id":"4d4b3fb3-5ae2-4f3a-b53f-c5a2ee59413c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"formdata","formdata":[{"key":"email","value":"maamouan.haj.najeeb@hotmail.com","type":"text"},{"key":"password","value":"sb_gtab101enterr","type":"text"},{"key":"password2","value":"sb_gtab101enterr","type":"text"},{"key":"user_type","value":"USER","type":"text"},{"key":"image","type":"file","fileNotInWorkingDirectoryWarning":"This file isn't in your working directory. Teammates you share this request with won't be able to use this file. To make collaboration easier you can setup your working directory in Settings.","filesNotInWorkingDirectory":["/C:/Users/HP/Desktop/docerkfile.png"],"src":"/C:/Users/HP/Desktop/docerkfile.png"},{"key":"phone","value":"+9639874125633","type":"text"}]},"url":"http://127.0.0.1:8000/api/v1/users/signup/","description":"<p>sign up as user, admin, and super_admin<br />after signing up, you need to confirm your email</p>\n<p>this endpoint accepts HTTP POST method only</p>\n<p>body fields:</p>\n<ul>\n<li>email: StringField (not null)</li>\n<li>phone: StringField (not null) (phone number must be between 12, 15 digits with a + at the start)</li>\n<li>password: StringField (not null)</li>\n<li>password2: StringField (not null)</li>\n<li>image: ImageField (nullable)</li>\n<li>user_type: Enum (one of those: USER, SUPER_ADMIN, ADMIN) (not null)</li>\n</ul>\n<p>Response status code:</p>\n<p>201: the account successfully created and you have to go and activate it from the link in your mail box</p>\n<p>400: there's something wrong with your body values or one of these fields are incorrect [phone, user_type], check the response message</p>\n<p>406: this means that the user tried to register and didn't go back to his email to check the activation link.</p>\n","urlObject":{"path":["users","signup",""],"host":["http://127.0.0.1:8000/api/v1"],"query":[],"variable":[]}},"response":[{"id":"c1649ead-146a-4846-acda-0ed98b13c202","name":"1] sign up as {patient, super_admin, admin}","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"formdata","formdata":[{"key":"email","value":"maamouan.haj.najeeb@hotmail.com","type":"text"},{"key":"password","value":"sb_gtab101enterr","type":"text"},{"key":"password2","value":"sb_gtab101enterr","type":"text"},{"key":"user_type","value":"USER","type":"text"},{"key":"image","type":"file","fileNotInWorkingDirectoryWarning":"This file isn't in your working directory. Teammates you share this request with won't be able to use this file. To make collaboration easier you can setup your working directory in Settings.","filesNotInWorkingDirectory":["/C:/Users/HP/Desktop/docerkfile.png"],"src":"/C:/Users/HP/Desktop/docerkfile.png"},{"key":"phone","value":"+9639874125633","type":"text"}]},"url":"http://127.0.0.1:8000/api/v1/users/signup/"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 07 Feb 2024 18:29:45 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.9.10"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language, Cookie"},{"key":"Allow","value":"POST, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"37"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Confirmation email sent\"\n}"}],"_postman_id":"4d4b3fb3-5ae2-4f3a-b53f-c5a2ee59413c"},{"name":"2] users email confirmation","id":"019815ad-2e03-4785-b8b2-104da770ae5d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://127.0.0.1:8000/api/v1/users/email_confirmation/","description":"<p>This endpoint is used to confirm users email address after signup. Upon making a GET request to /users/email_confirmation/, the API will return a response with a message confirming the email confirmation status.</p>\n","urlObject":{"path":["users","email_confirmation",""],"host":["http://127.0.0.1:8000/api/v1"],"query":[],"variable":[]}},"response":[{"id":"23c9db84-e690-49ee-b22b-4751de42e163","name":"users email confirmation list","originalRequest":{"method":"GET","header":[],"url":"http://127.0.0.1:8000/api/v1/users/email_confirmation/"},"status":"Accepted","code":202,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sun, 10 Dec 2023 17:21:33 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.9.10"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language, Cookie"},{"key":"Allow","value":"GET, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"44"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"same-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Valid email you can log in now\"\n}"}],"_postman_id":"019815ad-2e03-4785-b8b2-104da770ae5d"},{"name":"* users resend email validation","id":"7424b569-8167-4440-a50d-1ff7c94f4744","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/api/v1/users/resend_email_validation/","description":"<p>This endpoint triggers a request to resend email validation for the user. Upon successful execution, it returns a 202 status code with a JSON response containing a message indicating the outcome of the operation.</p>\n<h3 id=\"request-body\">Request Body</h3>\n<p>This request does not require a request body.</p>\n<h3 id=\"response\">Response</h3>\n<ul>\n<li>Status: 202</li>\n<li>Content-Type: application/json</li>\n</ul>\n<p>Example Response:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"message\": \"\"\n}\n</code></pre>\n","urlObject":{"path":["users","resend_email_validation",""],"host":["http://127.0.0.1:8000/api/v1"],"query":[],"variable":[]}},"response":[{"id":"fe94cbe8-9c56-46ed-b0ba-573f1471378b","name":"users resend email validation create","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/api/v1/users/resend_email_validation/"},"status":"Accepted","code":202,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sun, 10 Dec 2023 17:35:18 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.9.10"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language, Cookie"},{"key":"Allow","value":"POST, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"39"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"same-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Confirmation email resent\"\n}"}],"_postman_id":"7424b569-8167-4440-a50d-1ff7c94f4744"}],"id":"ade446ed-3e77-4a57-9e7b-ed8f66091835","_postman_id":"ade446ed-3e77-4a57-9e7b-ed8f66091835","description":""},{"name":"change_password (authenticated users)","item":[{"name":"check password","id":"6db604c9-1066-4d5a-90dd-2366e0f759c2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MzIwMjE4LCJpYXQiOjE3MDczMTkwMTgsImp0aSI6IjBiYjFlNTExMjE3ZjRjMDk4ZmJjZTk5NjNlZmVkYjUzIiwidXNlcl9pZCI6MjN9.LV9vrIGSriteGtnrbTTR-_6HD5X3mIv8P0BNP-GtiQs","type":"text"}],"body":{"mode":"raw","raw":"{\r\n   \"password\":\"sv_gtab101enter\",\r\n   \"re_password\":\"sv_gtab101enter\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/api/v1/users/check_password/","description":"<h3 id=\"check-user-password\">Check User Password</h3>\n<p>This endpoint is used to check the validity of a user's password.</p>\n<p><strong>Request Body</strong></p>\n<ul>\n<li><code>password</code> (string, required): The user's password.</li>\n<li><code>re_password</code> (string, required): The re-entered password for confirmation.</li>\n</ul>\n<p><strong>Response</strong></p>\n<ul>\n<li>Status: 202</li>\n<li>Content-Type: application/json</li>\n<li><code>message</code> (string): A message indicating the result of the password check.</li>\n</ul>\n<p><strong>Example Response</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"message\": \"\"\n}\n\n</code></pre>\n","urlObject":{"path":["users","check_password",""],"host":["http://127.0.0.1:8000/api/v1"],"query":[],"variable":[]}},"response":[{"id":"234d55f5-b177-4251-9df2-e1ddfc93c4b2","name":"check password","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MzIwMjE4LCJpYXQiOjE3MDczMTkwMTgsImp0aSI6IjBiYjFlNTExMjE3ZjRjMDk4ZmJjZTk5NjNlZmVkYjUzIiwidXNlcl9pZCI6MjN9.LV9vrIGSriteGtnrbTTR-_6HD5X3mIv8P0BNP-GtiQs","type":"text"}],"body":{"mode":"raw","raw":"{\r\n   \"password\":\"sv_gtab101enter\",\r\n   \"re_password\":\"sv_gtab101enter\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/api/v1/users/check_password/"},"status":"Accepted","code":202,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 07 Feb 2024 15:19:58 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.11.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language"},{"key":"Allow","value":"POST, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"59"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Valid passwords you can go to change password\"\n}"}],"_postman_id":"6db604c9-1066-4d5a-90dd-2366e0f759c2"},{"name":"change password","id":"ede593e6-4bab-4988-8c48-a08350e62cb0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MzIwMjE4LCJpYXQiOjE3MDczMTkwMTgsImp0aSI6IjBiYjFlNTExMjE3ZjRjMDk4ZmJjZTk5NjNlZmVkYjUzIiwidXNlcl9pZCI6MjN9.LV9vrIGSriteGtnrbTTR-_6HD5X3mIv8P0BNP-GtiQs","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"new_password\":\"sv_gtab101enter\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/api/v1/users/change_password/","description":"<h3 id=\"change-user-password\">Change User Password</h3>\n<p>This endpoint is used to change the password for a user.</p>\n<p><strong>Request Body</strong></p>\n<ul>\n<li>new_password (string, required): The new password for the user.</li>\n</ul>\n<h4 id=\"response\">Response</h4>\n<ul>\n<li>Status: 202</li>\n<li>Content-Type: application/json</li>\n</ul>\n<p>Example response:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n    \"message\": \"\"\n}\n\n</code></pre>","urlObject":{"path":["users","change_password",""],"host":["http://127.0.0.1:8000/api/v1"],"query":[],"variable":[]}},"response":[{"id":"041fcddc-170c-486f-ba2a-7d796e27ddd2","name":"change password","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MzIwMjE4LCJpYXQiOjE3MDczMTkwMTgsImp0aSI6IjBiYjFlNTExMjE3ZjRjMDk4ZmJjZTk5NjNlZmVkYjUzIiwidXNlcl9pZCI6MjN9.LV9vrIGSriteGtnrbTTR-_6HD5X3mIv8P0BNP-GtiQs","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"new_password\":\"sv_gtab101enter\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/api/v1/users/change_password/"},"status":"Accepted","code":202,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 07 Feb 2024 15:20:37 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.11.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language"},{"key":"Allow","value":"POST, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"43"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Password changed successfully\"\n}"}],"_postman_id":"ede593e6-4bab-4988-8c48-a08350e62cb0"}],"id":"776e8506-493c-4e1b-af68-b199eefd30ff","_postman_id":"776e8506-493c-4e1b-af68-b199eefd30ff","description":""},{"name":"change password (unauthenticated users)","item":[{"name":"1] reset password","id":"51aeb268-2543-4b35-a551-b5c0589136c8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\":\"maamoun.haj.najeeb@gmail.com\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/api/v1/users/reset_password/","description":"<p>This endpoint allows users to reset their password by sending a POST request to http://127.0.0.1:8000/api/v1/users/reset_password/. The request should include the user's email in the raw request body. Upon successful execution, the server responds with a status code of 200 and a JSON object containing a message.</p>\n<h3 id=\"request-body\">Request Body</h3>\n<ul>\n<li>email (string, required): The email address of the user requesting the password reset.</li>\n</ul>\n<h3 id=\"response\">Response</h3>\n<ul>\n<li>message (string): A message indicating the outcome of the password reset request.</li>\n</ul>\n<h4 id=\"example-response\">Example Response</h4>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n    \"message\": \"...\"\n}\n\n</code></pre>","urlObject":{"path":["users","reset_password",""],"host":["http://127.0.0.1:8000/api/v1"],"query":[],"variable":[]}},"response":[{"id":"4074c01b-cd8e-44c6-ad5b-31f36a1c4631","name":"users reset password create","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\":\"user1@gmail.com\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/api/v1/users/reset_password/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 05 Dec 2023 22:00:01 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.9.10"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language, Cookie"},{"key":"Allow","value":"POST, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"58"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"same-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"A 6 numbers code sent to your mail, check it\"\n}"}],"_postman_id":"51aeb268-2543-4b35-a551-b5c0589136c8"},{"name":"2] enter code","id":"b4b0b31f-ae48-4f32-99a7-e461d4eeff24","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"code\":\"363255\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/api/v1/users/enter_code/","description":"<p>This endpoint allows users to enter a code via an HTTP POST request to http://127.0.0.1:8000/api/v1/users/enter_code/. The request should include a JSON payload with a \"code\" field. Upon successful execution, the server responds with a status code of 202 and a JSON object containing a \"message\" field. Below are some examples of the response for this request:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\"message\":\"\"}\n\n</code></pre>","urlObject":{"path":["users","enter_code",""],"host":["http://127.0.0.1:8000/api/v1"],"query":[],"variable":[]}},"response":[{"id":"09ace485-d3f8-43e7-b1a8-cf6559460606","name":"2] enter code (error)","originalRequest":{"method":"POST","header":[{"key":"","value":"","type":"text","disabled":true}],"body":{"mode":"raw","raw":"{\r\n    \"code\":\"392259\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/api/v1/users/enter_code/"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 07 Feb 2024 15:23:04 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.11.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language, Cookie"},{"key":"Allow","value":"POST, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"96"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"sorry, but there is no code like this in the database, try to reset password again\"\n}"},{"id":"af75da64-0589-4953-afd6-194533f39330","name":"2] enter code (success)","originalRequest":{"method":"POST","header":[{"key":"","value":"","type":"text","disabled":true}],"body":{"mode":"raw","raw":"{\r\n    \"code\":\"363255\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/api/v1/users/enter_code/"},"status":"Accepted","code":202,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 07 Feb 2024 15:23:32 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.11.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language, Cookie"},{"key":"Allow","value":"POST, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"54"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Right code, you can put new password now\"\n}"}],"_postman_id":"b4b0b31f-ae48-4f32-99a7-e461d4eeff24"},{"name":"3] new password","id":"fb9e8313-bf14-403d-9cf6-f87479675d14","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"password\":\"sv_gtab101enter\",\r\n    \"re_password\":\"sv_gtab101enter\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/api/v1/users/new_password/","description":"<p>This API endpoint is used to reset a user's password. When making a POST request to http://127.0.0.1:8000/api/v1/users/new_password/, the request should include a JSON payload in the raw request body type with the keys \"password\" and \"re_password\" to set the new password and confirm the new password respectively.</p>\n<h3 id=\"request-body\">Request Body</h3>\n<ul>\n<li><code>password</code> (string): The new password for the user.</li>\n<li><code>re_password</code> (string): The confirmation of the new password.</li>\n</ul>\n<h3 id=\"response\">Response</h3>\n<p>Upon successful execution, the API returns a status code of 202 and a JSON response with a key \"message\" indicating the success message.</p>\n<h4 id=\"example-response\">Example Response</h4>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"message\": \"\"\n}\n</code></pre>\n","urlObject":{"path":["users","new_password",""],"host":["http://127.0.0.1:8000/api/v1"],"query":[],"variable":[]}},"response":[{"id":"4b5e4cbd-6697-4c1d-98bd-a5dfe7a06df2","name":"3] new password (error)","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"password\":\"sv_gtab101enter\",\r\n    \"re_password\":\"sv_gtab101enters\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/api/v1/users/new_password/"},"status":"Conflict","code":409,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 07 Feb 2024 15:23:57 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.11.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language, Cookie"},{"key":"Allow","value":"POST, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"46"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Password fields are not the same\"\n}"},{"id":"1f528aad-0a3c-4dbe-9355-d0b9557908a2","name":"3] new password","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"password\":\"sv_gtab101enter\",\r\n    \"re_password\":\"sv_gtab101enter\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/api/v1/users/new_password/"},"status":"Accepted","code":202,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 07 Feb 2024 15:24:16 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.11.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language, Cookie"},{"key":"Allow","value":"POST, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"85"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Password changed successfully, now you can log in with the new password\"\n}"}],"_postman_id":"fb9e8313-bf14-403d-9cf6-f87479675d14"},{"name":"* resend code for reset password","id":"514ef161-5fa4-4a19-8546-802b833ba7de","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":""},"url":"http://127.0.0.1:8000/api/v1/users/resend_code/","description":"<p>This endpoint sends an HTTP GET request to http://127.0.0.1:8000/api/v1/users/resend_code/ in order to resend a verification code to the user. The response will have a status code of 200 and a JSON content type. The response body will contain a message indicating the result of the resend operation.</p>\n<h3 id=\"response\">Response</h3>\n<ul>\n<li>Status: 200</li>\n<li>Content-Type: application/json</li>\n</ul>\n<p>Example response body:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"message\": \"\"\n}\n\n</code></pre>\n","urlObject":{"path":["users","resend_code",""],"host":["http://127.0.0.1:8000/api/v1"],"query":[],"variable":[]}},"response":[{"id":"adcd6454-520c-4402-a2b6-4e408082c510","name":"users resend_code for reset password","originalRequest":{"method":"GET","header":[],"body":{"mode":"raw","raw":""},"url":"http://127.0.0.1:8000/api/v1/users/resend_code/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 05 Dec 2023 22:11:18 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.9.10"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language, Cookie"},{"key":"Allow","value":"GET, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"58"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"same-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"A 6 numbers code sent to your mail, check it\"\n}"}],"_postman_id":"514ef161-5fa4-4a19-8546-802b833ba7de"}],"id":"f676559d-166d-4663-822e-55efa4dcfebd","_postman_id":"f676559d-166d-4663-822e-55efa4dcfebd","description":""},{"name":"authentication","item":[{"name":"login","id":"82c67f41-0ed8-41e9-b100-0e91b83616ad","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"email\": \"maamoun3911@gmail.com\",\n  \"password\": \"sv_gtab101enter\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"http://127.0.0.1:8000/api/v1/users/login/","description":"<p>This endpoint allows users to log in via a POST request to.</p>\n<p><strong>This endpoint is for un authenticated users.</strong></p>\n<p>The request should include a raw JSON body with the user's email and password.</p>\n<p>Upon successful execution, the server responds with a status code of 200 and a JSON object containing the user's refresh token, access token, user ID, and user type.</p>\n<h3 id=\"request-body\">Request Body</h3>\n<ul>\n<li>email (string): The user's email.</li>\n<li>password (string): The user's password.</li>\n</ul>\n<h3 id=\"response\">Response</h3>\n<ul>\n<li>Status: 200</li>\n<li>Content-Type: application/json</li>\n</ul>\n<p>Example Response:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"refresh\": \"\",\n    \"access\": \"\",\n    \"id\": 0,\n    \"user_type\": \"\"\n}\n\n</code></pre>\n","urlObject":{"path":["users","login",""],"host":["http://127.0.0.1:8000/api/v1"],"query":[],"variable":[]}},"response":[{"id":"f18a4df9-aab2-45ec-8c97-c9f104b841c7","name":"login","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"email\": \"maamoun3911@gmail.com\",\n  \"password\": \"sv_gtab101enter\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"http://127.0.0.1:8000/api/v1/users/login/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 06 Feb 2024 08:20:03 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.11.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language"},{"key":"Allow","value":"POST, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"525"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"refresh\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoicmVmcmVzaCIsImV4cCI6MTcwNzIwOTQwMywiaWF0IjoxNzA3MjA3NjAzLCJqdGkiOiI0MTg4MGI3MTAzYWM0MzI4OTdjMzliYTNiYmQ5NTI5ZCIsInVzZXJfaWQiOjMwfQ.1RKXenCl8ahT7BzRTwAcOu6PkKFVkguNhgUMl90WUWo\",\n    \"access\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MjA4ODAzLCJpYXQiOjE3MDcyMDc2MDMsImp0aSI6ImE5YmZjOTE4ZjQ4MDRiZTJhNjkxYjU2NDUxYzRkOGFjIiwidXNlcl9pZCI6MzB9.-IRJJ0jSWa45Tuni6cnG5GZpWZHoQfgVk7nYFIVm0dg\",\n    \"id\": 30,\n    \"user_type\": \"SERVICE_PROVIDER\"\n}"}],"_postman_id":"82c67f41-0ed8-41e9-b100-0e91b83616ad"},{"name":"log out","id":"20bc7b09-9ec8-4e97-a7d7-3e6cbd1eef26","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA2NjI3MTg4LCJpYXQiOjE3MDY2MjU5ODgsImp0aSI6IjY1NTJjNzU0NjZjMzQwODBhNjVkYjczYmJjNDdhYjM0IiwidXNlcl9pZCI6MjN9._qzIApkH-otJLUnzHKIIoEbQZo5c49nMNMaAWDAzDZc","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"refresh","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoicmVmcmVzaCIsImV4cCI6MTcwNjYyNzc4OCwiaWF0IjoxNzA2NjI1OTg4LCJqdGkiOiI4MWY3ZmEzYzRiNDg0YTUwOTQ0ZTEyNzU1YmFkMjg0MSIsInVzZXJfaWQiOjIzfQ.C4BWM9KorkeeNlWGWiDeUGceVmg2IH2P0EZFm7jQtWc","type":"text","disabled":true}]},"url":"http://127.0.0.1:8000/api/v1/users/logout/","description":"<h3 id=\"post-userslogout\">POST /users/logout/</h3>\n<p>This endpoint is used to log out a user by revoking the refresh token.</p>\n<h4 id=\"request-body\">Request Body</h4>\n<ul>\n<li><code>refresh</code> (text): The refresh token used to authenticate the user.</li>\n</ul>\n<h4 id=\"response\">Response</h4>\n<ul>\n<li>Status: 202</li>\n<li>Content-Type: application/json</li>\n<li><code>message</code>: A message indicating the result of the logout operation.</li>\n</ul>\n","urlObject":{"path":["users","logout",""],"host":["http://127.0.0.1:8000/api/v1"],"query":[],"variable":[]}},"response":[{"id":"141e66e8-2d0e-44e8-962d-98ce77654ad0","name":"success log out","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA2NjI3MTg4LCJpYXQiOjE3MDY2MjU5ODgsImp0aSI6IjY1NTJjNzU0NjZjMzQwODBhNjVkYjczYmJjNDdhYjM0IiwidXNlcl9pZCI6MjN9._qzIApkH-otJLUnzHKIIoEbQZo5c49nMNMaAWDAzDZc","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"refresh","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoicmVmcmVzaCIsImV4cCI6MTcwNjYyNzc4OCwiaWF0IjoxNzA2NjI1OTg4LCJqdGkiOiI4MWY3ZmEzYzRiNDg0YTUwOTQ0ZTEyNzU1YmFkMjg0MSIsInVzZXJfaWQiOjIzfQ.C4BWM9KorkeeNlWGWiDeUGceVmg2IH2P0EZFm7jQtWc","type":"text"}]},"url":"http://127.0.0.1:8000/api/v1/users/logout/"},"status":"Accepted","code":202,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 30 Jan 2024 14:51:01 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.11.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language"},{"key":"Allow","value":"POST, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"37"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Logged out successfully\"\n}"},{"id":"af09ef40-c05a-453b-ae3f-b7e37c34a8b7","name":"failed log out","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA2NjI3MTg4LCJpYXQiOjE3MDY2MjU5ODgsImp0aSI6IjY1NTJjNzU0NjZjMzQwODBhNjVkYjczYmJjNDdhYjM0IiwidXNlcl9pZCI6MjN9._qzIApkH-otJLUnzHKIIoEbQZo5c49nMNMaAWDAzDZc","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"refresh","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoicmVmcmVzaCIsImV4cCI6MTcwNjYyNzc4OCwiaWF0IjoxNzA2NjI1OTg4LCJqdGkiOiI4MWY3ZmEzYzRiNDg0YTUwOTQ0ZTEyNzU1YmFkMjg0MSIsInVzZXJfaWQiOjIzfQ.C4BWM9KorkeeNlWGWiDeUGceVmg2IH2P0EZFm7jQtWc","type":"text","disabled":true}]},"url":"http://127.0.0.1:8000/api/v1/users/logout/"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 30 Jan 2024 14:52:51 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.11.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language"},{"key":"Allow","value":"POST, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"32"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"Error\": \"Refresh Token needed\"\n}"}],"_postman_id":"20bc7b09-9ec8-4e97-a7d7-3e6cbd1eef26"},{"name":"refresh token","id":"b641ba17-fc11-4586-a800-c0001a505470","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"refresh\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoicmVmcmVzaCIsImV4cCI6MTcwNzMxODg2MSwiaWF0IjoxNzA3MzE3MDYxLCJqdGkiOiJkOTYyOGQwMmFlMDc0MjUwYWE5MWNhMzIxOGIyNjViYyIsInVzZXJfaWQiOjIzfQ.Ou4YC1hdkz6uRb20QZyUiDfO07uyLrr2ny8T2nMJaQU\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/api/v1/users/refresh_token/","description":"<h3 id=\"refresh-user-token\">Refresh User Token</h3>\n<p>This endpoint allows the user to refresh the access token by providing the refresh token.</p>\n<p><strong>HTTP Request</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-http\">POST http://127.0.0.1:8000/api/v1/users/refresh_token/\n</code></pre>\n<p><strong>Request Body</strong></p>\n<ul>\n<li><code>refresh</code> (string): The refresh token.</li>\n</ul>\n<p><strong>Response</strong></p>\n<ul>\n<li>Status: 200</li>\n<li>Content-Type: application/json</li>\n</ul>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"access\": \"\",\n    \"refresh\": \"\"\n}\n</code></pre>\n","urlObject":{"path":["users","refresh_token",""],"host":["http://127.0.0.1:8000/api/v1"],"query":[],"variable":[]}},"response":[{"id":"781d5d94-bbae-4291-9960-ba38cc867e2d","name":"refresh token","originalRequest":{"method":"POST","header":[{"key":"","value":"","type":"text","disabled":true}],"body":{"mode":"raw","raw":"{\r\n    \"refresh\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoicmVmcmVzaCIsImV4cCI6MTcwNzMxODg2MSwiaWF0IjoxNzA3MzE3MDYxLCJqdGkiOiJkOTYyOGQwMmFlMDc0MjUwYWE5MWNhMzIxOGIyNjViYyIsInVzZXJfaWQiOjIzfQ.Ou4YC1hdkz6uRb20QZyUiDfO07uyLrr2ny8T2nMJaQU\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/api/v1/users/refresh_token/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 07 Feb 2024 14:44:57 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.11.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language"},{"key":"Allow","value":"POST, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"486"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"access\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MzE4Mjk3LCJpYXQiOjE3MDczMTcwNjEsImp0aSI6IjBhZDNjYWY2YWI3MzQ4MDY4NzQ3MmRkMmRjNzM5ZmFkIiwidXNlcl9pZCI6MjN9.sZ9_s2NMW2PD9ORM7D7tKeTq_6rUWLRcPOK0htAUDkI\",\n    \"refresh\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoicmVmcmVzaCIsImV4cCI6MTcwNzMxODg5NywiaWF0IjoxNzA3MzE3MDk3LCJqdGkiOiJiNjE3NzU3MDE3YWE0OTkzYTMwMWZiMGQwMmExMmU1MiIsInVzZXJfaWQiOjIzfQ.RQvO1xCSoyCFtTqGORwn57DDH1wWLky4KnPB7ETt4dE\"\n}"}],"_postman_id":"b641ba17-fc11-4586-a800-c0001a505470"}],"id":"204a9148-5238-443a-a09c-5a5fa88a1f64","_postman_id":"204a9148-5238-443a-a09c-5a5fa88a1f64","description":""},{"name":"admin actions","item":[{"name":"reports","item":[{"name":"statistical reports","id":"c6d16960-5c9d-4f6b-85cb-5697db080f67","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MzE4Mjk3LCJpYXQiOjE3MDczMTcwNjEsImp0aSI6IjBhZDNjYWY2YWI3MzQ4MDY4NzQ3MmRkMmRjNzM5ZmFkIiwidXNlcl9pZCI6MjN9.sZ9_s2NMW2PD9ORM7D7tKeTq_6rUWLRcPOK0htAUDkI","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/users/admin/reports/","description":"<h1 id=\"get-user-reports\">Get User Reports</h1>\n<p>This endpoint retrieves the reports related to user statistics, product statistics, and service statistics</p>\n<p><strong>This endpoint</strong> <strong>for admins only (admins reports dashboard)</strong></p>\n<h3 id=\"response\">Response</h3>\n<ul>\n<li><strong>stats</strong> (object)<ul>\n<li><strong>products_stats</strong> (array): Array of product statistics objects.<ul>\n<li><strong>title</strong> (string): Title of the product.</li>\n<li><strong>count</strong> (number): Count of the product.</li>\n</ul>\n</li>\n<li><strong>services_stats</strong> (array): Array of service statistics objects.<ul>\n<li><strong>title</strong> (string): Title of the service.</li>\n<li><strong>count</strong> (number): Count of the service.</li>\n</ul>\n</li>\n<li><strong>user_stats</strong> (object): User statistics based on roles.<ul>\n<li><strong>SERVICE_PROVIDER</strong> (number): Count of service providers.</li>\n<li><strong>SUPER_ADMIN</strong> (number): Count of super admins.</li>\n<li><strong>ADMIN</strong> (number): Count of admins.</li>\n<li><strong>USER</strong> (number): Count of regular users.</li>\n</ul>\n</li>\n</ul>\n</li>\n<li><strong>counts</strong> (object)<ul>\n<li><strong>products</strong> (number): Total count of products.</li>\n<li><strong>services_count</strong> (number): Total count of services.</li>\n<li><strong>users</strong> (number): Total count of users.</li>\n</ul>\n</li>\n<li><strong>services_diagram</strong> (array): Array of service diagrams.<ul>\n<li><strong>year</strong> (number): Year of the diagram.</li>\n<li><strong>month</strong> (number): Month of the diagram.</li>\n<li><strong>services_count</strong> (number): Count of services for the specific year and month.</li>\n</ul>\n</li>\n<li><strong>products_diagram</strong> (array): Array of product diagrams.<ul>\n<li><strong>year</strong> (number): Year of the diagram.</li>\n<li><strong>month</strong> (number): Month of the diagram.</li>\n<li><strong>products_count</strong> (number): Count of products for the specific year and month.</li>\n</ul>\n</li>\n<li><strong>users_diagram</strong> (array): Array of user diagrams.<ul>\n<li><strong>year</strong> (number): Year of the diagram.</li>\n<li><strong>month</strong> (number): Month of the diagram.</li>\n<li><strong>total_users</strong> (number): Total count of users for the specific year and month.</li>\n</ul>\n</li>\n</ul>\n","urlObject":{"path":["users","admin","reports",""],"host":["http://127.0.0.1:8000/api/v1"],"query":[],"variable":[]}},"response":[{"id":"081229b3-b86f-4743-9e37-1804b6b8e9d3","name":"statistical reports","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MzE4Mjk3LCJpYXQiOjE3MDczMTcwNjEsImp0aSI6IjBhZDNjYWY2YWI3MzQ4MDY4NzQ3MmRkMmRjNzM5ZmFkIiwidXNlcl9pZCI6MjN9.sZ9_s2NMW2PD9ORM7D7tKeTq_6rUWLRcPOK0htAUDkI","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/users/admin/reports/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 07 Feb 2024 14:46:02 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.11.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language"},{"key":"Allow","value":"GET, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"1047"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"stats\": {\n        \"products_stats\": [\n            {\n                \"title\": \"unadol extra\",\n                \"count\": 2\n            },\n            {\n                \"title\": \"childs milk\",\n                \"count\": 1\n            },\n            {\n                \"title\": \"Nan\",\n                \"count\": 1\n            },\n            {\n                \"title\": \"unadol\",\n                \"count\": 1\n            },\n            {\n                \"title\": \"unadol cold and flu\",\n                \"count\": 1\n            },\n            {\n                \"title\": \"gicouz\",\n                \"count\": 1\n            },\n            {\n                \"title\": \"bebelait\",\n                \"count\": 1\n            }\n        ],\n        \"services_stats\": [\n            {\n                \"title\": \"check ear\",\n                \"count\": 2\n            },\n            {\n                \"title\": \"check Endocrine\",\n                \"count\": 1\n            },\n            {\n                \"title\": \"check eye\",\n                \"count\": 1\n            },\n            {\n                \"title\": \"check feet\",\n                \"count\": 1\n            },\n            {\n                \"title\": \"check stomach\",\n                \"count\": 1\n            },\n            {\n                \"title\": \"check teeth\",\n                \"count\": 1\n            },\n            {\n                \"title\": \"general check_up\",\n                \"count\": 1\n            }\n        ],\n        \"user_stats\": {\n            \"SERVICE_PROVIDER\": 2,\n            \"SUPER_ADMIN\": 0,\n            \"ADMIN\": 1,\n            \"USER\": 4\n        }\n    },\n    \"counts\": {\n        \"products\": 10,\n        \"services_count\": 14,\n        \"users\": 11\n    },\n    \"services_diagram\": [\n        {\n            \"year\": 2024,\n            \"month\": 1,\n            \"services_count\": 4\n        },\n        {\n            \"year\": 2024,\n            \"month\": 2,\n            \"services_count\": 2\n        },\n        {\n            \"year\": 2023,\n            \"month\": 12,\n            \"services_count\": 8\n        }\n    ],\n    \"products_diagram\": [\n        {\n            \"year\": 2023,\n            \"month\": 12,\n            \"products_count\": 6\n        },\n        {\n            \"year\": 2024,\n            \"month\": 1,\n            \"products_count\": 1\n        },\n        {\n            \"year\": 2024,\n            \"month\": 2,\n            \"products_count\": 3\n        }\n    ],\n    \"users_diagram\": [\n        {\n            \"year\": 2024,\n            \"month\": 1,\n            \"total_users\": 7\n        },\n        {\n            \"year\": 2023,\n            \"month\": 12,\n            \"total_users\": 4\n        }\n    ]\n}"}],"_postman_id":"c6d16960-5c9d-4f6b-85cb-5697db080f67"},{"name":"reports tables","id":"0c4b2b08-48f4-4cec-91dc-824bee70227e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MzE4Mjk3LCJpYXQiOjE3MDczMTcwNjEsImp0aSI6IjBhZDNjYWY2YWI3MzQ4MDY4NzQ3MmRkMmRjNzM5ZmFkIiwidXNlcl9pZCI6MjN9.sZ9_s2NMW2PD9ORM7D7tKeTq_6rUWLRcPOK0htAUDkI","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/users/admin/reports/tables/","description":"<p>This endpoint makes an HTTP GET request to retrieve the reports for the tables related to users, products, and services. The response contains the active and not active counts for different user roles, products, and services in a JSON format</p>\n<p><strong>This endpoint for admins only</strong>.</p>\n","urlObject":{"path":["users","admin","reports","tables",""],"host":["http://127.0.0.1:8000/api/v1"],"query":[],"variable":[]}},"response":[{"id":"de32a05a-7920-4aae-9676-67182cb89447","name":"reports tables","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MzE4Mjk3LCJpYXQiOjE3MDczMTcwNjEsImp0aSI6IjBhZDNjYWY2YWI3MzQ4MDY4NzQ3MmRkMmRjNzM5ZmFkIiwidXNlcl9pZCI6MjN9.sZ9_s2NMW2PD9ORM7D7tKeTq_6rUWLRcPOK0htAUDkI","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/users/admin/reports/tables/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 07 Feb 2024 14:46:37 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.11.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language"},{"key":"Allow","value":"GET, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"1161"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"users_table\": {\n        \"SERVICE_PROVIDER\": {\n            \"active\": 2,\n            \"not_active\": 0\n        },\n        \"SUPER_ADMIN\": {\n            \"active\": 0,\n            \"not_active\": 0\n        },\n        \"ADMIN\": {\n            \"active\": 1,\n            \"not_active\": 0\n        },\n        \"USER\": {\n            \"active\": 1,\n            \"not_active\": 3\n        }\n    },\n    \"products_table\": {\n        \"Plastic Surgery\": {\n            \"active\": 0,\n            \"not_active\": 0\n        },\n        \"Nutritionist\": {\n            \"active\": 0,\n            \"not_active\": 0\n        },\n        \"Radiologist\": {\n            \"active\": 0,\n            \"not_active\": 0\n        },\n        \"DENTAL\": {\n            \"active\": 0,\n            \"not_active\": 0\n        },\n        \"PHARMACY\": {\n            \"active\": 0,\n            \"not_active\": 0\n        },\n        \"CLINIC\": {\n            \"active\": 0,\n            \"not_active\": 0\n        },\n        \"Home Care\": {\n            \"active\": 0,\n            \"not_active\": 0\n        },\n        \"Hospital\": {\n            \"active\": 0,\n            \"not_active\": 0\n        },\n        \"Aesthetics\": {\n            \"active\": 0,\n            \"not_active\": 0\n        },\n        \"LAB\": {\n            \"active\": 0,\n            \"not_active\": 0\n        },\n        \"DOCTORS\": {\n            \"active\": 1,\n            \"not_active\": 9\n        },\n        \"OPTICS\": {\n            \"active\": 0,\n            \"not_active\": 0\n        }\n    },\n    \"services_table\": {\n        \"Plastic Surgery\": {\n            \"active\": 0,\n            \"not_active\": 0\n        },\n        \"Nutritionist\": {\n            \"active\": 1,\n            \"not_active\": 0\n        },\n        \"Radiologist\": {\n            \"active\": 0,\n            \"not_active\": 0\n        },\n        \"DENTAL\": {\n            \"active\": 1,\n            \"not_active\": 0\n        },\n        \"PHARMACY\": {\n            \"active\": 0,\n            \"not_active\": 0\n        },\n        \"CLINIC\": {\n            \"active\": 0,\n            \"not_active\": 0\n        },\n        \"Home Care\": {\n            \"active\": 0,\n            \"not_active\": 0\n        },\n        \"Hospital\": {\n            \"active\": 0,\n            \"not_active\": 0\n        },\n        \"Aesthetics\": {\n            \"active\": 0,\n            \"not_active\": 0\n        },\n        \"LAB\": {\n            \"active\": 0,\n            \"not_active\": 0\n        },\n        \"DOCTORS\": {\n            \"active\": 4,\n            \"not_active\": 0\n        },\n        \"OPTICS\": {\n            \"active\": 7,\n            \"not_active\": 1\n        }\n    }\n}"}],"_postman_id":"0c4b2b08-48f4-4cec-91dc-824bee70227e"}],"id":"007848da-88f6-4bf6-8046-100fd182dd69","_postman_id":"007848da-88f6-4bf6-8046-100fd182dd69","description":""},{"name":"users list","id":"1e9a9a7b-de6c-4ed1-ba1d-8b5e38a266b9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA2NjM5MDI0LCJpYXQiOjE3MDY2Mzc4MjQsImp0aSI6IjlhNzNmMjJhYzg5ODQxODA4ODhkNDFmYTAxNDc3OWRkIiwidXNlcl9pZCI6MjN9.x2MwaaJhOvRXbhEmYqNZtaRef_qL9i_WyXFvuE1l_6c","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/users/","description":"<p>This endpoint makes an HTTP GET request to retrieve a list of users <strong>for admins only</strong>. The response will contain a JSON array with user objects, each including the user's ID, email, phone, image, and user type. An example response is provided below:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">[\n    {\n        \"id\": 0,\n        \"email\": \"\",\n        \"phone\": \"\",\n        \"image\": \"\",\n        \"user_type\": \"\"\n    }\n]\n\n</code></pre>\n","urlObject":{"path":["users",""],"host":["http://127.0.0.1:8000/api/v1"],"query":[],"variable":[]}},"response":[{"id":"158a906c-6511-403b-bc9c-18c14e8c500f","name":"users list","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzAyMjMxOTU4LCJpYXQiOjE3MDIyMzA3NTgsImp0aSI6ImEwMWVmODhkNmM4OTQ0ZDc4ZWZiNjMzNjkzNTU4MGQzIiwidXNlcl9pZCI6OX0.BYtiVUP2cXWGn0C3orWQBfrSBFAyDIx1mWsY0RY2sXs","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/users/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sun, 10 Dec 2023 17:53:15 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.9.10"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language"},{"key":"Allow","value":"OPTIONS, GET"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"802"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"same-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 3,\n        \"email\": \"admin@gmail.com\",\n        \"phone\": \"+96369999999955\",\n        \"image\": \"/media/profile_images/2023/12/7/51d4a631934940fca17ad28d2a9a60e3.png\",\n        \"user_type\": \"ADMIN\"\n    },\n    {\n        \"id\": 6,\n        \"email\": \"user@gmail.com\",\n        \"phone\": \"+963999222333\",\n        \"image\": null,\n        \"user_type\": \"USER\"\n    },\n    {\n        \"id\": 5,\n        \"email\": \"service_me@gmail.com\",\n        \"phone\": \"+512134599871\",\n        \"image\": null,\n        \"user_type\": \"ADMIN\"\n    },\n    {\n        \"id\": 7,\n        \"email\": \"user1@gmail.com\",\n        \"phone\": \"+963989222333\",\n        \"image\": null,\n        \"user_type\": \"USER\"\n    },\n    {\n        \"id\": 1,\n        \"email\": \"tareqdab2000@gmail.com\",\n        \"phone\": \"+96399999999944\",\n        \"image\": \"/media/profile_images/2023/12/6/50a60afb650b4092878339a423b97b5e.png\",\n        \"user_type\": \"SUPER_ADMIN\"\n    },\n    {\n        \"id\": 8,\n        \"email\": \"testtt@gmail.com\",\n        \"phone\": \"+96399999998044\",\n        \"image\": null,\n        \"user_type\": \"USER\"\n    },\n    {\n        \"id\": 9,\n        \"email\": \"NEWADMIN@gmail.com\",\n        \"phone\": \"+0983948137841\",\n        \"image\": null,\n        \"user_type\": \"ADMIN\"\n    }\n]"}],"_postman_id":"1e9a9a7b-de6c-4ed1-ba1d-8b5e38a266b9"},{"name":"search in users","id":"a9d5a223-4222-4b3e-8924-5041d08ec0c3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MzE4Mjk3LCJpYXQiOjE3MDczMTcwNjEsImp0aSI6IjBhZDNjYWY2YWI3MzQ4MDY4NzQ3MmRkMmRjNzM5ZmFkIiwidXNlcl9pZCI6MjN9.sZ9_s2NMW2PD9ORM7D7tKeTq_6rUWLRcPOK0htAUDkI","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/users/search/maamoun/","description":"<p>This endpoint makes an HTTP GET request to search for users with the specified username.</p>\n<p>Upon a successful execution, the server returns a status code of 200 along with a JSON array containing user information including their ID, phone number, email, image, user type, and date joined</p>\n<p><strong>This endpoint for admins only</strong>.</p>\n","urlObject":{"path":["users","search","maamoun",""],"host":["http://127.0.0.1:8000/api/v1"],"query":[],"variable":[]}},"response":[{"id":"d1a945a8-1784-46c4-8bf8-8fb9e47f7ca8","name":"search in users","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MzE4Mjk3LCJpYXQiOjE3MDczMTcwNjEsImp0aSI6IjBhZDNjYWY2YWI3MzQ4MDY4NzQ3MmRkMmRjNzM5ZmFkIiwidXNlcl9pZCI6MjN9.sZ9_s2NMW2PD9ORM7D7tKeTq_6rUWLRcPOK0htAUDkI","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/users/search/maamoun/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 07 Feb 2024 14:45:32 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.11.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language"},{"key":"Allow","value":"GET, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"1389"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 55,\n        \"phone\": \"+963965412382\",\n        \"email\": \"teachermaamoun@gmail.com\",\n        \"image\": \"/media/defaults/default_profile.jpg\",\n        \"user_type\": \"SUPER_ADMIN\",\n        \"date_joined\": \"2024-01-21T20:32:28.623105+03:00\"\n    },\n    {\n        \"id\": 56,\n        \"phone\": \"\",\n        \"email\": \"hola.maamoun.haj.najeeb@gmail.com\",\n        \"image\": \"/media/defaults/default_profile.jpg\",\n        \"user_type\": \"SUPER_ADMIN\",\n        \"date_joined\": \"2024-01-28T12:37:32.576822+03:00\"\n    },\n    {\n        \"id\": 59,\n        \"phone\": \"+963987412563\",\n        \"email\": \"maamoun.haj.najeeb@hotmail.com\",\n        \"image\": null,\n        \"user_type\": \"USER\",\n        \"date_joined\": \"2024-01-30T17:20:50.482433+03:00\"\n    },\n    {\n        \"id\": 30,\n        \"phone\": \"+963987456321\",\n        \"email\": \"maamoun3911@gmail.com\",\n        \"image\": \"/media/profile_images/2023/12/5/9bc801f09fb34ceea78da043787ca474.png\",\n        \"user_type\": \"SERVICE_PROVIDER\",\n        \"date_joined\": \"2023-12-05T11:27:59.738922+03:00\"\n    },\n    {\n        \"id\": 23,\n        \"phone\": \"+963932715313\",\n        \"email\": \"maamoun.haj.najeeb@gmail.com\",\n        \"image\": \"/media/profile_images/2023/12/5/d0172c3d05a24618957dbf2718ce24b0.png\",\n        \"user_type\": \"ADMIN\",\n        \"date_joined\": \"2023-12-05T08:48:24.882597+03:00\"\n    },\n    {\n        \"id\": 29,\n        \"phone\": \"+963959539503\",\n        \"email\": \"maamoun.h.najeeb@gmail.com\",\n        \"image\": \"/media/profile_images/2023/12/5/704e2cea1c23445488ee1e401df551ea.png\",\n        \"user_type\": \"USER\",\n        \"date_joined\": \"2023-12-05T11:09:25.869636+03:00\"\n    },\n    {\n        \"id\": 54,\n        \"phone\": \"+963965412387\",\n        \"email\": \"teachermaamoun@hotmail.com\",\n        \"image\": \"/media/defaults/default_profile.jpg\",\n        \"user_type\": \"super_admin\",\n        \"date_joined\": \"2024-01-21T20:31:52.993123+03:00\"\n    }\n]"}],"_postman_id":"a9d5a223-4222-4b3e-8924-5041d08ec0c3"}],"id":"2180965a-049e-4808-8484-37d1f4372a75","_postman_id":"2180965a-049e-4808-8484-37d1f4372a75","description":""},{"name":"2 factor auth","item":[{"name":"1] send 2fa code","id":"c32ebf79-854e-4890-8994-8bd7d46614a2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MzIwNzE1LCJpYXQiOjE3MDczMTk1MTUsImp0aSI6IjYzNTUzNDdhY2M3YjQwZGE5ZDBlZjFhZTkyMzE2Y2RmIiwidXNlcl9pZCI6Mjl9.cmmLy6oyR9fijXfGQGaSdIK4prJioDluDw_xUiw7viw","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/api/v1/users/send_2fa/","description":"<h3 id=\"send-2fa-code-to-user\">Send 2FA Code to User</h3>\n<p>This endpoint is used to send a two-factor authentication (2FA) code to the user for verification.</p>\n<h4 id=\"request-parameters\">Request Parameters</h4>\n<ul>\n<li>No request parameters required.</li>\n</ul>\n<h4 id=\"response\">Response</h4>\n<ul>\n<li><strong>Status: 201 Created</strong></li>\n<li><strong>Content-Type:</strong> application/json</li>\n<li><strong>message:</strong> A message indicating the status of the 2FA code sending process.</li>\n</ul>\n<p>Example Response:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"message\": \"\"\n}\n\n</code></pre>\n","urlObject":{"path":["users","send_2fa",""],"host":["http://127.0.0.1:8000/api/v1"],"query":[],"variable":[]}},"response":[{"id":"65a7b48a-6fea-4afa-b6f1-899b4ee44eaa","name":"1] send 2fa code","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MzIwNzE1LCJpYXQiOjE3MDczMTk1MTUsImp0aSI6IjYzNTUzNDdhY2M3YjQwZGE5ZDBlZjFhZTkyMzE2Y2RmIiwidXNlcl9pZCI6Mjl9.cmmLy6oyR9fijXfGQGaSdIK4prJioDluDw_xUiw7viw","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/api/v1/users/send_2fa/"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 07 Feb 2024 15:25:41 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.11.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language"},{"key":"Allow","value":"POST, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"48"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"A 6 number code sent to your email\"\n}"}],"_postman_id":"c32ebf79-854e-4890-8994-8bd7d46614a2"},{"name":"2] confirm 2fa","id":"3abb19d2-9e44-4e6f-996e-bc7a9cd938cb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MzIwNzE1LCJpYXQiOjE3MDczMTk1MTUsImp0aSI6IjYzNTUzNDdhY2M3YjQwZGE5ZDBlZjFhZTkyMzE2Y2RmIiwidXNlcl9pZCI6Mjl9.cmmLy6oyR9fijXfGQGaSdIK4prJioDluDw_xUiw7viw","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/users/validate_2fa/162412/","description":"<p>This endpoint is used to validate a two-factor authentication (2FA) code for a user. The HTTP POST request should be made to http://127.0.0.1:8000/api/v1/users/validate_2fa/036303/. Upon successful validation, the server returns a 202 status with a JSON response containing a message indicating the result of the validation process.</p>\n","urlObject":{"path":["users","validate_2fa","162412",""],"host":["http://127.0.0.1:8000/api/v1"],"query":[],"variable":[]}},"response":[{"id":"81dfdcee-f3b7-4405-8fb3-f72d0a11533e","name":"2] confirm 2fa (error)","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MzIwNzE1LCJpYXQiOjE3MDczMTk1MTUsImp0aSI6IjYzNTUzNDdhY2M3YjQwZGE5ZDBlZjFhZTkyMzE2Y2RmIiwidXNlcl9pZCI6Mjl9.cmmLy6oyR9fijXfGQGaSdIK4prJioDluDw_xUiw7viw","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/users/validate_2fa/237481/"},"status":"Not Acceptable","code":406,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 07 Feb 2024 15:28:46 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.11.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language"},{"key":"Allow","value":"POST, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"32"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"Not valid, try again\"\n}"},{"id":"79a150b9-32b7-4865-b0ad-ad83b83d2da8","name":"2] confirm 2fa (success)","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MzIwNzE1LCJpYXQiOjE3MDczMTk1MTUsImp0aSI6IjYzNTUzNDdhY2M3YjQwZGE5ZDBlZjFhZTkyMzE2Y2RmIiwidXNlcl9pZCI6Mjl9.cmmLy6oyR9fijXfGQGaSdIK4prJioDluDw_xUiw7viw","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/users/validate_2fa/162412/"},"status":"Accepted","code":202,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 07 Feb 2024 15:30:08 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.11.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language"},{"key":"Allow","value":"POST, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"34"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Right code, wellcome\"\n}"}],"_postman_id":"3abb19d2-9e44-4e6f-996e-bc7a9cd938cb"},{"name":"* resend 2fa","id":"eaaa5222-55c1-4e6b-bcf7-d779403f6a01","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MzIwNzE1LCJpYXQiOjE3MDczMTk1MTUsImp0aSI6IjYzNTUzNDdhY2M3YjQwZGE5ZDBlZjFhZTkyMzE2Y2RmIiwidXNlcl9pZCI6Mjl9.cmmLy6oyR9fijXfGQGaSdIK4prJioDluDw_xUiw7viw","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/users/resend_2fa/","description":"<h3 id=\"post-usersresend_2fa\">POST /users/resend_2fa/</h3>\n<p>This endpoint is used to resend a two-factor authentication (2FA) code to the user.</p>\n<h4 id=\"response\">Response</h4>\n<ul>\n<li>Status: 201</li>\n<li>Content-Type: application/json</li>\n</ul>\n<p>Upon successful execution, the response will contain a JSON object with a \"message\" key.</p>\n","urlObject":{"path":["users","resend_2fa",""],"host":["http://127.0.0.1:8000/api/v1"],"query":[],"variable":[]}},"response":[{"id":"92c8385b-5a24-4f32-b406-3aceeeb679eb","name":"* resend 2fa","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA3MzIwNzE1LCJpYXQiOjE3MDczMTk1MTUsImp0aSI6IjYzNTUzNDdhY2M3YjQwZGE5ZDBlZjFhZTkyMzE2Y2RmIiwidXNlcl9pZCI6Mjl9.cmmLy6oyR9fijXfGQGaSdIK4prJioDluDw_xUiw7viw","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/users/resend_2fa/"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 07 Feb 2024 15:27:32 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.11.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language"},{"key":"Allow","value":"OPTIONS, POST"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"50"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"A 6 number code resent to your email\"\n}"}],"_postman_id":"eaaa5222-55c1-4e6b-bcf7-d779403f6a01"}],"id":"141488f1-5f1c-4e1c-8951-860d444e2bef","_postman_id":"141488f1-5f1c-4e1c-8951-860d444e2bef","description":""}],"id":"ae0c0b4c-ca07-48db-ba33-001177a40927","_postman_id":"ae0c0b4c-ca07-48db-ba33-001177a40927","description":""},{"name":"change language","id":"81916c5a-84cd-4d2d-8f0c-450cfcaf55e4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept-Language","value":"ar","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/switch_language/","description":"<p>This endpoint used to change the language, it depends on IP address.</p>\n<p><strong>This endpoint is for everybody.</strong></p>\n","urlObject":{"path":["switch_language",""],"host":["http://127.0.0.1:8000/api/v1"],"query":[],"variable":[]}},"response":[{"id":"9399e166-3c85-4cb4-9c4f-ac74f9baa71c","name":"change language","originalRequest":{"method":"GET","header":[{"key":"Accept-Language","value":"ar","type":"text"}],"url":"http://127.0.0.1:8000/api/v1/switch_language/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 07 Feb 2024 16:20:23 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.11.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language, Cookie"},{"key":"Allow","value":"OPTIONS, GET"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"44"},{"key":"Content-Language","value":"ar"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"language switched successfully\"\n}"}],"_postman_id":"81916c5a-84cd-4d2d-8f0c-450cfcaf55e4"},{"name":"overall search","id":"d301dea2-4c71-49b6-bc1c-632a7d4e62db","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://127.0.0.1:8000/api/v1/services_&_products/?longitude=-116.234234&latitude=35.345345&rates=[1, 2, 3, 4, 5]&categories=[1, 2, 3]&min_price=0&max_price=50000&search=check","description":"<p>This endpoint used to retrieve services and products in all the system.</p>\n<p>It has many search filters (check examples)</p>\n<p><strong>This endpoint is for everybody.</strong></p>\n","urlObject":{"path":["services_&_products",""],"host":["http://127.0.0.1:8000/api/v1"],"query":[{"key":"longitude","value":"-116.234234"},{"key":"latitude","value":"35.345345"},{"key":"rates","value":"[1, 2, 3, 4, 5]"},{"key":"categories","value":"[1, 2, 3]"},{"key":"min_price","value":"0"},{"key":"max_price","value":"50000"},{"key":"search","value":"check"}],"variable":[]}},"response":[{"id":"05418fac-f368-4204-9ac0-1ec0bebdb9ef","name":"overall search (without any filters or search terms)","originalRequest":{"method":"GET","header":[],"url":"http://127.0.0.1:8000/api/v1/services_&_products/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 07 Feb 2024 16:14:22 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.11.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language, Cookie"},{"key":"Allow","value":"GET, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"4558"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 7,\n        \"provider_location_id\": 3,\n        \"provider_name\": \"Remostart\",\n        \"category_id\": 1,\n        \"category_name\": \"DOCTORS\",\n        \"title\": \"check stomach\",\n        \"description\": \"full check for stomach\",\n        \"images\": [\n            \"http://127.0.0.1:8000/media/services/09d7260f9359477ba770a6fc4492965f.png\",\n            \"http://127.0.0.1:8000/media/services/622d0eedc29b48f99709830f282cdf0f.jpg\"\n        ],\n        \"price\": 5000,\n        \"discount_ammount\": 0,\n        \"is_active\": true,\n        \"created_at\": \"2023-12-16T10:44:45.921051Z\",\n        \"updated_at\": \"2023-12-16T09:49:54.929895Z\",\n        \"rates\": {\n            \"avg_rate\": 4,\n            \"5 stars\": 1,\n            \"4 stars\": 0,\n            \"3 stars\": 1,\n            \"2 stars\": 0,\n            \"1 stars\": 0,\n            \"0 stars\": 0\n        }\n    },\n    {\n        \"id\": 8,\n        \"provider_location_id\": 3,\n        \"provider_name\": \"Remostart\",\n        \"category_id\": 1,\n        \"category_name\": \"DOCTORS\",\n        \"title\": \"check Endocrine\",\n        \"description\": \"full check for all Endocrine\",\n        \"images\": [\n            \"http://127.0.0.1:8000/media/services/9510dab7a22042839794b2d8d0928440.png\",\n            \"http://127.0.0.1:8000/media/services/5091158aa50a46d7806d21d73f19c575.jpg\"\n        ],\n        \"price\": 5000,\n        \"discount_ammount\": 0,\n        \"is_active\": true,\n        \"created_at\": \"2023-12-06T17:58:37.837090Z\",\n        \"updated_at\": \"2023-12-06T17:58:37.837090Z\",\n        \"rates\": {\n            \"avg_rate\": 4,\n            \"5 stars\": 0,\n            \"4 stars\": 1,\n            \"3 stars\": 0,\n            \"2 stars\": 0,\n            \"1 stars\": 0,\n            \"0 stars\": 0\n        }\n    },\n    {\n        \"id\": 9,\n        \"provider_location_id\": 4,\n        \"provider_name\": \"Remostart\",\n        \"category_id\": 1,\n        \"category_name\": \"DOCTORS\",\n        \"title\": \"check ear\",\n        \"description\": \"full check for ears\",\n        \"images\": [\n            \"http://127.0.0.1:8000/media/services/97ab6bae18e14db083563f74b83059da.png\",\n            \"http://127.0.0.1:8000/media/services/0419079b9a634b09a0955d006d1a8463.jpg\"\n        ],\n        \"price\": 5000,\n        \"discount_ammount\": 0,\n        \"is_active\": true,\n        \"created_at\": \"2023-12-06T18:00:17.968911Z\",\n        \"updated_at\": \"2023-12-06T18:00:17.968911Z\",\n        \"rates\": {\n            \"avg_rate\": 4.5,\n            \"5 stars\": 1,\n            \"4 stars\": 1,\n            \"3 stars\": 0,\n            \"2 stars\": 0,\n            \"1 stars\": 0,\n            \"0 stars\": 0\n        }\n    },\n    {\n        \"id\": 10,\n        \"provider_location_id\": 4,\n        \"provider_name\": \"Remostart\",\n        \"category_id\": 3,\n        \"category_name\": \"OPTICS\",\n        \"title\": \"check eye\",\n        \"description\": \"full check for eyes\",\n        \"images\": [\n            \"http://127.0.0.1:8000/media/services/51e707450b0547a3b4386a83c0d38239.png\",\n            \"http://127.0.0.1:8000/media/services/d611dadbc7634debb3ba4b67fccc4a0c.jpg\"\n        ],\n        \"price\": 5000,\n        \"discount_ammount\": 0,\n        \"is_active\": true,\n        \"created_at\": \"2023-12-06T18:07:33.810552Z\",\n        \"updated_at\": \"2023-12-06T18:07:33.810552Z\",\n        \"rates\": {\n            \"avg_rate\": 1,\n            \"5 stars\": 0,\n            \"4 stars\": 0,\n            \"3 stars\": 0,\n            \"2 stars\": 1,\n            \"1 stars\": 0,\n            \"0 stars\": 1\n        }\n    },\n    {\n        \"id\": 22,\n        \"service_provider\": \"our_new_name\",\n        \"service_provider_location\": 6,\n        \"category_id\": 1,\n        \"category_title\": \"DOCTORS\",\n        \"quantity\": 70,\n        \"title\": \"childs milk\",\n        \"description\": \"any description\",\n        \"images\": [\n            \"http://127.0.0.1:8000/media/products/6b8a001d16d145be80d8281c689a264f.png\",\n            \"http://127.0.0.1:8000/media/products/aa0b8e26af344ac48158d3752ef3cce4.png\"\n        ],\n        \"price\": 1500.2,\n        \"discount_ammount\": 0,\n        \"is_active\": false,\n        \"rates\": {\n            \"0\": 0,\n            \"1\": 0,\n            \"2\": 0,\n            \"3\": 0,\n            \"4\": 0,\n            \"5\": 0,\n            \"avg_rate\": 0\n        }\n    },\n    {\n        \"id\": 24,\n        \"service_provider\": \"our_new_name\",\n        \"service_provider_location\": 6,\n        \"category_id\": 1,\n        \"category_title\": \"DOCTORS\",\n        \"quantity\": 66,\n        \"title\": \"childs milk\",\n        \"description\": \"any description\",\n        \"images\": [\n            \"http://127.0.0.1:8000/media/products/10b5083b557241eaa77dada69f1ef269.png\",\n            \"http://127.0.0.1:8000/media/products/03bce9bf30f34c718f82f6a9db7eef71.png\"\n        ],\n        \"price\": 1500.2,\n        \"discount_ammount\": 0,\n        \"is_active\": false,\n        \"rates\": {\n            \"0\": 0,\n            \"1\": 0,\n            \"2\": 0,\n            \"3\": 0,\n            \"4\": 1,\n            \"5\": 1,\n            \"avg_rate\": 4.5\n        }\n    },\n    {\n        \"id\": 25,\n        \"service_provider\": \"our_new_name\",\n        \"service_provider_location\": 6,\n        \"category_id\": 1,\n        \"category_title\": \"DOCTORS\",\n        \"quantity\": 61,\n        \"title\": \"Nan\",\n        \"description\": \"any description\",\n        \"images\": [\n            \"http://127.0.0.1:8000/media/products/a3394b3a27b8423fb59b0b417b02021c.png\",\n            \"http://127.0.0.1:8000/media/products/9240aef35f7d4bd4b40b152c3a3d5dfa.png\"\n        ],\n        \"price\": 1500.2,\n        \"discount_ammount\": 0,\n        \"is_active\": false,\n        \"rates\": {\n            \"0\": 0,\n            \"1\": 0,\n            \"2\": 0,\n            \"3\": 0,\n            \"4\": 1,\n            \"5\": 1,\n            \"avg_rate\": 4.5\n        }\n    },\n    {\n        \"id\": 26,\n        \"service_provider\": \"our_new_name\",\n        \"service_provider_location\": 5,\n        \"category_id\": 1,\n        \"category_title\": \"DOCTORS\",\n        \"quantity\": 64,\n        \"title\": \"bebelait\",\n        \"description\": \"any description\",\n        \"images\": [\n            \"http://127.0.0.1:8000/media/products/62798ed7c503442f9ca7fad538588f14.png\",\n            \"http://127.0.0.1:8000/media/products/ff18aa49b3974977bfbf2c7ab66b92f2.png\"\n        ],\n        \"price\": 1500.2,\n        \"discount_ammount\": 0,\n        \"is_active\": false,\n        \"rates\": {\n            \"0\": 0,\n            \"1\": 0,\n            \"2\": 0,\n            \"3\": 0,\n            \"4\": 2,\n            \"5\": 0,\n            \"avg_rate\": 4\n        }\n    },\n    {\n        \"id\": 27,\n        \"service_provider\": \"our_new_name\",\n        \"service_provider_location\": 5,\n        \"category_id\": 1,\n        \"category_title\": \"DOCTORS\",\n        \"quantity\": 66,\n        \"title\": \"gicouz\",\n        \"description\": \"any description\",\n        \"images\": [\n            \"http://127.0.0.1:8000/media/products/270489b341c64264981cb4bf16f6916d.png\",\n            \"http://127.0.0.1:8000/media/products/7d86cc0cbac94d8e855b945c70aa1553.png\"\n        ],\n        \"price\": 1500.2,\n        \"discount_ammount\": 0,\n        \"is_active\": false,\n        \"rates\": {\n            \"0\": 0,\n            \"1\": 0,\n            \"2\": 0,\n            \"3\": 0,\n            \"4\": 2,\n            \"5\": 0,\n            \"avg_rate\": 4\n        }\n    }\n]"},{"id":"cd5752c0-ddf3-4121-9fdc-c38e84eba802","name":"overall search (with everything)","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://127.0.0.1:8000/api/v1/services_&_products/?longitude=-116.234234&latitude=35.345345&rates=[1, 2, 3, 4, 5]&categories=[1, 2, 3]&min_price=0&max_price=50000&search=check","host":["http://127.0.0.1:8000/api/v1"],"path":["services_&_products",""],"query":[{"key":"longitude","value":"-116.234234"},{"key":"latitude","value":"35.345345"},{"key":"rates","value":"[1, 2, 3, 4, 5]"},{"key":"categories","value":"[1, 2, 3]"},{"key":"min_price","value":"0"},{"key":"max_price","value":"50000"},{"key":"search","value":"check"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 07 Feb 2024 16:19:38 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.11.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language, Cookie"},{"key":"Allow","value":"OPTIONS, GET"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"1703"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 7,\n        \"provider_location_id\": 3,\n        \"provider_name\": \"Remostart\",\n        \"category_id\": 1,\n        \"category_name\": \"DOCTORS\",\n        \"title\": \"check stomach\",\n        \"description\": \"full check for stomach\",\n        \"images\": [\n            \"http://127.0.0.1:8000/media/services/09d7260f9359477ba770a6fc4492965f.png\",\n            \"http://127.0.0.1:8000/media/services/622d0eedc29b48f99709830f282cdf0f.jpg\"\n        ],\n        \"price\": 5000,\n        \"discount_ammount\": 0,\n        \"is_active\": true,\n        \"created_at\": \"2023-12-16T10:44:45.921051Z\",\n        \"updated_at\": \"2023-12-16T09:49:54.929895Z\",\n        \"rates\": {\n            \"avg_rate\": 4,\n            \"5 stars\": 1,\n            \"4 stars\": 0,\n            \"3 stars\": 1,\n            \"2 stars\": 0,\n            \"1 stars\": 0,\n            \"0 stars\": 0\n        }\n    },\n    {\n        \"id\": 8,\n        \"provider_location_id\": 3,\n        \"provider_name\": \"Remostart\",\n        \"category_id\": 1,\n        \"category_name\": \"DOCTORS\",\n        \"title\": \"check Endocrine\",\n        \"description\": \"full check for all Endocrine\",\n        \"images\": [\n            \"http://127.0.0.1:8000/media/services/9510dab7a22042839794b2d8d0928440.png\",\n            \"http://127.0.0.1:8000/media/services/5091158aa50a46d7806d21d73f19c575.jpg\"\n        ],\n        \"price\": 5000,\n        \"discount_ammount\": 0,\n        \"is_active\": true,\n        \"created_at\": \"2023-12-06T17:58:37.837090Z\",\n        \"updated_at\": \"2023-12-06T17:58:37.837090Z\",\n        \"rates\": {\n            \"avg_rate\": 4,\n            \"5 stars\": 0,\n            \"4 stars\": 1,\n            \"3 stars\": 0,\n            \"2 stars\": 0,\n            \"1 stars\": 0,\n            \"0 stars\": 0\n        }\n    },\n    {\n        \"id\": 20,\n        \"provider_location_id\": 3,\n        \"provider_name\": \"Remostart\",\n        \"category_id\": 3,\n        \"category_name\": \"OPTICS\",\n        \"title\": \"check feet\",\n        \"description\": \"full checkup for feet\",\n        \"images\": [\n            \"http://127.0.0.1:8000/media/services/fc47d2f034764340add89199135bde18.png\",\n            \"http://127.0.0.1:8000/media/services/9f2a7b20616c4e56af8ca6358b2252f7.png\"\n        ],\n        \"price\": 4536,\n        \"discount_ammount\": 0,\n        \"is_active\": true,\n        \"created_at\": \"2024-01-27T07:39:13.804504Z\",\n        \"updated_at\": \"2024-01-27T08:25:58.905121Z\",\n        \"rates\": {\n            \"avg_rate\": 5,\n            \"5 stars\": 1,\n            \"4 stars\": 0,\n            \"3 stars\": 0,\n            \"2 stars\": 0,\n            \"1 stars\": 0,\n            \"0 stars\": 0\n        }\n    }\n]"}],"_postman_id":"d301dea2-4c71-49b6-bc1c-632a7d4e62db"},{"name":"overall serch stats","id":"bb903774-ecc0-45a9-9efb-0571ef13ca73","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://127.0.0.1:8000/api/v1/services_&_products/stats/?longitude=-116.234234&latitude=35.345345","description":"<p>This endpoint returns statistical info about services &amp; products in all over the system.</p>\n<p><strong>This endpoint is for everybody.</strong></p>\n","urlObject":{"path":["services_&_products","stats",""],"host":["http://127.0.0.1:8000/api/v1"],"query":[{"key":"longitude","value":"-116.234234"},{"key":"latitude","value":"35.345345"}],"variable":[]}},"response":[{"id":"670f2a2b-79c0-4087-b6a6-fa907e22819b","name":"overall search stats(bad request)","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://127.0.0.1:8000/api/v1/services_&_products/stats/?","host":["http://127.0.0.1:8000/api/v1"],"path":["services_&_products","stats",""],"query":[{"key":"","value":null,"type":"text"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 07 Feb 2024 16:21:19 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.11.0"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Accept-Language, Cookie"},{"key":"Allow","value":"OPTIONS, GET"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"45"},{"key":"Content-Language","value":"en"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"strict-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"longitude & latitude are needed\"\n}"}],"_postman_id":"bb903774-ecc0-45a9-9efb-0571ef13ca73"}],"event":[{"listen":"prerequest","script":{"id":"0aea3eb7-d1b7-42d1-b59a-c863f266a88b","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"f084b3ab-298f-400e-b6b4-e72c3a073df3","type":"text/javascript","exec":[""]}}],"variable":[{"key":"baseUrl","value":"http://127.0.0.1:8000/api/v1"}]}