{"info":{"_postman_id":"942c92d4-b67f-4b46-949d-b5cc517a9823","name":"User Auth","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"30788290","collectionId":"942c92d4-b67f-4b46-949d-b5cc517a9823","publishedId":"2sAY4shiko","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2024-10-25T02:09:04.000Z"},"item":[{"name":"Admin Login","id":"311c1b5e-db14-4b5b-89c0-9ce89cf707c4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"email\": \"admin@example.com\",\n  \"password\": \"Admin1234\"\n}\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:8888/admin/api.php/auth/login","description":"<h3 id=\"auth-login\">Auth Login</h3>\n<p>This endpoint is used to authenticate the user and generate a session token for accessing admin functionalities.</p>\n<h4 id=\"request-body\">Request Body</h4>\n<ul>\n<li><p>email (string, required): The email address of the admin user.</p>\n</li>\n<li><p>password (string, required): The password of the admin user.</p>\n</li>\n</ul>\n<h4 id=\"response\">Response</h4>\n<p>The response is a JSON object with the following schema:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"status\": \"success\",\n    \"message\": \"Login successful.\",\n    \"auth_token\": \"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1dWlkIjoiYTZmNzEyMWMtYTYwOC00NmQ0LTk4YjctOTJlNjcxM2E1ZDY1IiwiZW1haWwiOiJhZG1pbkBleGFtcGxlLmNvbSIsInJvbGUiOiI0RE0xTiIsImlhdCI6MTcyOTg5ODQzNH0.CBWs6bP-50B9HN_XKNmhm44yDWj5Fil_V-_YnawIilU\",\n    \"user\": {\n        \"id\": \"a6f7121c-a608-46d4-98b7-92e6713a5d65\",\n        \"first_name\": \"Admin\",\n        \"last_name\": \"Admin\",\n        \"email\": \"admin@example.com\",\n        \"role\": \"4DM1N\"\n    }\n\n</code></pre>\n<ul>\n<li>token (string): The session token generated upon successful authentication.</li>\n</ul>\n","urlObject":{"protocol":"http","port":"8888","path":["admin","api.php","auth","login"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"311c1b5e-db14-4b5b-89c0-9ce89cf707c4"},{"name":"Admin Logout","id":"3a3ab7ec-8d11-43e2-b7ae-19688223011e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"email\": \"aljon@example.com\",\n  \"password\": \"Password123!\"\n}\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:8888/admin/api.php/auth/logout","description":"<h3 id=\"logout-user\">Logout User</h3>\n<p>The session token is used to log out the authenticated user.</p>\n<h4 id=\"request-body\">Request Body</h4>\n<ul>\n<li><p>email (string, required): The email address of the user.</p>\n</li>\n<li><p>password (string, required): The password of the user.</p>\n</li>\n</ul>\n<h4 id=\"response\">Response</h4>\n<p>The response will indicate the success or failure of the logout operation.</p>\n","urlObject":{"protocol":"http","port":"8888","path":["admin","api.php","auth","logout"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"3a3ab7ec-8d11-43e2-b7ae-19688223011e"},{"name":"Admin Update User","id":"bc6d2943-c968-4444-9123-cc7c376028ee","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"first_name\": \"Throw\",\n    \"last_name\": \"Away\",\n    \"email\": \"updatedemail@example.com\",\n    \"role\": \"0002\", \n    \"address\": \"New Address\",\n    \"phone_number\": \"123456789\",\n    \"password\": \"NewPassword123\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8888/admin/api.php/admin/users/6980ead4-fc03-4194-9420-855e80e3e71f","description":"<p>This endpoint allows updating user information via an HTTP PUT request. The request should be made to <a href=\"http://localhost:8888/admin/api.php/admin/users/6980ead4-fc03-4194-9420-855e80e3e71f\">http://localhost:8888/admin/api.php/admin/users/6980ead4-fc03-4194-9420-855e80e3e71f</a>.</p>\n<h3 id=\"request-body\">Request Body</h3>\n<p>The request body should be in raw format and include the following parameters:</p>\n<ul>\n<li><p><code>first_name</code>: (string) The updated first name of the user.</p>\n</li>\n<li><p><code>last_name</code>: (string) The updated last name of the user.</p>\n</li>\n<li><p><code>email</code>: (string) The updated email address of the user.</p>\n</li>\n<li><p><code>role</code>: (string) The updated role of the user.</p>\n</li>\n<li><p><code>address</code>: (string) The updated address of the user.</p>\n</li>\n<li><p><code>phone_number</code>: (string) The updated phone number of the user.</p>\n</li>\n<li><p><code>password</code>: (string) The new password for the user.</p>\n</li>\n</ul>\n<h3 id=\"response\">Response</h3>\n<p>The response to the request will contain the updated user information or a success message upon successful update. The response will also include appropriate status and error messages in case of any issues.</p>\n","urlObject":{"protocol":"http","port":"8888","path":["admin","api.php","admin","users","6980ead4-fc03-4194-9420-855e80e3e71f"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"bc6d2943-c968-4444-9123-cc7c376028ee"},{"name":"Admin Delete User","id":"336061ce-dcdc-4ef5-9d76-522afbc82f68","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"DELETE","header":[],"url":"http://localhost:8888/admin/api.php/admin/users/91e3e8dc-e72e-4303-846f-2540636c0f1e","description":"<h3 id=\"delete-user\">Delete User</h3>\n<p>This endpoint is used to delete a specific user.</p>\n<h4 id=\"request-body\">Request Body</h4>\n<p>This request does require a token.</p>\n<h4 id=\"response\">Response</h4>\n<ul>\n<li><p><code>status</code> (string): Indicates the status of the request, whether it was successful or not.</p>\n</li>\n<li><p><code>message</code> (string): Provides a message related to the status of the request.</p>\n</li>\n</ul>\n<p>Example:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"status\": \"success\",\n    \"message\": \"User deleted successfully\"\n}\n\n</code></pre>\n","urlObject":{"protocol":"http","port":"8888","path":["admin","api.php","admin","users","91e3e8dc-e72e-4303-846f-2540636c0f1e"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"336061ce-dcdc-4ef5-9d76-522afbc82f68"},{"name":"User Register","id":"410cafa0-e593-44bc-87d0-248bb34cb79e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"first_name\": \"Francis\",\n  \"last_name\": \"Laulita\",\n  \"email\": \"francis@example.com\",\n  \"password\": \"Password123\",\n  \"birthdate\": \"1990-01-01\",\n  \"role\": \"0002\" \n}\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:8888/admin/api.php/user/register","description":"<h3 id=\"register-user\">Register User</h3>\n<p>This endpoint allows the admin to register a new user.</p>\n<h4 id=\"request-body\">Request Body</h4>\n<ul>\n<li><p><code>first_name</code> (string) - The first name of the user.</p>\n</li>\n<li><p><code>last_name</code> (string) - The last name of the user.</p>\n</li>\n<li><p><code>email</code> (string) - The email address of the user.</p>\n</li>\n<li><p><code>password</code> (string) - The password for the user account.</p>\n</li>\n<li><p><code>birthdate</code> (string) - The date of birth of the user.</p>\n</li>\n<li><p><code>role</code> (string) - The role of the user. 0001 for Buyer and 0002 for Seller. (e.g., \"0001\" for Buyer role)</p>\n</li>\n</ul>\n<h4 id=\"response-body\">Response Body</h4>\n<p>The response contains the status of the user registration process.</p>\n","urlObject":{"protocol":"http","port":"8888","path":["admin","api.php","user","register"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"410cafa0-e593-44bc-87d0-248bb34cb79e"},{"name":"User Update","id":"36bb61d3-210d-4bc4-af94-74b0c5a790ee","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"first_name\": \"John\",\n    \"last_name\": \"Doe\",\n    \"email\": \"johndoe00@example.com\",\n    \"birthdate\": \"1990-01-01\",\n    \"address\": \"1234 Main St, Cityville\",\n    \"phone_number\": \"555-1234\",\n    \"password\": \"NewSecureP@ssw0rd\"\n}\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:8888/admin/api.php/user","description":"<h3 id=\"update-user-information\">Update User Information</h3>\n<p>This endpoint allows the admin to update user information.</p>\n<h4 id=\"request-body\">Request Body</h4>\n<ul>\n<li><p><code>first_name</code> (string): The first name of the user.</p>\n</li>\n<li><p><code>last_name</code> (string): The last name of the user.</p>\n</li>\n<li><p><code>email</code> (string): The email address of the user.</p>\n</li>\n<li><p><code>birthdate</code> (string): The birthdate of the user.</p>\n</li>\n<li><p><code>address</code> (string): The address of the user.</p>\n</li>\n<li><p><code>phone_number</code> (string): The phone number of the user.</p>\n</li>\n<li><p><code>password</code> (string): The new password for the user.</p>\n</li>\n</ul>\n<h4 id=\"response\">Response</h4>\n<p>The response will contain the updated user information.</p>\n","urlObject":{"protocol":"http","port":"8888","path":["admin","api.php","user"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"36bb61d3-210d-4bc4-af94-74b0c5a790ee"},{"name":"User Login","id":"71ffc620-ec10-415a-ab59-fbd5aac6dce2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"email\": \"noralrussel@example.com\",\n  \"password\": \"NewPass123\"\n}\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:8888/admin/api.php/auth/login","description":"<h3 id=\"login-authentication\">Login Authentication</h3>\n<p>This endpoint allows administrators to authenticate and login to the system.</p>\n<h4 id=\"request-body\">Request Body</h4>\n<ul>\n<li><p><code>email</code> (string): The email address of the administrator.</p>\n</li>\n<li><p><code>password</code> (string): The password for the administrator's account.</p>\n</li>\n</ul>\n<h4 id=\"response\">Response</h4>\n<p>Upon successful authentication, the response will include the authentication token and user details. In case of failed authentication, Error 200 or \" Email or Password does not exist\" message will be returned.</p>\n","urlObject":{"protocol":"http","port":"8888","path":["admin","api.php","auth","login"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"71ffc620-ec10-415a-ab59-fbd5aac6dce2"},{"name":"User Logout","id":"ea713ca0-f872-4097-a13b-d0a015b3e8a4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:8888/admin/api.php/auth/logout","description":"<h3 id=\"logout-user\">Logout User</h3>\n<p>This endpoint is used to log out the currently authenticated user.</p>\n<h4 id=\"request\">Request</h4>\n<ul>\n<li>Session Token is required for this endpoint.</li>\n</ul>\n<h4 id=\"response\">Response</h4>\n<ul>\n<li><p><code>status</code>: (string) Indicates the status of the request. Possible values are \"success\" or \"error\".</p>\n</li>\n<li><p><code>message</code>: (string) A message indicating the result of the logout operation.</p>\n</li>\n</ul>\n","urlObject":{"protocol":"http","port":"8888","path":["admin","api.php","auth","logout"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"ea713ca0-f872-4097-a13b-d0a015b3e8a4"},{"name":"User Request Password Reset","id":"7e524842-0342-4f36-ae07-08dc71a5b37c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"email\": \"noralrussel@example.com\"\n}\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:8888/admin/api.php/user/request-password-reset","description":"<h3 id=\"request-description\">Request Description</h3>\n<p>This endpoint is used to initiate a request for password reset by providing the user's email.</p>\n<ul>\n<li><p>Method: POST</p>\n</li>\n<li><p>URL: <a href=\"http://localhost:8888/admin/api.php/user/request-password-reset\">http://localhost:8888/admin/api.php/user/request-password-reset</a></p>\n</li>\n</ul>\n<h4 id=\"request-body\">Request Body</h4>\n<ul>\n<li>email (text, required): The email address of the user for whom the password reset is requested.</li>\n</ul>\n<h3 id=\"response\">Response</h3>\n<p>The response will include the status of the password reset request or and OTP request message .</p>\n","urlObject":{"protocol":"http","port":"8888","path":["admin","api.php","user","request-password-reset"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"7e524842-0342-4f36-ae07-08dc71a5b37c"},{"name":"User Password Reset","id":"1d4272ac-9966-4646-a33a-4fb468f00fbe","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"otp\": \"879498\",           // The OTP sent to your email\n    \"new_password\": \"NewPass123\"   // The new password you want to set\n}\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:8888/admin/api.php/user/reset-password","description":"<h3 id=\"reset-password\">Reset Password</h3>\n<p>This endpoint is used to reset the password for a user account.</p>\n<h4 id=\"request-body\">Request Body</h4>\n<ul>\n<li><p><code>otp</code> (string, required): The OTP sent to the user's email for verification.</p>\n</li>\n<li><p><code>new_password</code> (string, required): The new password that the user wants to set.</p>\n</li>\n</ul>\n<h4 id=\"response\">Response</h4>\n<p>The response of this request is a JSON object with the following schema:</p>\n<ul>\n<li><p><code>status</code> (string): The status of the password reset operation.</p>\n</li>\n<li><p><code>message</code> (string): A message indicating the result of the password reset operation.</p>\n</li>\n</ul>\n","urlObject":{"protocol":"http","port":"8888","path":["admin","api.php","user","reset-password"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"1d4272ac-9966-4646-a33a-4fb468f00fbe"},{"name":"Get User ID","id":"dd9b7ba8-03e3-4b6d-ab9b-08100fa3d0e7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"body":{"mode":"raw","raw":"{\n    \"otp\": \"\",           // The OTP sent to your email\n    \"new_password\": \"NewPass123\"   // The new password you want to set\n}\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:8888/admin/api.php/user","description":"<p>This endpoint makes an HTTP GET request to retrieve user information from the admin API. The request requires the following parameters in the raw request body:</p>\n<ul>\n<li><p><code>otp</code> (string): The OTP sent to your email.</p>\n</li>\n<li><p><code>new_password</code> (string): The new password you want to set.</p>\n</li>\n</ul>\n<p>The response will include the user information based on the provided OTP and new password.</p>\n","urlObject":{"protocol":"http","port":"8888","path":["admin","api.php","user"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"dd9b7ba8-03e3-4b6d-ab9b-08100fa3d0e7"},{"name":"Get All Users","id":"c9c2a10a-e472-43df-a179-2f02cd586c93","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:8888/admin/api.php/admin/users","description":"<h3 id=\"retrieve-users-information\">Retrieve Users Information</h3>\n<p>This endpoint makes an HTTP GET request to retrieve information about the users from the admin API.</p>\n<h4 id=\"request\">Request</h4>\n<p>The request does not require a request body. It simply makes a GET request to the specified URL.</p>\n<h4 id=\"response\">Response</h4>\n<p>The response will be a JSON object representing the users' information.</p>\n<p>The <code>users</code> property contains an array of user objects, where each user has an <code>id</code>, <code>username</code>, <code>email</code>, and <code>role</code>.</p>\n","urlObject":{"protocol":"http","port":"8888","path":["admin","api.php","admin","users"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"c9c2a10a-e472-43df-a179-2f02cd586c93"},{"name":"Delete User","id":"af31e4c7-0100-4cc5-8dbe-b80db3fdcf11","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"DELETE","header":[],"body":{"mode":"raw","raw":"{\n    \"confirm\": \"true\"\n}\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:8888/admin/api.php/user","description":"<h3 id=\"delete-user\">Delete User</h3>\n<p>This endpoint is used to delete a user from the admin API.</p>\n<h4 id=\"request-body\">Request Body</h4>\n<ul>\n<li>confirm (boolean, required): Set to true to confirm the deletion.</li>\n</ul>\n<h4 id=\"request\">Request</h4>\n<ul>\n<li>Session token is required for this api</li>\n</ul>\n<h4 id=\"response\">Response</h4>\n<p>The response will indicate the success or failure of the user deletion operation.</p>\n","urlObject":{"protocol":"http","port":"8888","path":["admin","api.php","user"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"af31e4c7-0100-4cc5-8dbe-b80db3fdcf11"},{"name":"Seller Add Product","id":"d46b16d6-6093-4104-a82c-891d74807a54","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"product_name\": \"New Product\",\n    \"description\": \"This is a description of the new product\",\n    \"price\": 25.00,\n    \"stock_quantity\": 100,\n    \"category\": \"Electronics\",\n    \"size\": \"M\",\n    \"color\": \"Red\",\n    \"product_image\": \"image_url_here\"\n}\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:8888/admin/api.php/seller/products","urlObject":{"protocol":"http","port":"8888","path":["admin","api.php","seller","products"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"d46b16d6-6093-4104-a82c-891d74807a54"},{"name":"Seller View Products","id":"79a03bae-6e56-4386-94fa-a18f181b91bd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"body":{"mode":"raw","raw":"{\n    \"product_name\": \"New Product\",\n    \"description\": \"This is a description of the new product\",\n    \"price\": 25.00,\n    \"stock_quantity\": 100,\n    \"category\": \"Electronics\",\n    \"size\": \"M\",\n    \"color\": \"Red\",\n    \"product_image\": \"image_url_here\"\n}\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:8888/admin/api.php/seller/products","urlObject":{"protocol":"http","port":"8888","path":["admin","api.php","seller","products"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"79a03bae-6e56-4386-94fa-a18f181b91bd"},{"name":"Seller Update Product","id":"8e6f7f8a-ec16-465c-83be-ed22c066bd57","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"product_name\": \"Updated Product Name\",\n    \"description\": \"Updated description of the product\",\n    \"price\": 30.00,\n    \"stock_quantity\": 50,\n    \"category\": \"Updated Category\",\n    \"size\": \"L\",\n    \"color\": \"Blue\",\n    \"product_image\": \"updated_image_url_here\"\n}\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:8888/admin/api.php/seller/products/1","urlObject":{"protocol":"http","port":"8888","path":["admin","api.php","seller","products","1"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"8e6f7f8a-ec16-465c-83be-ed22c066bd57"},{"name":"Seller Update Product Details","id":"1197723f-df14-4d31-8e06-372d6473e45a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"product_name\": \"Updated Product Name\",\n    \"description\": \"Updated description of the product\",\n    \"price\": 30.00,\n    \"stock_quantity\": 50,\n    \"category\": \"Updated Category\",\n    \"size\": \"L\",\n    \"color\": \"Blue\",\n    \"product_image\": \"updated_image_url_here\"\n}\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:8888/admin/api.php/seller/products/1","urlObject":{"protocol":"http","port":"8888","path":["admin","api.php","seller","products","1"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"1197723f-df14-4d31-8e06-372d6473e45a"},{"name":"(WORK IN PROGRESS) Seller Update Product Images","id":"a838c4ad-ec10-4373-b740-ee95520f5c23","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"multipart/form-data","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"primary_image","type":"file","src":"postman-cloud:///1ef6398d-1a0f-4460-9cab-8be96f6a5b31"},{"key":"addtional_images[]","type":"file","src":"postman-cloud:///1ef6471a-c629-4a80-9855-4b9adeec52a6"},{"key":"addtional_images[]","type":"file","src":"postman-cloud:///1ef6471a-c629-4a80-9855-4b9adeec52a6"}]},"url":"http://localhost:8888/admin/api.php/seller/products/9/images","urlObject":{"protocol":"http","port":"8888","path":["admin","api.php","seller","products","9","images"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"a838c4ad-ec10-4373-b740-ee95520f5c23"},{"name":"Seller Delete Product","id":"cd7d1509-db2d-4aeb-8e46-a5cb9b674f7e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"DELETE","header":[],"body":{"mode":"raw","raw":"{\n    \"product_name\": \"Updated Product Name\",\n    \"description\": \"Updated description of the product\",\n    \"price\": 30.00,\n    \"stock_quantity\": 50,\n    \"category\": \"Updated Category\",\n    \"size\": \"L\",\n    \"color\": \"Blue\",\n    \"product_image\": \"updated_image_url_here\"\n}\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:8888/admin/api.php/seller/products/2","urlObject":{"protocol":"http","port":"8888","path":["admin","api.php","seller","products","2"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"cd7d1509-db2d-4aeb-8e46-a5cb9b674f7e"},{"name":"Display All Products","id":"8742ed3c-766b-45d4-943b-6ce4981f3958","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"urlObject":{"query":[],"variable":[]},"url":""},"response":[],"_postman_id":"8742ed3c-766b-45d4-943b-6ce4981f3958"},{"name":"Display Product","id":"e7b34ae7-b963-40bd-a0c3-61208ba3d429","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"urlObject":{"query":[],"variable":[]},"url":""},"response":[],"_postman_id":"e7b34ae7-b963-40bd-a0c3-61208ba3d429"},{"name":"Display Filtered Products","id":"fd81140a-15f4-4a2a-aa15-ee87948a9e46","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"urlObject":{"query":[],"variable":[]},"url":""},"response":[],"_postman_id":"fd81140a-15f4-4a2a-aa15-ee87948a9e46"},{"name":"Display Products by Seller Name","id":"a1707b9a-30e3-496b-9139-037314b2516a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"urlObject":{"query":[],"variable":[]},"url":""},"response":[],"_postman_id":"a1707b9a-30e3-496b-9139-037314b2516a"},{"name":"Display Products by Seller ID","id":"452d0e39-1345-4898-967a-52f3faba850c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"urlObject":{"query":[],"variable":[]},"url":""},"response":[],"_postman_id":"452d0e39-1345-4898-967a-52f3faba850c"},{"name":"Search Product by Name","id":"8022d334-edeb-48bc-b0e5-a1e6a727cff9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"body":{"mode":"raw","raw":"{\n    \"product_name\": \"Updated Product Name\",\n    \"description\": \"Updated description of the product\",\n    \"price\": 30.00,\n    \"stock_quantity\": 50,\n    \"category\": \"Updated Category\",\n    \"size\": \"L\",\n    \"color\": \"Blue\",\n    \"product_image\": \"updated_image_url_here\"\n}\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:8888/admin/api.php/search?query=shirt","urlObject":{"protocol":"http","port":"8888","path":["admin","api.php","search"],"host":["localhost"],"query":[{"key":"query","value":"shirt"}],"variable":[]}},"response":[],"_postman_id":"8022d334-edeb-48bc-b0e5-a1e6a727cff9"},{"name":"Search Product by Name and Price","id":"7773a43b-9ffc-4e39-88a5-658ab8d5e85a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"body":{"mode":"raw","raw":"{\n    \"product_name\": \"Updated Product Name\",\n    \"description\": \"Updated description of the product\",\n    \"price\": 30.00,\n    \"stock_quantity\": 50,\n    \"category\": \"Updated Category\",\n    \"size\": \"L\",\n    \"color\": \"Blue\",\n    \"product_image\": \"updated_image_url_here\"\n}\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:8888/admin/api.php/search?query=shirt","urlObject":{"protocol":"http","port":"8888","path":["admin","api.php","search"],"host":["localhost"],"query":[{"key":"query","value":"shirt"}],"variable":[]}},"response":[],"_postman_id":"7773a43b-9ffc-4e39-88a5-658ab8d5e85a"},{"name":"Search Product by Name, Category, and Price with sorting order","id":"493a7c77-5e7a-4bec-9ccb-b4650bb47358","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8888/admin/api.php/search?query=shirt&category=Clothing&min_price=10&max_price=30&sort=price_asc","urlObject":{"protocol":"http","port":"8888","path":["admin","api.php","search"],"host":["localhost"],"query":[{"key":"query","value":"shirt"},{"key":"category","value":"Clothing"},{"key":"min_price","value":"10"},{"key":"max_price","value":"30"},{"key":"sort","value":"price_asc"}],"variable":[]}},"response":[],"_postman_id":"493a7c77-5e7a-4bec-9ccb-b4650bb47358"},{"name":"Buyer Add Item to Cart","id":"5e4f37b5-79e3-4a5a-83be-0f60cb0b8602","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"product_id\": \"1\",\n  \"quantity\": 2\n}\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:8888/admin/api.php/buyer/cart/add","urlObject":{"protocol":"http","port":"8888","path":["admin","api.php","buyer","cart","add"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"5e4f37b5-79e3-4a5a-83be-0f60cb0b8602"},{"name":"Buyer View Cart","id":"b2828a28-b293-474d-95f9-0a4e7fcf6c92","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8888/admin/api.php/buyer/cart/view","urlObject":{"protocol":"http","port":"8888","path":["admin","api.php","buyer","cart","view"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"b2828a28-b293-474d-95f9-0a4e7fcf6c92"},{"name":"Buyer Update Cart Item","id":"9bdb45b7-647d-4964-bd12-ee3e20ee261e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n  \"product_id\": 123,\n  \"quantity\": 3\n}\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:8888/admin/api.php/buyer/cart/update","urlObject":{"protocol":"http","port":"8888","path":["admin","api.php","buyer","cart","update"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"9bdb45b7-647d-4964-bd12-ee3e20ee261e"},{"name":"Buyer Remove Cart Item","id":"97f73183-6e91-4a6e-ba85-73a82c1cf462","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"body":{"mode":"raw","raw":"{\n  \"product_id\": 123,\n  \"quantity\": 3\n}\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:8888/admin/api.php/buyer/cart/remove","urlObject":{"protocol":"http","port":"8888","path":["admin","api.php","buyer","cart","remove"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"97f73183-6e91-4a6e-ba85-73a82c1cf462"},{"name":"Buyer Clear Cart","id":"2305ae42-dfa2-47e3-a41f-6fd84622c957","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"body":{"mode":"raw","raw":"{\n  \"product_id\": 123,\n  \"quantity\": 3\n}\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:8888/admin/api.php/buyer/cart/clear","urlObject":{"protocol":"http","port":"8888","path":["admin","api.php","buyer","cart","clear"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"2305ae42-dfa2-47e3-a41f-6fd84622c957"},{"name":"Buyer Checkout","id":"91b4ddaa-92a3-4475-8ddc-09d124ba3767","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"shipping_address\": {\n    \"street\": \"123 Main St\",\n    \"city\": \"New York\",\n    \"state\": \"NY\",\n    \"postal_code\": \"10001\",\n    \"country\": \"USA\"\n  }\n}\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:8888/admin/api.php/buyer/cart/checkout/initiate","urlObject":{"protocol":"http","port":"8888","path":["admin","api.php","buyer","cart","checkout","initiate"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"91b4ddaa-92a3-4475-8ddc-09d124ba3767"},{"name":"Buyer Checkout Payment","id":"99ed972e-7e34-499f-80ec-ee506d089b89","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"checkout_id\": \"checkout_12345\",\n  \"payment_method\": {\n    \"type\": \"credit_card\",\n    \"card_number\": \"4111111111111111\",\n    \"expiry_date\": \"12/25\",\n    \"cvv\": \"123\"\n  }\n}\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:8888/admin/api.php/buyer/cart/checkout/payment","urlObject":{"protocol":"http","port":"8888","path":["admin","api.php","buyer","cart","checkout","payment"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"99ed972e-7e34-499f-80ec-ee506d089b89"},{"name":"Buyer Checkout Review Order","id":"e989fb90-87f6-4b44-84b6-c79fa06fad33","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8888/admin/api.php/buyer/cart/checkout/review/{checkout_id}","urlObject":{"protocol":"http","port":"8888","path":["admin","api.php","buyer","cart","checkout","review","{checkout_id}"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"e989fb90-87f6-4b44-84b6-c79fa06fad33"},{"name":"Buyer Checkout Confirmation","id":"7d6406e1-19eb-42de-a2f9-0a71e534fe98","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"checkout_id\": \"checkout_12345\"\n}\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:8888/admin/api.php/buyer/cart/checkout/confirm","urlObject":{"protocol":"http","port":"8888","path":["admin","api.php","buyer","cart","checkout","confirm"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"7d6406e1-19eb-42de-a2f9-0a71e534fe98"},{"name":"Buyer Cancel Checkout","id":"d0af1c29-99b9-45c8-95ce-adffb2ea07f2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"url":"http://localhost:8888/admin/api.php/buyer/cart/checkout/cancel","urlObject":{"protocol":"http","port":"8888","path":["admin","api.php","buyer","cart","checkout","cancel"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"d0af1c29-99b9-45c8-95ce-adffb2ea07f2"}]}