{"info":{"_postman_id":"25373a21-eb3e-4656-bda8-1dab42fae3a9","name":"ePharma","description":"<html><head></head><body><p>This is the drug module API for the project ePharma</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"28890433","collectionId":"25373a21-eb3e-4656-bda8-1dab42fae3a9","publishedId":"2s9YeD8ssY","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2023-11-25T08:04:57.000Z"},"item":[{"name":"users","item":[{"name":"get all users","id":"05c165e3-2323-4d88-80b4-e5ceb2347911","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"description":"<p>This API endpoint is used to retrieve a list of users. It sends an HTTP GET request to the URL <code>127.0.0.1:8000/api/users</code>.</p>\n<h3 id=\"request-parameters\">Request Parameters</h3>\n<p>This endpoint does not require any request parameters.</p>\n<h3 id=\"response\">Response</h3>\n<p>The response to this request is a JSON array containing user objects. Each user object has the following properties:</p>\n<ul>\n<li><code>id</code> (integer): The unique identifier of the user.</li>\n<li><code>name</code> (string): The name of the user.</li>\n<li><code>email</code> (string): The email address of the user.</li>\n<li><code>email_verified_at</code> (string/null): The timestamp when the user's email was verified. It can be null if the email is not verified.</li>\n<li><code>role</code> (string): The role of the user.</li>\n<li><code>gender</code> (string): The gender of the user.</li>\n<li><code>created_at</code> (string/null): The timestamp when the user was created. It can be null if the user is not created yet.</li>\n<li><code>updated_at</code> (string/null): The timestamp when the user was last updated. It can be null if the user is not updated yet.</li>\n</ul>\n<h3 id=\"example-response\">Example Response</h3>\n<p>The last execution of this request returned a response with status code 200. The response body was:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">[{\"id\":0,\"name\":\"\",\"email\":\"\",\"email_verified_at\":null,\"role\":\"\",\"gender\":\"\",\"created_at\":null,\"updated_at\":null}]\n</code></pre>\n","urlObject":{"query":[],"variable":[]},"url":""},"response":[],"_postman_id":"05c165e3-2323-4d88-80b4-e5ceb2347911"},{"name":"get a specific user","id":"c1639845-0cb6-4d73-8139-c30041825504","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"description":"<p>This HTTP GET request is used to retrieve information about a specific user with the ID 2. The request is sent to the endpoint 127.0.0.1:8000/api/users/2.</p>\n<p>The last execution of this request returned a response with a status code of 200, indicating a successful request. The response body contains the following information about the user:</p>\n<ul>\n<li><code>id</code>: The unique identifier of the user (integer).</li>\n<li><code>name</code>: The name of the user (string).</li>\n<li><code>email</code>: The email address of the user (string).</li>\n<li><code>email_verified_at</code>: The date and time when the user's email was verified (null if not verified).</li>\n<li><code>role</code>: The role of the user (string).</li>\n<li><code>gender</code>: The gender of the user (string).</li>\n<li><code>created_at</code>: The date and time when the user was created (null if not available).</li>\n<li><code>updated_at</code>: The date and time when the user was last updated (string).</li>\n</ul>\n<p>Please note that the actual values for these properties may vary and the response may not contain all the properties listed above.</p>\n<p>To use this endpoint, you can send a GET request to the specified URL, replacing <code>2</code> with the ID of the user you want to retrieve information for. The response will contain the user's details in the specified format.</p>\n<p>Please refer to the API documentation or contact the API provider for more information on the request and response format.</p>\n","urlObject":{"query":[],"variable":[]},"url":""},"response":[{"id":"10757919-8c72-4d1b-81d7-039f2e83d19f","name":"get a specific user","originalRequest":{"method":"GET","header":[]},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null}],"_postman_id":"c1639845-0cb6-4d73-8139-c30041825504"},{"name":"add a new user","id":"3b44a85a-acc5-4f7b-b0a3-5ace2f892616","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"description":"<p>This API endpoint allows you to create a new user by sending an HTTP POST request to the specified URL. The request should include the user's name, email, password, role, and gender as query parameters.</p>\n<h3 id=\"request-parameters\">Request Parameters</h3>\n<ul>\n<li><code>name</code> (string, required): The name of the user.</li>\n<li><code>email</code> (string, required): The email address of the user.</li>\n<li><code>password</code> (string, required): The password for the user's account.</li>\n<li><code>role</code> (string, required): The role of the user.</li>\n<li><code>gender</code> (string, required): The gender of the user.</li>\n</ul>\n<h3 id=\"response\">Response</h3>\n<p>The API will respond with a status code of 201 if the user is successfully created. The response body will contain the details of the created user, including the following fields:</p>\n<ul>\n<li><code>name</code> (string): The name of the user.</li>\n<li><code>email</code> (string): The email address of the user.</li>\n<li><code>role</code> (string): The role of the user.</li>\n<li><code>gender</code> (string): The gender of the user.</li>\n<li><code>updated_at</code> (string): The date and time when the user was last updated.</li>\n<li><code>created_at</code> (string): The date and time when the user was created.</li>\n<li><code>id</code> (integer): The unique identifier of the user.</li>\n</ul>\n<p>Please note that the values in the response may not be the same as the ones provided in the request, as the response will contain the actual values stored in the database.</p>\n<p>To create a new user, send an HTTP POST request to the following URL:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>127.0.0.1:8000/api/users?name={name}&amp;email={email}&amp;password={password}&amp;role={role}&amp;gender={gender}\n\n</code></pre><p>Replace <code>{name}</code>, <code>{email}</code>, <code>{password}</code>, <code>{role}</code>, and <code>{gender}</code> with the actual values for the user you want to create.</p>\n<p>Example:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>POST 127.0.0.1:8000/api/users?name=Aurelian&amp;email=aurelan@gmail.com&amp;password=password&amp;role=user&amp;gender=male\n\n</code></pre><p>The response will be a JSON object with the user details and a status code of 201 if the user is successfully created.</p>\n","urlObject":{"query":[],"variable":[]},"url":""},"response":[{"id":"5d542032-ac7b-4353-aece-1ab56402cb26","name":"add a new user","originalRequest":{"method":"GET","header":[]},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null}],"_postman_id":"3b44a85a-acc5-4f7b-b0a3-5ace2f892616"},{"name":"update a user","id":"afa12597-a674-4afe-9d51-e2572afd2b49","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"description":"<p>This endpoint allows you to update the information of a user in the system. It uses the HTTP PATCH method and expects the user ID to be provided in the URL path, along with the updated user details as query parameters.</p>\n<p>To update a user, send a PATCH request to <code>127.0.0.1:8000/api/users/{user_id}</code> where <code>{user_id}</code> is the ID of the user you want to update. The following query parameters can be included in the request URL to update the corresponding user attributes:</p>\n<ul>\n<li><code>name</code>: The updated name of the user.</li>\n<li><code>email</code>: The updated email address of the user.</li>\n<li><code>password</code>: The updated password of the user.</li>\n<li><code>role</code>: The updated role of the user.</li>\n<li><code>gender</code>: The updated gender of the user.</li>\n</ul>\n<p>For example, to update the user with ID 2, you can send a PATCH request to <code>127.0.0.1:8000/api/users/2?name=Aurelian&amp;email=au@gmail.com&amp;password=password&amp;role=user&amp;gender=male</code>.</p>\n<p>The response to this request will have a status code of 200, indicating that the update was successful. The response body will contain the updated user information in JSON format, including the following attributes:</p>\n<ul>\n<li><code>id</code>: The ID of the user.</li>\n<li><code>name</code>: The updated name of the user.</li>\n<li><code>email</code>: The updated email address of the user.</li>\n<li><code>email_verified_at</code>: The date and time when the user's email was verified.</li>\n<li><code>role</code>: The updated role of the user.</li>\n<li><code>gender</code>: The updated gender of the user.</li>\n<li><code>created_at</code>: The date and time when the user was created.</li>\n<li><code>updated_at</code>: The date and time when the user was last updated.</li>\n</ul>\n<p>Please note that the response example you provided has placeholder values for most of the attributes. The actual values will depend on the user's data in the system.</p>\n<p>Make sure to include the necessary query parameters in the request URL to update the desired user attributes. If a query parameter is not included, its corresponding attribute will not be updated.</p>\n<p>Remember to authenticate the request and include any required headers or authentication tokens as specified by the API documentation.</p>\n","urlObject":{"query":[],"variable":[]},"url":""},"response":[{"id":"b6e9bc95-f68c-44bc-9bd6-033737dae2a3","name":"update a user","originalRequest":{"method":"GET","header":[]},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null}],"_postman_id":"afa12597-a674-4afe-9d51-e2572afd2b49"},{"name":"delete a user","id":"63be3133-46db-40f0-ba7e-525b5e8fa63d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"description":"<p>This HTTP DELETE request is used to delete a user with the ID 3 from the API.</p>\n<p>To delete a user, send a DELETE request to the endpoint <code>127.0.0.1:8000/api/users/3</code>. Replace <code>3</code> with the ID of the user you want to delete.</p>\n<p>The last execution of this request returned a response with a status code of 200, indicating that the user was successfully deleted. The response body included a JSON object with a <code>message</code> property, which was empty in this case.</p>\n<p>Please note that once a user is deleted, their information cannot be recovered. Make sure to double-check the user ID before sending the request.</p>\n","urlObject":{"query":[],"variable":[]},"url":""},"response":[{"id":"6bb6282b-f28b-4a38-9388-510572377add","name":"delete a user","originalRequest":{"method":"GET","header":[]},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null}],"_postman_id":"63be3133-46db-40f0-ba7e-525b5e8fa63d"}],"id":"57c14013-b0bd-4dd6-929d-676eba65e788","_postman_id":"57c14013-b0bd-4dd6-929d-676eba65e788","description":""},{"name":"drugs","item":[{"name":"get all drugs","id":"2c200571-f89b-4e66-bcb3-1dd272f637a2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"description":"<p>This API endpoint makes an HTTP GET request to retrieve a list of drugs. The request is sent to the URL <code>127.0.0.1:8000/api/drugs</code>.</p>\n<p>The response received from the last execution of this request had a status code of 200, indicating that the request was successful. The response body contained an array of drug objects, with each object having the following properties:</p>\n<ul>\n<li><code>id</code> (integer): The unique identifier of the drug.</li>\n<li><code>name</code> (string): The name of the drug.</li>\n<li><code>description</code> (string): A description of the drug.</li>\n<li><code>created_at</code> (string): The timestamp indicating when the drug was created.</li>\n<li><code>updated_at</code> (string): The timestamp indicating when the drug was last updated.</li>\n<li><code>category_id</code> (integer): The unique identifier of the category to which the drug belongs.</li>\n</ul>\n<p>Please note that the values of the properties may vary for different drugs.</p>\n<p>To use this API endpoint, send an HTTP GET request to the specified URL. The response will contain a list of drugs with their respective details.</p>\n","urlObject":{"query":[],"variable":[]},"url":""},"response":[{"id":"a4ddcffb-3ea7-4af5-b6c1-d5388979b4e9","name":"get all drugs","originalRequest":{"method":"GET","header":[]},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null}],"_postman_id":"2c200571-f89b-4e66-bcb3-1dd272f637a2"},{"name":"get a specific drug","id":"c5a5607e-2af4-4b17-8de6-e26013afadae","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"description":"<p>This API endpoint is used to retrieve information about a specific drug. It makes an HTTP GET request to the URL <code>127.0.0.1:8000/api/drugs/1</code>, where <code>1</code> is the ID of the drug.</p>\n<h3 id=\"request\">Request</h3>\n<p>The request does not require any parameters.</p>\n<h3 id=\"response\">Response</h3>\n<p>The response will have a status code of 200 if the request is successful. The response body will contain the following properties:</p>\n<ul>\n<li><code>id</code> (integer): The unique identifier of the drug.</li>\n<li><code>name</code> (string): The name of the drug.</li>\n<li><code>description</code> (string): A description of the drug.</li>\n<li><code>created_at</code> (string): The timestamp when the drug was created.</li>\n<li><code>updated_at</code> (string): The timestamp when the drug was last updated.</li>\n<li><code>category_id</code> (integer): The ID of the category to which the drug belongs.</li>\n</ul>\n<p>Please note that the values of the properties may vary depending on the specific drug being requested.</p>\n","urlObject":{"query":[],"variable":[]},"url":""},"response":[{"id":"ae3410bd-f9df-42e4-a911-c035e6f53d2d","name":"get a specific drug","originalRequest":{"method":"GET","header":[]},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null}],"_postman_id":"c5a5607e-2af4-4b17-8de6-e26013afadae"},{"name":"add a new drug","id":"3add7592-4c06-4e9f-937e-6dd1063ed95c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"description":"<p>This API endpoint allows you to add a new drug to the system.</p>\n<p>To add a drug, send a POST request to <code>127.0.0.1:8000/api/drugs</code> with the following parameters in the request body:</p>\n<ul>\n<li><code>name</code> (string, required): The name of the drug.</li>\n<li><code>description</code> (string, required): A description of the drug.</li>\n<li><code>category_id</code> (integer, required): The ID of the drug category.</li>\n</ul>\n<p>Example request:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>POST 127.0.0.1:8000/api/drugs\n{\n  \"name\": \"test\",\n  \"description\": \"first test\",\n  \"category_id\": 40\n}\n\n</code></pre><p>The API will respond with a status code of 201 if the drug was successfully added. The response body will contain the details of the newly created drug, including the following fields:</p>\n<ul>\n<li><code>name</code> (string): The name of the drug.</li>\n<li><code>description</code> (string): A description of the drug.</li>\n<li><code>category_id</code> (integer): The ID of the drug category.</li>\n<li><code>updated_at</code> (string): The timestamp of when the drug was last updated.</li>\n<li><code>created_at</code> (string): The timestamp of when the drug was created.</li>\n<li><code>id</code> (integer): The unique ID of the drug.</li>\n</ul>\n<p>Example response:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>Status: 201\n{\n  \"name\": \"\",\n  \"description\": \"\",\n  \"category_id\": \"\",\n  \"updated_at\": \"\",\n  \"created_at\": \"\",\n  \"id\": 0\n}\n\n</code></pre><p>Please note that the values in the response may be empty or default values, as they are not provided in the request.</p>\n<p>Make sure to include the required parameters (<code>name</code>, <code>description</code>, and <code>category_id</code>) in your request to successfully add a new drug to the system.</p>\n","urlObject":{"query":[],"variable":[]},"url":""},"response":[{"id":"263163f9-d090-437e-9bcb-09c7c5a7c20b","name":"add a new drug","originalRequest":{"method":"GET","header":[]},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null}],"_postman_id":"3add7592-4c06-4e9f-937e-6dd1063ed95c"},{"name":"update a new drug","id":"6a61bae2-ad61-435f-8edd-33848703a5e3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"description":"<p>This PATCH request is used to update the details of a specific drug in the API. The drug to be updated is identified by its ID, which is provided in the URL path parameter. Additionally, the category ID is passed as a query parameter to specify the category to which the drug belongs.</p>\n<p>To update the drug, the request should include the desired changes in the request body. The response will contain the updated details of the drug.</p>\n<h3 id=\"request\">Request</h3>\n<ul>\n<li>Method: PATCH</li>\n<li>URL: <code>http://127.0.0.1:8000/api/drugs/5?category_id=2</code></li>\n</ul>\n<h4 id=\"query-parameters\">Query Parameters</h4>\n<ul>\n<li><code>category_id</code>: The ID of the category to which the drug belongs.</li>\n</ul>\n<h3 id=\"response\">Response</h3>\n<p>The response to this request will have a status code of 200, indicating a successful update. The response body will contain the updated details of the drug in JSON format. The properties of the drug object are as follows:</p>\n<ul>\n<li><code>id</code>: The unique identifier of the drug.</li>\n<li><code>name</code>: The name of the drug.</li>\n<li><code>description</code>: A description of the drug.</li>\n<li><code>created_at</code>: The timestamp when the drug was created.</li>\n<li><code>updated_at</code>: The timestamp when the drug was last updated.</li>\n<li><code>category_id</code>: The ID of the category to which the drug belongs.</li>\n</ul>\n<p>Please note that the response provided in the example has empty values for most properties. This is likely due to the absence of actual data in the database. In a real scenario, the response would contain the updated values for the drug properties.</p>\n","urlObject":{"query":[],"variable":[]},"url":""},"response":[{"id":"e67cafe3-3e45-49ec-a05b-c3190c9a4b9d","name":"update a new drug","originalRequest":{"method":"GET","header":[]},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null}],"_postman_id":"6a61bae2-ad61-435f-8edd-33848703a5e3"},{"name":"delete a drug","id":"c0a07bc6-8510-4e54-8023-6286cd10b232","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"urlObject":{"query":[],"variable":[]},"url":""},"response":[{"id":"915d3b3c-6829-4077-9a71-0ca00fc6394c","name":"delete a drug","originalRequest":{"method":"GET","header":[]},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null}],"_postman_id":"c0a07bc6-8510-4e54-8023-6286cd10b232"}],"id":"83d60865-fc17-4ffd-aa4c-7f07ba6c4b3c","_postman_id":"83d60865-fc17-4ffd-aa4c-7f07ba6c4b3c","description":""},{"name":"drug categories","item":[{"name":"get all drug categories","id":"768f76a7-edab-47f3-b389-7f62ee241f69","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"description":"<p>This API endpoint allows you to retrieve a list of drug categories.</p>\n<p>To retrieve the drug categories, make a GET request to the following URL:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>127.0.0.1:8000/api/drug-categories\n\n</code></pre><p>The request does not require any specific parameters.</p>\n<p>The response will be a JSON array containing the drug categories. Each drug category object will have the following properties:</p>\n<ul>\n<li><code>id</code>: The unique identifier for the drug category (integer).</li>\n<li><code>name</code>: The name of the drug category (string).</li>\n<li><code>created_at</code>: The date and time when the drug category was created (string).</li>\n<li><code>updated_at</code>: The date and time when the drug category was last updated (string).</li>\n</ul>\n<p>Here is an example response:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>[\n    {\n        \"id\": 0,\n        \"name\": \"\",\n        \"created_at\": null,\n        \"updated_at\": null\n    }\n]\n\n</code></pre><p>Please note that the values in the response example are placeholders and may not represent actual data.</p>\n<p>The HTTP status code for a successful request is 200.</p>\n","urlObject":{"query":[],"variable":[]},"url":""},"response":[{"id":"8e2274bb-46bc-43de-85f8-f0d8d5d92fba","name":"get all drug categories","originalRequest":{"method":"GET","header":[]},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null}],"_postman_id":"768f76a7-edab-47f3-b389-7f62ee241f69"},{"name":"get a specific drug category","id":"c9975576-59d0-4ed7-85c1-3b7e0922344e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"description":"<p>This API endpoint is used to retrieve information about a specific drug category.</p>\n<p>To retrieve the information, send a GET request to <code>127.0.0.1:8000/api/drug-categories/{id}</code>, where <code>{id}</code> represents the unique identifier of the drug category.</p>\n<p>The response will contain the following details:</p>\n<ul>\n<li><code>id</code>: The unique identifier of the drug category.</li>\n<li><code>name</code>: The name of the drug category.</li>\n<li><code>created_at</code>: The timestamp when the drug category was created.</li>\n<li><code>updated_at</code>: The timestamp when the drug category was last updated.</li>\n</ul>\n<p>Please note that the response you received from the last execution had the following values:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>Status: 200\n{\n  \"id\": 0,\n  \"name\": \"\",\n  \"created_at\": null,\n  \"updated_at\": null\n}\n\n</code></pre><p>Feel free to use this API endpoint to retrieve information about drug categories as needed.</p>\n","urlObject":{"query":[],"variable":[]},"url":""},"response":[{"id":"611b38c1-b117-405f-9469-981d2c23c4dd","name":"get a specific drug category","originalRequest":{"method":"GET","header":[]},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null}],"_postman_id":"c9975576-59d0-4ed7-85c1-3b7e0922344e"},{"name":"add a new drug category","id":"402a9139-45d9-476c-b16d-3a8ff6b3f40d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"description":"<p>This API endpoint allows you to create a new drug category by making an HTTP POST request to the specified URL. The request should include the name of the new drug category as a query parameter.</p>\n<h3 id=\"request\">Request</h3>\n<ul>\n<li>Method: POST</li>\n<li>URL: <code>http://127.0.0.1:8000/api/drug-categories</code></li>\n<li>Query Parameters:<ul>\n<li><code>name</code> (required): The name of the new drug category.</li>\n</ul>\n</li>\n</ul>\n<h3 id=\"response\">Response</h3>\n<p>The API will respond with a status code of 201 if the request is successful. The response body will contain information about the newly created drug category in JSON format. The properties included in the response are as follows:</p>\n<ul>\n<li><code>name</code>: The name of the drug category.</li>\n<li><code>updated_at</code>: The date and time when the drug category was last updated.</li>\n<li><code>created_at</code>: The date and time when the drug category was created.</li>\n<li><code>id</code>: The unique identifier of the drug category.</li>\n</ul>\n<p>Please note that the values for the properties <code>name</code>, <code>updated_at</code>, <code>created_at</code>, and <code>id</code> will be populated with actual data specific to the newly created drug category.</p>\n","urlObject":{"query":[],"variable":[]},"url":""},"response":[{"id":"4751f1c8-16db-42f9-90f0-3e15cd11335a","name":"add a new drug category","originalRequest":{"method":"GET","header":[]},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null}],"_postman_id":"402a9139-45d9-476c-b16d-3a8ff6b3f40d"},{"name":"update a drug category","id":"85a1536a-a5c6-451e-9d37-f8db628a9b10","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"description":"<p>This HTTP PATCH request is used to update a specific drug category by its ID. The request is made to the endpoint at <code>127.0.0.1:8000/api/drug-categories/10</code>, where <code>10</code> is the ID of the drug category to be updated. The request body should contain the updated information for the drug category.</p>\n<p>The request URL also includes a query parameter <code>name</code> with the value <code>new one</code>. This parameter is used to update the name of the drug category.</p>\n<p>The response to this request has a status code of 200, indicating a successful update. The response body contains the updated information for the drug category, including its ID, name, creation timestamp, and last update timestamp.</p>\n<p>Here is an example of the response body:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n    \"id\": 0,\n    \"name\": \"\",\n    \"created_at\": null,\n    \"updated_at\": \"\"\n}\n</code></pre><p>Please note that the actual values in the response may differ from the example provided here.</p>\n<p>To update a drug category, make a PATCH request to the specified endpoint with the desired changes in the request body. The response will contain the updated information for the drug category.</p>\n","urlObject":{"query":[],"variable":[]},"url":""},"response":[{"id":"883ace6d-dfcf-47a3-81ff-04af997dc869","name":"update a drug category","originalRequest":{"method":"GET","header":[]},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null}],"_postman_id":"85a1536a-a5c6-451e-9d37-f8db628a9b10"},{"name":"delete a drug category","id":"b7908f74-80a2-4186-acb5-14e0b2a659cd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"urlObject":{"query":[],"variable":[]},"url":""},"response":[{"id":"9989c5c7-34f3-495f-bb34-ae64e80f40f2","name":"delete a drug category","originalRequest":{"method":"GET","header":[]},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null}],"_postman_id":"b7908f74-80a2-4186-acb5-14e0b2a659cd"}],"id":"2b6ef8fa-a995-4325-972e-69b248720339","description":"<p>This is the api for the drug categories module.</p>\n","_postman_id":"2b6ef8fa-a995-4325-972e-69b248720339"},{"name":"purchases","item":[{"name":"get all purchases","id":"d6fa45b4-efdd-4579-97c0-0e391d75d3f9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"urlObject":{"query":[],"variable":[]},"url":""},"response":[{"id":"494d2f62-2c5f-4979-b210-e9ed17cf2dd4","name":"get all purchases","originalRequest":{"method":"GET","header":[]},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null}],"_postman_id":"d6fa45b4-efdd-4579-97c0-0e391d75d3f9"},{"name":"get drug details by id","id":"87737a97-8429-46de-b01d-cf7711560e1f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"urlObject":{"query":[],"variable":[]},"url":""},"response":[{"id":"8578a4fe-9901-4e8f-9357-1cbe7839456b","name":"get drug details by id","originalRequest":{"method":"GET","header":[]},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null}],"_postman_id":"87737a97-8429-46de-b01d-cf7711560e1f"},{"name":"add a new drug category","id":"24a8fe5e-f1b8-4455-95cb-a81fd8bf0a22","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"urlObject":{"query":[],"variable":[]},"url":""},"response":[{"id":"0b225f06-6d0e-4764-be26-2c6f058e631a","name":"add a new drug category","originalRequest":{"method":"GET","header":[]},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null}],"_postman_id":"24a8fe5e-f1b8-4455-95cb-a81fd8bf0a22"},{"name":"update a new purchase","id":"f6dc60e3-9a3f-4b8e-80ce-01ea1ce15c48","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"urlObject":{"query":[],"variable":[]},"url":""},"response":[{"id":"4498d2a3-d11b-4b0e-a486-5ed6bc5fa89d","name":"update a new purchase","originalRequest":{"method":"GET","header":[]},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null}],"_postman_id":"f6dc60e3-9a3f-4b8e-80ce-01ea1ce15c48"},{"name":"delete a purchase","id":"d1f9aa0b-e7f4-413a-b13d-d6ead51188af","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"urlObject":{"query":[],"variable":[]},"url":""},"response":[{"id":"98c44ad3-1d59-43e7-a3b3-448ad305c5d1","name":"delete a purchase","originalRequest":{"method":"GET","header":[]},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null}],"_postman_id":"d1f9aa0b-e7f4-413a-b13d-d6ead51188af"}],"id":"3d596d49-0ba6-48cc-9342-5b3bd64f103d","_postman_id":"3d596d49-0ba6-48cc-9342-5b3bd64f103d","description":""},{"name":"Subscriptions","item":[{"name":"subscribe","id":"c904da4b-48e8-46dd-b2ed-2dce9bd35245","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"description":"<p>This endpoint allows you to subscribe to a specific plan by sending an HTTP POST request to the specified URL. The plan parameter in the query string should be set to the desired plan you want to subscribe to.</p>\n<h3 id=\"request-parameters\">Request Parameters</h3>\n<ul>\n<li>plan (query parameter): The plan you want to subscribe to. This parameter is required.</li>\n</ul>\n<h3 id=\"response\">Response</h3>\n<p>The response will have a status code of 200 indicating a successful subscription. The response body will contain the following properties:</p>\n<ul>\n<li>message: A message related to the subscription. This property may be empty.</li>\n<li>subscription: An object containing details about the subscription.<ul>\n<li>user_id: The ID of the user associated with the subscription.</li>\n<li>plan: The name of the subscribed plan.</li>\n<li>expires_at: The date and time when the subscription will expire.</li>\n<li>updated_at: The date and time when the subscription was last updated.</li>\n<li>created_at: The date and time when the subscription was created.</li>\n<li>id: The unique ID of the subscription.</li>\n</ul>\n</li>\n</ul>\n<p>Please note that the actual values for user_id, plan, expires_at, updated_at, created_at, and id may vary in the response.</p>\n<p>To subscribe to a plan, make an HTTP POST request to the following URL:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>POST 127.0.0.1:8000/api/subscribe?plan=Mothly\n\n</code></pre><p>Remember to replace \"Mothly\" with the actual name of the plan you want to subscribe to.</p>\n<p>Example Response:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n  \"message\": \"\",\n  \"subscription\": {\n    \"user_id\": 0,\n    \"plan\": \"\",\n    \"expires_at\": \"\",\n    \"updated_at\": \"\",\n    \"created_at\": \"\",\n    \"id\": 0\n  }\n}\n\n</code></pre>","urlObject":{"query":[],"variable":[]},"url":""},"response":[],"_postman_id":"c904da4b-48e8-46dd-b2ed-2dce9bd35245"},{"name":"login","id":"174330ad-0fa8-4bd1-a1d6-57c104c03e90","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"urlObject":{"query":[],"variable":[]},"url":""},"response":[],"_postman_id":"174330ad-0fa8-4bd1-a1d6-57c104c03e90"},{"name":"unsubscribe","id":"8d65edb3-9e9b-4ca1-8342-85e077f469b0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"description":"<p>This API endpoint allows users to unsubscribe from a service. It is a HTTP POST request that should be sent to the URL <code>127.0.0.1:8000/api/unsubscribe</code>.</p>\n<h3 id=\"request-parameters\">Request Parameters</h3>\n<p>This endpoint does not require any request parameters.</p>\n<h3 id=\"response\">Response</h3>\n<p>The response from the API will have a status code of 200, indicating a successful request. The response body will be in JSON format and will contain a message property. In the last execution, the value of the message property was an empty string.</p>\n<p>Please note that the actual response message may vary depending on the specific implementation of the API.</p>\n","urlObject":{"query":[],"variable":[]},"url":""},"response":[],"_postman_id":"8d65edb3-9e9b-4ca1-8342-85e077f469b0"},{"name":"subscriptions","id":"9cf505d0-d43c-4746-ab48-8c7cd3890055","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"urlObject":{"query":[],"variable":[]},"url":""},"response":[],"_postman_id":"9cf505d0-d43c-4746-ab48-8c7cd3890055"}],"id":"526fad6c-413d-49e4-ae35-910157e16c60","_postman_id":"526fad6c-413d-49e4-ae35-910157e16c60","description":""}]}