{"info":{"_postman_id":"3492af02-83a7-43f1-bed3-ac5b22a1fdab","name":"LocalArtisans","description":"<html><head></head><body><p>LocalArtisan - E Commerce</p>\n<p>This documentation outlines the features of the LocalArtisans E-Commerce platform, with a focus on backend and database development.</p>\n<h3 id=\"main-features\">Main Features:</h3>\n<ol>\n<li><p><strong>CRUD Operations</strong>: Allows users and artisans to perform Create, Read, Update, and Delete actions on the platform. Nearly all features support these operations; for example, artisans can create or add their items to the platform, and they can also update or delete them as needed.</p>\n</li>\n<li><p><strong>User Registration</strong>: Allows users to create an account on the platform.</p>\n</li>\n<li><p><strong>User Login</strong>: Authenticates users and generates a JWT token, enabling access to authenticated services.</p>\n</li>\n<li><p><strong>Artisan Registration</strong>: Automatically updates the <code>IsArtisan</code> field in the User table upon successful registration as an artisan.</p>\n</li>\n<li><p><strong>Add Product to Cart</strong>: Adds a product to the user's cart in the database. If the user doesn't have a cart, a new one is created. If the product already exists in the cart, the quantity is updated instead of creating a new entry.</p>\n</li>\n<li><p><strong>Checkout Product</strong>: Enables users to purchase a single product in one order, using the \"Buy Now\" feature.</p>\n</li>\n<li><p><strong>Checkout Products in Cart</strong>: Allows users to checkout multiple products they have added to their cart.</p>\n</li>\n<li><p><strong>Pay Order</strong>: Allow the user to pay for an order they placed earlier. Once the order is paid, the quantity of the product will be decreased according to the user’s request.</p>\n</li>\n<li><p><strong>Cancel Order</strong>: Enable the system to cancel an order if there is a discrepancy between the user and the artisan during the ordering process. The product quantity will be restored to its original amount, and the order will be marked as canceled.</p>\n</li>\n</ol>\n<h3 id=\"note\"><strong>Note:</strong></h3>\n<ul>\n<li><p>Upon login, cookies are generated to enable access to authentication-required services.</p>\n</li>\n<li><p>Services are categorized into two main router groups:</p>\n<ul>\n<li><p><strong>Base Service</strong>: Accessible without needing cookies.</p>\n</li>\n<li><p><strong>Auth Service</strong>: Requires cookies to access.</p>\n</li>\n</ul>\n</li>\n<li><p>The <code>IsArtisan</code> attribute in the user table is automatically updated when a user registers as an artisan, with the boolean value changing accordingly.</p>\n</li>\n</ul>\n<h3 id=\"key-takeaways\">Key Takeaways:</h3>\n<ul>\n<li><p>To ensure security, only authenticated users can access certain services. LocalArtisans uses JWT tokens or cookies for authentication, meaning users must log in to access these services.</p>\n</li>\n<li><p>Checkout Product and Add Product to Cart will only generates if the quantity of product is higher or equal the user request.</p>\n</li>\n<li><p><strong>Security and Privacy</strong>: The use of JWT tokens or cookies for authentication not only secures user data but also helps in maintaining session privacy and integrity across the platform.</p>\n</li>\n</ul>\n<p>For more information, you can test the features yourself in Postman by downloading or cloning the repository from <a href=\"https://github.com/VincentLimarus/E-Commerce-LocalArtisans/\">https://github.com/VincentLimarus/E-Commerce-LocalArtisans/</a> and importing it into Postman.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"33434480","collectionId":"3492af02-83a7-43f1-bed3-ac5b22a1fdab","publishedId":"2sAXjDfGAW","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2024-08-22T19:04:43.000Z"},"item":[{"name":"UserServices","item":[{"name":"GetAllUsersService","id":"8bfd0cbf-4ff7-4360-8213-a0ccee8153cf","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3000/api/v1/users?page=1&limit=10000&order_by=id&order_type=asc","description":"<p>type GetAllUsersRequestDTO struct {</p>\n<p>Page int <code>json:\"page\" form:\"page\" binding:\"omitempty\"</code><br />Limit int <code>json:\"limit\" form:\"limit\" binding:\"omitempty\"</code><br />OrderBy string <code>json:\"order_by\" form:\"order_by\" binding:\"omitempty\"</code><br />OrderType string <code>json:\"order_type\" form:\"order_type\" binding:\"omitempty\"</code><br />}</p>\n","urlObject":{"protocol":"http","port":"3000","path":["api","v1","users"],"host":["localhost"],"query":[{"key":"page","value":"1"},{"key":"limit","value":"10000"},{"key":"order_by","value":"id"},{"key":"order_type","value":"asc"}],"variable":[]}},"response":[{"id":"ffa94375-a096-43d3-8f95-9f48ea202632","name":"Successful Response","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://localhost:3000/api/v1/users?page=1&limit=10&order_by=id&order_type=asc","protocol":"http","host":["localhost"],"port":"3000","path":["api","v1","users"],"query":[{"key":"page","value":"1"},{"key":"limit","value":"10"},{"key":"order_by","value":"id"},{"key":"order_type","value":"asc"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Allow-Headers","value":"Accept, Content-Type, Content-Length, Accept-Encoding, Authorization, X-CSRF-Token, credentials"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, DELETE, PUT, PATCH, OPTIONS, HEAD, TRACE"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:5173"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Wed, 07 Aug 2024 02:56:53 GMT"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"message\": \"Success: Data found\",\n    \"page\": 1,\n    \"limit\": 10,\n    \"order_by\": \"id\",\n    \"order_type\": \"asc\",\n    \"total_data\": 7,\n    \"total_take\": 7,\n    \"total_page\": 1,\n    \"data\": [\n        {\n            \"id\": \"02db4635-ef8d-4df3-b712-0ff59002499e\",\n            \"name\": \"Jonathan Bryan\",\n            \"email\": \"jobry007@gmail.com\",\n            \"phone_number\": \"\",\n            \"address\": \"\",\n            \"is_artisan\": false,\n            \"is_active\": true,\n            \"created_by\": \"system\",\n            \"updated_by\": \"system\",\n            \"created_at\": \"2024-09-03T01:32:02.278899+07:00\",\n            \"updated_at\": \"2024-09-03T01:32:02.278899+07:00\"\n        },\n        {\n            \"id\": \"24563471-77ef-49cc-ba60-699a53ed70cf\",\n            \"name\": \"Vincent Oliver Limarus\",\n            \"email\": \"vincent.limarus@binus.ac.id\",\n            \"phone_number\": \"\",\n            \"address\": \"\",\n            \"is_artisan\": false,\n            \"is_active\": true,\n            \"created_by\": \"system\",\n            \"updated_by\": \"system\",\n            \"created_at\": \"2024-09-03T01:33:25.283449+07:00\",\n            \"updated_at\": \"2024-09-03T01:33:25.283449+07:00\"\n        },\n        {\n            \"id\": \"2fb86478-adb9-4003-98b6-768f9388907a\",\n            \"name\": \"Jason Milano\",\n            \"email\": \"acinnn@gmail.com\",\n            \"phone_number\": \"\",\n            \"address\": \"\",\n            \"is_artisan\": false,\n            \"is_active\": true,\n            \"created_by\": \"system\",\n            \"updated_by\": \"system\",\n            \"created_at\": \"2024-09-03T01:34:11.769228+07:00\",\n            \"updated_at\": \"2024-09-03T01:34:11.769228+07:00\"\n        },\n        {\n            \"id\": \"4d3a7fb7-75a5-4869-aaab-0e67bc35f4fa\",\n            \"name\": \"Valentino Christianto\",\n            \"email\": \"valentino07@gmail.com\",\n            \"phone_number\": \"\",\n            \"address\": \"\",\n            \"is_artisan\": false,\n            \"is_active\": true,\n            \"created_by\": \"system\",\n            \"updated_by\": \"system\",\n            \"created_at\": \"2024-09-03T01:31:09.26465+07:00\",\n            \"updated_at\": \"2024-09-03T01:31:09.26465+07:00\"\n        },\n        {\n            \"id\": \"6fbe9353-d31d-4b60-a681-e10f55e9f57d\",\n            \"name\": \"Rafael Chris\",\n            \"email\": \"rafaelchris22@gmail.com\",\n            \"phone_number\": \"\",\n            \"address\": \"\",\n            \"is_artisan\": false,\n            \"is_active\": true,\n            \"created_by\": \"system\",\n            \"updated_by\": \"system\",\n            \"created_at\": \"2024-09-03T01:31:27.625762+07:00\",\n            \"updated_at\": \"2024-09-03T01:31:27.625762+07:00\"\n        },\n        {\n            \"id\": \"8942786c-391a-406e-bd80-69f3334fb72a\",\n            \"name\": \"Michael Nathanael Londa\",\n            \"email\": \"londa1305@gmail.com\",\n            \"phone_number\": \"\",\n            \"address\": \"\",\n            \"is_artisan\": false,\n            \"is_active\": true,\n            \"created_by\": \"system\",\n            \"updated_by\": \"system\",\n            \"created_at\": \"2024-09-03T01:31:43.951288+07:00\",\n            \"updated_at\": \"2024-09-03T01:31:43.951288+07:00\"\n        },\n        {\n            \"id\": \"ada05a77-6787-41aa-9468-0e6f4a27eddc\",\n            \"name\": \"Timothy Wahyudi Pakpahan\",\n            \"email\": \"mot007@gmail.com\",\n            \"phone_number\": \"\",\n            \"address\": \"\",\n            \"is_artisan\": false,\n            \"is_active\": true,\n            \"created_by\": \"system\",\n            \"updated_by\": \"system\",\n            \"created_at\": \"2024-09-03T01:32:24.691854+07:00\",\n            \"updated_at\": \"2024-09-03T01:32:24.691854+07:00\"\n        }\n    ]\n}"}],"_postman_id":"8bfd0cbf-4ff7-4360-8213-a0ccee8153cf"},{"name":"GetUserService","id":"761ceed6-4e4f-4549-a876-43cbbfeebe6d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3000/api/v1/user/24563471-77ef-49cc-ba60-699a53ed70cf","description":"<p>type GetUserRequestDTO struct {<br />ID string <code>json:\"id\" form:\"id\" binding:\"required\"</code><br />}</p>\n","urlObject":{"protocol":"http","port":"3000","path":["api","v1","user","24563471-77ef-49cc-ba60-699a53ed70cf"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"ee62597a-4769-4007-a6bd-ca7582aae0cb","name":"Successful Response","originalRequest":{"method":"GET","header":[],"url":"http://localhost:3000/api/v1/user/061f3224-e3d0-4969-82f4-e62455f2a57e"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Allow-Headers","value":"Accept, Content-Type, Content-Length, Accept-Encoding, Authorization, X-CSRF-Token, credentials"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, DELETE, PUT, PATCH, OPTIONS, HEAD, TRACE"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:5173"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Wed, 07 Aug 2024 02:54:53 GMT"},{"key":"Content-Length","value":"349"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"message\": \"Success: Data found\",\n    \"data\": {\n        \"id\": \"24563471-77ef-49cc-ba60-699a53ed70cf\",\n        \"name\": \"Vincent Oliver Limarus\",\n        \"email\": \"vincent.limarus@binus.ac.id\",\n        \"phone_number\": \"\",\n        \"address\": \"\",\n        \"is_artisan\": false,\n        \"is_active\": true,\n        \"created_by\": \"system\",\n        \"updated_by\": \"system\",\n        \"created_at\": \"2024-09-03T01:33:25.283449+07:00\",\n        \"updated_at\": \"2024-09-03T01:33:25.283449+07:00\"\n    }\n}"},{"id":"3ac67580-bc79-4262-9944-8a54c288e84f","name":"Error Response","originalRequest":{"method":"GET","header":[],"url":"http://localhost:3000/api/v1/user/4e542b4c-1785-4361-811d-3b8d90c6cbd2"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 500,\n    \"message\": \"Internal Server Error: record not found\"\n}"}],"_postman_id":"761ceed6-4e4f-4549-a876-43cbbfeebe6d"},{"name":"RegisterUserService","id":"8d3a6242-8bde-4e98-9754-bde3bc11e7ab","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"Vincent Oliver Limarus\",\r\n    \"email\": \"vincent.limarus@binus.ac.id\",\r\n    \"address\": \"\",\r\n    \"phone_number\": \"\",\r\n    \"password\": \"sennn1305\",\r\n    \"confirm_password\": \"sennn1305\",\r\n    \"is_active\": true,\r\n    \"created_by\": \"\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/v1/user/register","description":"<p>type RegisterUserRequestDTO struct {\n    Name            string <code>json:\"name\" form:\"name\" binding:\"required\"</code>\n    Email           string <code>json:\"email\" form:\"email\" binding:\"required\"</code>\n    Password        string <code>json:\"password\" form:\"password\" binding:\"required\"</code>\n    ConfirmPassword string <code>json:\"confirm_password\" form:\"confirm_password\" binding:\"required\"</code>\n    IsActive        bool   <code>json:\"is_active\" form:\"is_active\" binding:\"required\"</code>\n    CreatedBy       string <code>json:\"created_by\" form:\"created_by\" binding:\"omitempty\"</code>\n}</p>\n","urlObject":{"protocol":"http","port":"3000","path":["api","v1","user","register"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"bacb0568-2be2-4f80-96c7-5cbb1047fa79","name":"Successful Response","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"Admin11\",\r\n    \"email\": \"admin11@localArtisan.com\",\r\n    \"password\": \"localArtisans\",\r\n    \"confirm_password\": \"localArtisans\",\r\n    \"is_active\": true,\r\n    \"created_by\": \"\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/v1/user/register"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Allow-Headers","value":"Accept, Content-Type, Content-Length, Accept-Encoding, Authorization, X-CSRF-Token, credentials"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, DELETE, PUT, PATCH, OPTIONS, HEAD, TRACE"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:5173"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Fri, 09 Aug 2024 16:35:54 GMT"},{"key":"Content-Length","value":"664"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"message\": \"Success: User registered\",\n    \"data\": {\n        \"id\": \"bfdf1819-7bdc-493c-a843-19f63bdc8e57\",\n        \"name\": \"Vincent Oliver Limarus\",\n        \"email\": \"vincent.limarus@binus.ac.id\",\n        \"phone_number\": \"\",\n        \"address\": \"\",\n        \"is_artisan\": false,\n        \"is_active\": true,\n        \"created_by\": \"system\",\n        \"updated_by\": \"system\",\n        \"created_at\": \"2024-09-03T01:44:06.116122+07:00\",\n        \"updated_at\": \"2024-09-03T01:44:06.116122+07:00\"\n    }\n}"},{"id":"c2a506b5-7902-4498-97fd-55ed40f0d4e5","name":"Error Response","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"Vincent Oliver Limarus\",\r\n    \"email\": \"vincentlimarus27@gmail.com\",\r\n    \"password\": \"vincent27\",\r\n    \"confirm_password\": \"vincent27\",\r\n    \"is_active\": true,\r\n    \"created_by\": \"\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/v1/user/register"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"code\": 400,\n        \"message\": \"Bad Request: Password and Confirm Password must be same\"\n    },\n    {\n        \"code\": 400,\n        \"message\": \"Bad Request: Key: 'RegisterUserRequestDTO.Email' Error:Field validation for 'Email' failed on the 'required' tag\"\n    }\n]\n"}],"_postman_id":"8d3a6242-8bde-4e98-9754-bde3bc11e7ab"},{"name":"LoginUserService","id":"617dbe96-2a55-4e39-9468-3649c3a33d36","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"vincent.limarus@binus.ac.id\",\r\n    \"password\": \"sennn1305\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/v1/user/login","description":"<p>type LoginUserRequestDTO struct {\n    Email    string <code>json:\"email\" form:\"email\" binding:\"required\"</code>\n    Password string <code>json:\"password\" form:\"password\" binding:\"required\"</code>\n}</p>\n","urlObject":{"protocol":"http","port":"3000","path":["api","v1","user","login"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"461fead3-58d3-4baa-ab71-b31fc433627f","name":"Successful Response","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"admin10@localArtisan.com\",\r\n    \"password\": \"localArtisans\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/v1/user/login"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Allow-Headers","value":"Accept, Content-Type, Content-Length, Accept-Encoding, Authorization, X-CSRF-Token, credentials"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, DELETE, PUT, PATCH, OPTIONS, HEAD, TRACE"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:5173"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Set-Cookie","value":"Authorization=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE3MjMwNDI4NjYsInN1YiI6Ijc5ZjZiZTI2LWFjYWUtNDBmZi04OGFkLTgyODdlMzJiNTM2MiJ9.-SN54ixiUuQsSuhOiiHtpPFxIphrK0fxSscNN-TkF3g; Path=/; Domain=localhost; Max-Age=43200; HttpOnly; Secure"},{"key":"Date","value":"Wed, 07 Aug 2024 03:01:06 GMT"},{"key":"Content-Length","value":"341"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"message\": \"Success: User logged in\",\n    \"data\": {\n        \"id\": \"24563471-77ef-49cc-ba60-699a53ed70cf\",\n        \"name\": \"Vincent Oliver Limarus\",\n        \"email\": \"vincent.limarus@binus.ac.id\",\n        \"phone_number\": \"\",\n        \"address\": \"\",\n        \"is_artisan\": false,\n        \"is_active\": true,\n        \"created_by\": \"system\",\n        \"updated_by\": \"system\",\n        \"created_at\": \"2024-09-03T01:33:25.283449+07:00\",\n        \"updated_at\": \"2024-09-03T01:33:25.283449+07:00\"\n    }\n}"},{"id":"2ed73912-20f7-4746-a28a-bcb071e1a325","name":"Error Response","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"vincentlimarus27@gmail.com\",\r\n    \"password\": \"vincent27\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/v1/user/login"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"code\": 500,\n        \"message\": \"Internal Server Error: record not found\"\n    },\n\n    {\n        \"code\": 400,\n        \"message\": \"Bad Request: Password or Email is incorrect\"\n    }\n]"}],"_postman_id":"617dbe96-2a55-4e39-9468-3649c3a33d36"},{"name":"UpdateUserService","id":"62c6f92c-06cb-49c7-a5bb-8b865c719732","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"id\": \"d5e34629-99e0-40ac-8113-89a82316f63d\",\r\n    \"name\": \"\",\r\n    \"email\": \"\",\r\n    \"phone_number\": \"0895401360072\",\r\n    \"address\": \"Jl Ancol Selatan 2\",\r\n    \"is_active\": true,\r\n    \"updated_by\": \"\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/v1/user/update","description":"<p>type UpdateUserRequestDTO struct {\n    ID          string <code>json:\"id\" form:\"id\" binding:\"required\"</code>\n    Name        string <code>json:\"name\" form:\"name\" binding:\"omitempty\"</code>\n    Email       string <code>json:\"email\" form:\"email\" binding:\"omitempty\"</code>\n    PhoneNumber string <code>json:\"phone_number\" form:\"phone_number\" binding:\"omitempty\"</code>\n    Address     string <code>json:\"address\" form:\"address\" binding:\"omitempty\"</code>\n    IsActive    bool   <code>json:\"is_active\" form:\"is_active\" binding:\"omitempty\"</code>\n    UpdatedBy   string <code>json:\"updated_by\" form:\"updated_by\" binding:\"omitempty\"</code>\n}</p>\n","urlObject":{"protocol":"http","port":"3000","path":["api","v1","user","update"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"36dbb355-4e5e-4fae-987d-182f1f157511","name":"Successful Response","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"id\": \"271c24f4-ced9-4912-b35d-41ad3ac00fd1\",\r\n    \"name\": \"Vincent\",\r\n    \"email\": \"\",\r\n    \"phone_number\": \"\",\r\n    \"address\": \"\",\r\n    \"is_active\": true,\r\n    \"updated_by\": \"\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/v1/user/update"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Allow-Headers","value":"Accept, Content-Type, Content-Length, Accept-Encoding, Authorization, X-CSRF-Token, credentials"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, DELETE, PUT, PATCH, OPTIONS, HEAD, TRACE"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:5173"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Wed, 07 Aug 2024 03:02:26 GMT"},{"key":"Content-Length","value":"365"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"message\": \"Success: User updated\",\n    \"data\": {\n        \"id\": \"bfdf1819-7bdc-493c-a843-19f63bdc8e57\",\n        \"name\": \"Vincent Oliver Limarus\",\n        \"email\": \"vincent.limarus@binus.ac.id\",\n        \"phone_number\": \"0895401360072\",\n        \"address\": \"Jl Ancol Selatan 2\",\n        \"is_artisan\": false,\n        \"is_active\": true,\n        \"created_by\": \"system\",\n        \"updated_by\": \"User\",\n        \"created_at\": \"2024-09-03T01:44:06.116122+07:00\",\n        \"updated_at\": \"2024-09-03T01:44:27.3323836+07:00\"\n    }\n}"},{"id":"4fb9ff40-c1f8-43b2-8f45-0849cf8c2394","name":"Error Response","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"id\": \"76c1dd75-247e-4b3c-9457-8cf0c6bf99ef\",\r\n    \"name\": \"\",\r\n    \"email\": \"\",\r\n    \"phone_number\": \"\",\r\n    \"address\": \"Jl Ancol Selatan 2 no 2\",\r\n    \"is_active\": true,\r\n    \"updated_by\": \"\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/v1/user/update"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"code\": 401,\n        \"message\": \"Unauthorized token is expired or invalid\"\n    },\n    {\n        \"code\": 500,\n        \"message\": \"Internal Server Error: record not found\"\n    }\n]"}],"_postman_id":"62c6f92c-06cb-49c7-a5bb-8b865c719732"},{"name":"DeleteUserService","id":"c0453799-6f2e-4268-b539-2abf10ab364e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"id\": \"bfdf1819-7bdc-493c-a843-19f63bdc8e57\",\r\n    \"password\": \"sennn1305\",\r\n    \"confirm_password\": \"sennn1305\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/v1/user/delete","description":"<p>type DeleteUserRequestDTO struct {\n    ID              string <code>json:\"id\" form:\"id\" binding:\"required\"</code>\n    Password        string <code>json:\"password\" form:\"password\" binding:\"required\"</code>\n    ConfirmPassword string <code>json:\"confirm_password\" form:\"confirm_password\" binding:\"required\"</code>\n}</p>\n","urlObject":{"protocol":"http","port":"3000","path":["api","v1","user","delete"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"0d42adc5-f3e8-4e1c-a515-6010e95a93f8","name":"Successful Response","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"id\": \"24563471-77ef-49cc-ba60-699a53ed70cf\",\r\n    \"password\": \"sennn1305\",\r\n    \"confirm_password\": \"sennn1305\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/v1/user/delete"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Allow-Headers","value":"Accept, Content-Type, Content-Length, Accept-Encoding, Authorization, X-CSRF-Token, credentials"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, DELETE, PUT, PATCH, OPTIONS, HEAD, TRACE"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:5173"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Wed, 07 Aug 2024 03:03:16 GMT"},{"key":"Content-Length","value":"336"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"message\": \"Success: User deleted\",\n    \"data\": {\n        \"id\": \"bfdf1819-7bdc-493c-a843-19f63bdc8e57\",\n        \"name\": \"Vincent Oliver Limarus\",\n        \"email\": \"vincent.limarus@binus.ac.id\",\n        \"phone_number\": \"0895401360072\",\n        \"address\": \"Jl Ancol Selatan 2\",\n        \"is_artisan\": false,\n        \"is_active\": true,\n        \"created_by\": \"system\",\n        \"updated_by\": \"User\",\n        \"created_at\": \"2024-09-03T01:44:06.116122+07:00\",\n        \"updated_at\": \"2024-09-03T01:44:27.332383+07:00\"\n    }\n}"},{"id":"27a8c96d-c88b-47e5-8745-c30708d80817","name":"Error Response","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"id\": \"3fe6d966-77ef-46b6-af27-62ff553b1d34\",\r\n    \"password\": \"vincent27\",\r\n    \"confirm_password\": \"vincent27\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/v1/user/delete"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"[\r\n    {\r\n        \"code\": 500,\r\n        \"message\": \"Internal Server Error: record not found\"\r\n    },\r\n    {\r\n        \"code\": 401,\r\n        \"message\": \"Unauthorized token is expired or invalid\"\r\n    }\r\n]"}],"_postman_id":"c0453799-6f2e-4268-b539-2abf10ab364e"},{"name":"ChangePasswordService","id":"e2b1f57f-61e4-4d7b-90cd-3b713821bad4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"id\": \"d5e34629-99e0-40ac-8113-89a82316f63d\",\r\n    \"old_password\": \"sennn1305\",\r\n    \"new_password\": \"sennn1305\",\r\n    \"confirm_password\": \"sennn1305\",\r\n    \"updated_by\": \"\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/v1/user/change-password","description":"<p>type ChangePasswordRequestDTO struct {\n    ID              string <code>json:\"id\" form:\"id\" binding:\"required\"</code>\n    OldPassword     string <code>json:\"old_password\" form:\"old_password\" binding:\"required\"</code>\n    NewPassword     string <code>json:\"new_password\" form:\"new_password\" binding:\"required\"</code>\n    ConfirmPassword string <code>json:\"confirm_password\" form:\"confirm_password\" binding:\"required\"</code>\n    UpdatedBy       string <code>json:\"updated_by\" form:\"updated_by\" binding:\"omitempty\"</code>\n}</p>\n","urlObject":{"protocol":"http","port":"3000","path":["api","v1","user","change-password"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"13938075-4a1b-4251-a6ac-3c39813ec52b","name":"Successful Response","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"id\": \"79f6be26-acae-40ff-88ad-8287e32b5362\",\r\n    \"old_password\": \"localArtisans\",\r\n    \"new_password\": \"localArtisan\",\r\n    \"confirm_password\": \"localArtisan\",\r\n    \"updated_by\": \"\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/v1/user/change-password"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Allow-Headers","value":"Accept, Content-Type, Content-Length, Accept-Encoding, Authorization, X-CSRF-Token, credentials"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, DELETE, PUT, PATCH, OPTIONS, HEAD, TRACE"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:5173"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Wed, 07 Aug 2024 03:04:16 GMT"},{"key":"Content-Length","value":"50"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"message\": \"Success: Password changed\"\n}"},{"id":"4e0b5d01-b338-4148-87fb-02ec78ea27a0","name":"Error Response","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"id\": \"74212e3f-4197-4002-b8df-9cba66134f00\",\r\n    \"old_password\": \"vincent27\",\r\n    \"new_password\": \"localArtisan\",\r\n    \"confirm_password\": \"localArtisan\",\r\n    \"updated_by\": \"\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/v1/user/change-password"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"code\": 500,\n        \"message\": \"Internal Server Error: record not found\"\n    },\n\n    {\n        \"code\": 401,\n        \"message\": \"Unauthorized token is expired or invalid\"\n    },\n   \n    {\n        \"code\": 400,\n        \"message\": \"Bad Request: Old Password is incorrect\"\n    },\n    \n    {\n        \"code\": 400,\n        \"message\": \"Bad Request: New Password and Confirm Password must be same\"\n    }\n]"}],"_postman_id":"e2b1f57f-61e4-4d7b-90cd-3b713821bad4"}],"id":"69f82c57-70b8-4d56-bf62-6b2c77ec603e","description":"<p>User Services are divided into 7 main services.</p>\n<ol>\n<li><p><strong>GetAllUsersService</strong>:</p>\n<ol>\n<li><p><strong>Functionality</strong>: Retrieves a list of all users registered in the database.</p>\n</li>\n<li><p><strong>Implementation</strong>: Utilizes GORM queries to fetch user data, with support for pagination to manage large datasets effectively.</p>\n</li>\n</ol>\n</li>\n<li><p><strong>GetUserService</strong>:</p>\n<ol>\n<li><p><strong>Functionality</strong>: Fetches details of a specific user based on their UserID.</p>\n</li>\n<li><p><strong>Implementation</strong>: Uses GORM queries to locate and return user data from the database, ensuring the correct user information is retrieved.</p>\n</li>\n</ol>\n</li>\n<li><p><strong>RegisterUserService</strong>:</p>\n<ol>\n<li><p><strong>Functionality</strong>: Handles the registration of new users.</p>\n</li>\n<li><p><strong>Implementation</strong>: Adds a new user to the database, ensuring all required information is provided and stored correctly.</p>\n</li>\n</ol>\n</li>\n<li><p><strong>LoginUserService</strong>:</p>\n<ol>\n<li><p><strong>Functionality</strong>: Authenticates a user and initiates a session.</p>\n</li>\n<li><p><strong>Implementation</strong>: Validates user credentials, generates cookies or JWT tokens, and enables access to authenticated services.</p>\n</li>\n</ol>\n</li>\n<li><p><strong>UpdateUserService</strong>:</p>\n<ol>\n<li><p><strong>Functionality</strong>: Updates the information of an existing user.</p>\n</li>\n<li><p><strong>Implementation</strong>: Allows users to modify their details, such as name, email, or address, and stores the updated information in the database.</p>\n</li>\n</ol>\n</li>\n<li><p><strong>DeleteUserService</strong>:</p>\n<ol>\n<li><p><strong>Functionality</strong>: Removes a user from the database.</p>\n</li>\n<li><p><strong>Implementation</strong>: Deletes the user's record, ensuring that their data is no longer accessible within the system.</p>\n</li>\n</ol>\n</li>\n<li><p><strong>ChangePasswordService</strong>:</p>\n<ol>\n<li><p><strong>Functionality</strong>: Allows users to update their password.</p>\n</li>\n<li><p><strong>Implementation</strong>: Verifies the user's current password, then securely updates it to a new one in the database.</p>\n</li>\n</ol>\n</li>\n</ol>\n","_postman_id":"69f82c57-70b8-4d56-bf62-6b2c77ec603e"},{"name":"ArtisansService","item":[{"name":"GetAllArtisansService","id":"be3a32d0-b205-4b6b-8191-a562b41393be","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3000/api/v1/artisans?page=1&limit=10&order_by=id&order_type=asc","urlObject":{"protocol":"http","port":"3000","path":["api","v1","artisans"],"host":["localhost"],"query":[{"key":"page","value":"1"},{"key":"limit","value":"10"},{"key":"order_by","value":"id"},{"key":"order_type","value":"asc"}],"variable":[]}},"response":[{"id":"eb857c60-d785-4557-ae4c-c512d7b09806","name":"Successful Response","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://localhost:3000/api/v1/artisans?page=1&limit=10&order_by=id&order_type=asc","protocol":"http","host":["localhost"],"port":"3000","path":["api","v1","artisans"],"query":[{"key":"page","value":"1"},{"key":"limit","value":"10"},{"key":"order_by","value":"id"},{"key":"order_type","value":"asc"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Allow-Headers","value":"Accept, Content-Type, Content-Length, Accept-Encoding, Authorization, X-CSRF-Token, credentials"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, DELETE, PUT, PATCH, OPTIONS, HEAD, TRACE"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:5173"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Wed, 07 Aug 2024 03:04:58 GMT"},{"key":"Content-Length","value":"776"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"message\": \"Success: Artisans Found\",\n    \"page\": 1,\n    \"limit\": 10,\n    \"order_by\": \"id\",\n    \"order_type\": \"asc\",\n    \"total_data\": 7,\n    \"total_take\": 7,\n    \"total_page\": 1,\n    \"data\": [\n        {\n            \"id\": \"1e2bd68b-d9b6-48bb-a1b0-90f93889a0e1\",\n            \"user_id\": \"4d3a7fb7-75a5-4869-aaab-0e67bc35f4fa\",\n            \"shop_name\": \"Borneo Creations\",\n            \"shop_address\": \"Jl. Ahmad Yani No. 3, Pontianak\",\n            \"description\": \"Explore the wild beauty of Borneo through our collection of handcrafted goods.\",\n            \"shop_banner\": \"\",\n            \"rating\": 0,\n            \"is_active\": true,\n            \"created_by\": \"system\",\n            \"updated_by\": \"user\",\n            \"created_at\": \"2024-09-03T01:51:10.511656+07:00\",\n            \"updated_at\": \"2024-09-03T01:55:05.231693+07:00\",\n            \"products\": []\n        },\n        {\n            \"id\": \"413fb142-20fb-4295-8821-44a653348e65\",\n            \"user_id\": \"ada05a77-6787-41aa-9468-0e6f4a27eddc\",\n            \"shop_name\": \"Nusantara Treasures\",\n            \"shop_address\": \"Jl. Sultan Agung No. 15, Bandung\",\n            \"description\": \"Explore the rich heritage of Indonesia with our curated collection of handcrafted jewelry and home decor.\",\n            \"shop_banner\": \"\",\n            \"rating\": 0,\n            \"is_active\": true,\n            \"created_by\": \"system\",\n            \"updated_by\": \"system\",\n            \"created_at\": \"2024-09-03T01:50:22.387376+07:00\",\n            \"updated_at\": \"2024-09-03T01:50:22.387376+07:00\",\n            \"products\": []\n        },\n        {\n            \"id\": \"576bc779-41e7-4fe9-8272-b6efb222e27b\",\n            \"user_id\": \"8942786c-391a-406e-bd80-69f3334fb72a\",\n            \"shop_name\": \"IndoArtisan\",\n            \"shop_address\": \"Jl. Sudirman No. 22, Jakarta\",\n            \"description\": \"Discover the beauty of Indonesian craftsmanship with our exclusive range of handmade products.\",\n            \"shop_banner\": \"\",\n            \"rating\": 0,\n            \"is_active\": true,\n            \"created_by\": \"system\",\n            \"updated_by\": \"system\",\n            \"created_at\": \"2024-09-03T01:50:36.976928+07:00\",\n            \"updated_at\": \"2024-09-03T01:50:36.976928+07:00\",\n            \"products\": []\n        },\n        {\n            \"id\": \"64652f57-e0be-42a3-b5c6-87c26e402626\",\n            \"user_id\": \"02db4635-ef8d-4df3-b712-0ff59002499e\",\n            \"shop_name\": \"Lombok Artisans\",\n            \"shop_address\": \"Jl. Raya Senggigi No. 7, Lombok\",\n            \"description\": \"Handmade treasures from the artisans of Lombok, showcasing the island's unique culture.\",\n            \"shop_banner\": \"\",\n            \"rating\": 0,\n            \"is_active\": true,\n            \"created_by\": \"system\",\n            \"updated_by\": \"system\",\n            \"created_at\": \"2024-09-03T01:51:39.395165+07:00\",\n            \"updated_at\": \"2024-09-03T01:51:39.395165+07:00\",\n            \"products\": []\n        },\n        {\n            \"id\": \"91ed1198-6103-41b2-bed6-a707634b5a45\",\n            \"user_id\": \"d5e34629-99e0-40ac-8113-89a82316f63d\",\n            \"shop_name\": \"Bumi Craft\",\n            \"shop_address\": \"Jl. Merdeka No. 10, Yogyakarta\",\n            \"description\": \"Selling authentic Indonesian handicrafts and textiles crafted by local artisans.\",\n            \"shop_banner\": \"\",\n            \"rating\": 0,\n            \"is_active\": true,\n            \"created_by\": \"system\",\n            \"updated_by\": \"system\",\n            \"created_at\": \"2024-09-03T01:57:26.908546+07:00\",\n            \"updated_at\": \"2024-09-03T01:57:26.908546+07:00\",\n            \"products\": []\n        },\n        {\n            \"id\": \"d2d60e32-3798-4755-802b-6dff742dc694\",\n            \"user_id\": \"6fbe9353-d31d-4b60-a681-e10f55e9f57d\",\n            \"shop_name\": \"Tropical Craft\",\n            \"shop_address\": \"Jl. Dewi Sartika No. 9, Bali\",\n            \"description\": \"Experience the tropical charm of Indonesia with our unique artisan crafts and textiles.\",\n            \"shop_banner\": \"\",\n            \"rating\": 0,\n            \"is_active\": true,\n            \"created_by\": \"system\",\n            \"updated_by\": \"system\",\n            \"created_at\": \"2024-09-03T01:50:57.535305+07:00\",\n            \"updated_at\": \"2024-09-03T01:50:57.535305+07:00\",\n            \"products\": []\n        },\n        {\n            \"id\": \"d95e5f2e-704b-4554-9620-533eb824d0be\",\n            \"user_id\": \"2fb86478-adb9-4003-98b6-768f9388907a\",\n            \"shop_name\": \"Batik Bliss\",\n            \"shop_address\": \"Jl. Malioboro No. 30, Yogyakarta\",\n            \"description\": \"Specializing in traditional batik textiles, crafted with passion and precision.\",\n            \"shop_banner\": \"\",\n            \"rating\": 0,\n            \"is_active\": true,\n            \"created_by\": \"system\",\n            \"updated_by\": \"system\",\n            \"created_at\": \"2024-09-03T01:51:25.542639+07:00\",\n            \"updated_at\": \"2024-09-03T01:51:25.542639+07:00\",\n            \"products\": []\n        }\n    ]\n}"}],"_postman_id":"be3a32d0-b205-4b6b-8191-a562b41393be"},{"name":"GetArtisanService","id":"02475a7e-9ba7-4f05-9e92-11aeb4bd434a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/v1/artisan/1e2bd68b-d9b6-48bb-a1b0-90f93889a0e1","urlObject":{"protocol":"http","port":"3000","path":["api","v1","artisan","1e2bd68b-d9b6-48bb-a1b0-90f93889a0e1"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"95397db2-9a55-403a-88a3-19e8177063c9","name":"Successful Response","originalRequest":{"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/v1/artisan/13432655-d3f6-4bcf-87e4-601e6b7418b2"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Allow-Headers","value":"Accept, Content-Type, Content-Length, Accept-Encoding, Authorization, X-CSRF-Token, credentials"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, DELETE, PUT, PATCH, OPTIONS, HEAD, TRACE"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:5173"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Wed, 07 Aug 2024 03:05:31 GMT"},{"key":"Content-Length","value":"751"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"message\": \"Success: Artisan Found\",\n    \"data\": {\n        \"id\": \"1e2bd68b-d9b6-48bb-a1b0-90f93889a0e1\",\n        \"user_id\": \"4d3a7fb7-75a5-4869-aaab-0e67bc35f4fa\",\n        \"shop_name\": \"Java Heritage\",\n        \"shop_address\": \"Jl. Pahlawan No. 5, Surabaya\",\n        \"description\": \"Preserving the rich cultural heritage of Java through exquisite handmade products.\",\n        \"shop_banner\": \"\",\n        \"rating\": 0,\n        \"is_active\": true,\n        \"created_by\": \"system\",\n        \"updated_by\": \"system\",\n        \"created_at\": \"2024-09-03T01:51:10.511656+07:00\",\n        \"updated_at\": \"2024-09-03T01:51:10.511656+07:00\",\n        \"products\": []\n    }\n}"},{"id":"5566d31f-836f-4a53-939d-3a598f64af5c","name":"Error Response","originalRequest":{"method":"GET","header":[],"url":"http://localhost:3000/api/v1/user/4e542b4c-1785-4361-811d-3b8d90c6cbd2"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"code\": 500,\n        \"message\": \"Internal Server Error: record not found\"\n    },\n    {\n        \"code\": 500,\n        \"message\": \"Internal Server Error {Error GetArtisanByArtisanID}: record not found\"\n    }\n]"}],"_postman_id":"02475a7e-9ba7-4f05-9e92-11aeb4bd434a"},{"name":"RegisterArtisanService","id":"95fe485d-a82f-4318-b979-b0666cba79ff","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"user_id\": \"d5e34629-99e0-40ac-8113-89a82316f63d\",\r\n    \"shop_name\": \"Bumi Craft\",\r\n    \"shop_address\": \"Jl. Merdeka No. 10, Yogyakarta\",\r\n    \"description\": \"Selling authentic Indonesian handicrafts and textiles crafted by local artisans.\",\r\n    \"shop_banner\": \"\",\r\n    \"is_active\": true,\r\n    \"created_by\": \"\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/v1/artisan/register","urlObject":{"protocol":"http","port":"3000","path":["api","v1","artisan","register"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"175b5269-5f59-41a9-a1d7-a92b9d854e45","name":"Successful Response","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"user_id\": \"79f6be26-acae-40ff-88ad-8287e32b5362\",\r\n    \"shop_name\": \"Sunib27\",\r\n    \"shop_address\": \"Binus Anggrek\",\r\n    \"description\": \"\",\r\n    \"shop_banner\": \"\",\r\n    \"is_active\": true,\r\n    \"created_by\": \"\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/v1/artisan/register"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Allow-Headers","value":"Accept, Content-Type, Content-Length, Accept-Encoding, Authorization, X-CSRF-Token, credentials"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, DELETE, PUT, PATCH, OPTIONS, HEAD, TRACE"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:5173"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Wed, 07 Aug 2024 03:08:18 GMT"},{"key":"Content-Length","value":"702"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"message\": \"Success: Artisan Registered\",\n    \"data\": {\n        \"id\": \"877633d9-8517-40f7-9b64-e61c121ed6c6\",\n        \"user_id\": \"d5e34629-99e0-40ac-8113-89a82316f63d\",\n        \"shop_name\": \"Bumi Craft\",\n        \"shop_address\": \"Jl. Merdeka No. 10, Yogyakarta\",\n        \"description\": \"Selling authentic Indonesian handicrafts and textiles crafted by local artisans.\",\n        \"shop_banner\": \"\",\n        \"rating\": 0,\n        \"is_active\": true,\n        \"created_by\": \"system\",\n        \"updated_by\": \"system\",\n        \"created_at\": \"2024-09-03T01:50:02.751261+07:00\",\n        \"updated_at\": \"2024-09-03T01:50:02.751261+07:00\",\n        \"products\": null\n    }\n}"},{"id":"eab6673a-3326-4b75-917f-8e7b05ea4196","name":"Error Response","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"Vincent Oliver Limarus\",\r\n    \"email\": \"vincentlimarus27@gmail.com\",\r\n    \"password\": \"vincent27\",\r\n    \"confirm_password\": \"vincent27\",\r\n    \"is_active\": true,\r\n    \"created_by\": \"\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/v1/user/register"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"code\": 500,\n        \"message\": \"Internal Server Error: record not found\"\n    },\n    \n    {\n        \"code\": 401,\n        \"message\": \"Unauthorized token is expired or invalid\"\n    },\n\n    {\n        \"code\": 400,\n        \"message\": \"Bad Request: User already registered as artisan (1 User can only be 1 Artisan)\"\n    }\n]"}],"_postman_id":"95fe485d-a82f-4318-b979-b0666cba79ff"},{"name":"UpdateArtisanService","id":"f8b4c949-1743-4227-8148-8dd78911a4fe","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"id\": \"1e2bd68b-d9b6-48bb-a1b0-90f93889a0e1\",\r\n    \"shop_name\": \"Borneo Creations\",\r\n    \"shop_address\": \"Jl. Ahmad Yani No. 3, Pontianak\",\r\n    \"description\": \"Explore the wild beauty of Borneo through our collection of handcrafted goods.\",\r\n    \"shop_banner\": \"\",\r\n    \"is_active\": true,\r\n    \"created_by\": \"\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/v1/artisan/update","urlObject":{"protocol":"http","port":"3000","path":["api","v1","artisan","update"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"0c3fa196-72e5-4c26-9128-bf08eb4eb01e","name":"Successful Response","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"id\": \"64b17b84-f8d4-4528-bf65-e91c4e4ed605\",\r\n    \"user_id\": \"79f6be26-acae-40ff-88ad-8287e32b5362\",\r\n    \"shop_name\": \"Sunib27\",\r\n    \"shop_address\": \"Binus Anggrek\",\r\n    \"description\": \"TestAPIUpdate123\",\r\n    \"shop_banner\": \"TestAPIUpdate123\",\r\n    \"is_active\": true,\r\n    \"created_by\": \"\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/v1/artisan/update"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Allow-Headers","value":"Accept, Content-Type, Content-Length, Accept-Encoding, Authorization, X-CSRF-Token, credentials"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, DELETE, PUT, PATCH, OPTIONS, HEAD, TRACE"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:5173"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Wed, 07 Aug 2024 03:09:20 GMT"},{"key":"Content-Length","value":"727"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"message\": \"Success: Artisan Updated\",\n    \"data\": {\n        \"id\": \"1e2bd68b-d9b6-48bb-a1b0-90f93889a0e1\",\n        \"user_id\": \"4d3a7fb7-75a5-4869-aaab-0e67bc35f4fa\",\n        \"shop_name\": \"Borneo Creations\",\n        \"shop_address\": \"Jl. Ahmad Yani No. 3, Pontianak\",\n        \"description\": \"Explore the wild beauty of Borneo through our collection of handcrafted goods.\",\n        \"shop_banner\": \"\",\n        \"rating\": 0,\n        \"is_active\": true,\n        \"created_by\": \"system\",\n        \"updated_by\": \"user\",\n        \"created_at\": \"2024-09-03T01:51:10.511656+07:00\",\n        \"updated_at\": \"2024-09-03T01:54:28.7265059+07:00\",\n        \"products\": []\n    }\n}"},{"id":"effd9ff0-dae3-4e76-a0c1-50c532d266f7","name":"Error Response","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"Vincent Oliver Limarus\",\r\n    \"email\": \"vincentlimarus27@gmail.com\",\r\n    \"password\": \"vincent27\",\r\n    \"confirm_password\": \"vincent27\",\r\n    \"is_active\": true,\r\n    \"created_by\": \"\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/v1/user/register"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"code\": 500,\n        \"message\": \"Internal Server Error: record not found\"\n    },\n    {\n        \"code\": 401,\n        \"message\": \"Unauthorized token is expired or invalid\"\n    },\n    {\n        \"code\": 500,\n        \"message\": \"Internal Server Error {Error GetAllProductByArtisanID}\"\n    }\n]"}],"_postman_id":"f8b4c949-1743-4227-8148-8dd78911a4fe"},{"name":"DeleteArtisanService","id":"647a97a4-f14f-426b-81b0-4182220f4a49","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"id\": \"877633d9-8517-40f7-9b64-e61c121ed6c6\",\r\n    \"user_id\": \"d5e34629-99e0-40ac-8113-89a82316f63d\",\r\n    \"password\": \"sennn1305\",\r\n    \"confirm_password\": \"sennn1305\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/v1/artisan/delete","urlObject":{"protocol":"http","port":"3000","path":["api","v1","artisan","delete"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"285ae063-f8ab-4392-b39c-c6e8d677fb9d","name":"Successful Response","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"id\": \"64b17b84-f8d4-4528-bf65-e91c4e4ed605\",\r\n    \"user_id\": \"79f6be26-acae-40ff-88ad-8287e32b5362\",\r\n    \"password\": \"localArtisan\",\r\n    \"confirm_password\": \"localArtisan\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/v1/artisan/delete"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Allow-Headers","value":"Accept, Content-Type, Content-Length, Accept-Encoding, Authorization, X-CSRF-Token, credentials"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, DELETE, PUT, PATCH, OPTIONS, HEAD, TRACE"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:5173"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Wed, 07 Aug 2024 03:10:11 GMT"},{"key":"Content-Length","value":"727"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"message\": \"Success: Artisan Deleted\",\n    \"data\": {\n        \"id\": \"877633d9-8517-40f7-9b64-e61c121ed6c6\",\n        \"user_id\": \"d5e34629-99e0-40ac-8113-89a82316f63d\",\n        \"shop_name\": \"Bumi Craft\",\n        \"shop_address\": \"Jl. Merdeka No. 10, Yogyakarta\",\n        \"description\": \"Selling authentic Indonesian handicrafts and textiles crafted by local artisans.\",\n        \"shop_banner\": \"\",\n        \"rating\": 0,\n        \"is_active\": true,\n        \"created_by\": \"system\",\n        \"updated_by\": \"system\",\n        \"created_at\": \"2024-09-03T01:50:02.751261+07:00\",\n        \"updated_at\": \"2024-09-03T01:50:02.751261+07:00\",\n        \"products\": []\n    }\n}"},{"id":"991bfd82-de08-43dd-818b-29aeec6da125","name":"Error Response","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"Vincent Oliver Limarus\",\r\n    \"email\": \"vincentlimarus27@gmail.com\",\r\n    \"password\": \"vincent27\",\r\n    \"confirm_password\": \"vincent27\",\r\n    \"is_active\": true,\r\n    \"created_by\": \"\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/v1/user/register"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"code\": 500,\n        \"message\": \"Internal Server Error: record not found\"\n    },\n    {\n        \"code\": 401,\n        \"message\": \"Unauthorized token is expired or invalid\"\n    }\n]"}],"_postman_id":"647a97a4-f14f-426b-81b0-4182220f4a49"}],"id":"02936e01-2ad6-486d-ba8a-0d1e5e7a4d6e","description":"<ol>\n<li><p><strong>GetAllArtisansService:</strong></p>\n<ol>\n<li><p><strong>Functionality:</strong> Retrieves a list of all artisans registered in the system.</p>\n</li>\n<li><p><strong>Implementation:</strong> Utilizes GORM queries to fetch artisan data, with support for pagination to manage large datasets effectively.</p>\n</li>\n</ol>\n</li>\n<li><p><strong>GetArtisanService:</strong></p>\n<ol>\n<li><p><strong>Functionality:</strong> Fetches details of a specific artisan based on their ArtisanID.</p>\n</li>\n<li><p><strong>Implementation:</strong> Uses GORM queries to locate and return artisan data from the database, ensuring the correct artisan information is retrieved.</p>\n</li>\n</ol>\n</li>\n<li><p><strong>RegisterArtisanService:</strong></p>\n<ol>\n<li><p><strong>Functionality:</strong> Handles the registration of new artisans.</p>\n</li>\n<li><p><strong>Implementation:</strong> Adds a new artisan to the database, ensuring all required information is provided and stored correctly.</p>\n</li>\n</ol>\n</li>\n<li><p><strong>UpdateArtisanService:</strong></p>\n<ol>\n<li><p><strong>Functionality:</strong> Updates the information of an existing artisan.</p>\n</li>\n<li><p><strong>Implementation:</strong> Allows artisans to modify their details, such as shop name, shop address, description about the shop, and stores the updated information in the database.</p>\n</li>\n</ol>\n</li>\n<li><p><strong>DeleteArtisanService:</strong></p>\n<ol>\n<li><p><strong>Functionality</strong>: Removes an artisan from the database.</p>\n</li>\n<li><p><strong>Implementation</strong>: Deletes the artisan’s record, ensuring that their data is no longer accessible within the system.</p>\n</li>\n</ol>\n</li>\n</ol>\n","_postman_id":"02936e01-2ad6-486d-ba8a-0d1e5e7a4d6e"},{"name":"CategoriesService","item":[{"name":"GetAllCategoriesService","id":"47c5051f-553b-48b9-b85c-8d3bf2264058","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3000/api/v1/categories?page=1&limit=10&order_by=id&order_type=asc","urlObject":{"protocol":"http","port":"3000","path":["api","v1","categories"],"host":["localhost"],"query":[{"key":"page","value":"1"},{"key":"limit","value":"10"},{"key":"order_by","value":"id"},{"key":"order_type","value":"asc"}],"variable":[]}},"response":[{"id":"979828ee-79d9-4567-9eaf-0294625a0d62","name":"Successful Response","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://localhost:3000/api/v1/categories?page=1&limit=10&order_by=id&order_type=asc","protocol":"http","host":["localhost"],"port":"3000","path":["api","v1","categories"],"query":[{"key":"page","value":"1"},{"key":"limit","value":"10"},{"key":"order_by","value":"id"},{"key":"order_type","value":"asc"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Allow-Headers","value":"Accept, Content-Type, Content-Length, Accept-Encoding, Authorization, X-CSRF-Token, credentials"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, DELETE, PUT, PATCH, OPTIONS, HEAD, TRACE"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:5173"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Wed, 07 Aug 2024 03:11:57 GMT"},{"key":"Content-Length","value":"400"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"message\": \"Success: Categories Found\",\n    \"page\": 1,\n    \"limit\": 10,\n    \"order_by\": \"id\",\n    \"order_type\": \"asc\",\n    \"total_data\": 8,\n    \"total_take\": 8,\n    \"total_page\": 1,\n    \"data\": [\n        {\n            \"id\": \"2d8bd10a-0560-4e3f-91df-a4dd218a51d9\",\n            \"name\": \"Natural Products\",\n            \"image\": \"link-to-natural-products-image\",\n            \"isActive\": true,\n            \"createdBy\": \"system\",\n            \"updatedBy\": \"system\",\n            \"createdAt\": \"2024-09-03T02:00:55.112734+07:00\",\n            \"updatedAt\": \"2024-09-03T02:00:55.112734+07:00\",\n            \"products\": [\n                {\n                    \"id\": \"73b466a2-e72e-455f-88bf-20317625d63a\",\n                    \"name\": \"Herbal Teas\",\n                    \"price\": 8,\n                    \"description\": \"A selection of Indonesian herbal teas, handpicked and naturally dried for a refreshing experience.\",\n                    \"quantity\": 122,\n                    \"item_sold\": 0,\n                    \"rating\": 0,\n                    \"is_active\": true,\n                    \"created_by\": \"system\",\n                    \"updated_by\": \"system\",\n                    \"created_at\": \"2024-09-03T02:08:22.611924Z\",\n                    \"updated_at\": \"2024-09-03T02:08:22.611924Z\",\n                    \"category_id\": \"2d8bd10a-0560-4e3f-91df-a4dd218a51d9\",\n                    \"artisan_id\": \"413fb142-20fb-4295-8821-44a653348e65\"\n                },\n                {\n                    \"id\": \"974fec14-707e-41e4-928b-7ae9b13c1ae3\",\n                    \"name\": \"Handmade Soap Bars\",\n                    \"price\": 5.5,\n                    \"description\": \"Artisanal soap bars made with natural ingredients, offering a variety of scents and skin benefits.\",\n                    \"quantity\": 50,\n                    \"item_sold\": 0,\n                    \"rating\": 0,\n                    \"is_active\": true,\n                    \"created_by\": \"system\",\n                    \"updated_by\": \"system\",\n                    \"created_at\": \"2024-09-03T02:09:22.412193Z\",\n                    \"updated_at\": \"2024-09-03T02:09:22.412193Z\",\n                    \"category_id\": \"2d8bd10a-0560-4e3f-91df-a4dd218a51d9\",\n                    \"artisan_id\": \"413fb142-20fb-4295-8821-44a653348e65\"\n                },\n                {\n                    \"id\": \"6124af45-6302-4528-b1a6-3c3bea61a8d5\",\n                    \"name\": \"Essential Oil Set\",\n                    \"price\": 17.5,\n                    \"description\": \"A set of essential oils sourced from Indonesian plants, ideal for aromatherapy and relaxation.\",\n                    \"quantity\": 56,\n                    \"item_sold\": 0,\n                    \"rating\": 0,\n                    \"is_active\": true,\n                    \"created_by\": \"system\",\n                    \"updated_by\": \"system\",\n                    \"created_at\": \"2024-09-03T02:09:53.950255Z\",\n                    \"updated_at\": \"2024-09-03T02:09:53.950255Z\",\n                    \"category_id\": \"2d8bd10a-0560-4e3f-91df-a4dd218a51d9\",\n                    \"artisan_id\": \"576bc779-41e7-4fe9-8272-b6efb222e27b\"\n                },\n                {\n                    \"id\": \"8a3ac32d-6141-4e7a-92a9-1d02c21a597c\",\n                    \"name\": \"Bamboo Toothbrushes\",\n                    \"price\": 3.5,\n                    \"description\": \"Eco-friendly bamboo toothbrushes that help reduce plastic waste while maintaining oral hygiene.\",\n                    \"quantity\": 122,\n                    \"item_sold\": 0,\n                    \"rating\": 0,\n                    \"is_active\": true,\n                    \"created_by\": \"system\",\n                    \"updated_by\": \"system\",\n                    \"created_at\": \"2024-09-03T02:10:18.194401Z\",\n                    \"updated_at\": \"2024-09-03T02:10:18.194401Z\",\n                    \"category_id\": \"2d8bd10a-0560-4e3f-91df-a4dd218a51d9\",\n                    \"artisan_id\": \"64652f57-e0be-42a3-b5c6-87c26e402626\"\n                },\n                {\n                    \"id\": \"3c0eb80f-8f24-48d3-bd18-dc68eb8458dc\",\n                    \"name\": \"Bali Virgin Coconut Oil\",\n                    \"price\": 12,\n                    \"description\": \"Pure, cold-pressed virgin coconut oil from Bali, perfect for cooking, skincare, and hair care.\",\n                    \"quantity\": 197,\n                    \"item_sold\": 0,\n                    \"rating\": 0,\n                    \"is_active\": true,\n                    \"created_by\": \"system\",\n                    \"updated_by\": \"system\",\n                    \"created_at\": \"2024-09-03T02:07:51.778466Z\",\n                    \"updated_at\": \"2024-09-03T02:31:06.396286Z\",\n                    \"category_id\": \"2d8bd10a-0560-4e3f-91df-a4dd218a51d9\",\n                    \"artisan_id\": \"91ed1198-6103-41b2-bed6-a707634b5a45\"\n                }\n            ]\n        },\n        {\n            \"id\": \"39290c71-75a8-429f-b196-f3ed07f5c3a5\",\n            \"name\": \"Batik Fabrics\",\n            \"image\": \"link-to-batik-fabrics-image\",\n            \"isActive\": true,\n            \"createdBy\": \"system\",\n            \"updatedBy\": \"system\",\n            \"createdAt\": \"2024-09-03T02:01:50.998485+07:00\",\n            \"updatedAt\": \"2024-09-03T02:01:50.998485+07:00\",\n            \"products\": [\n                {\n                    \"id\": \"8cb876b0-8284-494a-97e8-996715a4407f\",\n                    \"name\": \"Hand-Stamped Batik Sarong\",\n                    \"price\": 25.5,\n                    \"description\": \"Traditional hand-stamped Batik sarong with intricate patterns, perfect for casual or formal wear.\",\n                    \"quantity\": 124,\n                    \"item_sold\": 0,\n                    \"rating\": 0,\n                    \"is_active\": true,\n                    \"created_by\": \"system\",\n                    \"updated_by\": \"system\",\n                    \"created_at\": \"2024-09-03T02:11:01.065633Z\",\n                    \"updated_at\": \"2024-09-03T02:11:01.065633Z\",\n                    \"category_id\": \"39290c71-75a8-429f-b196-f3ed07f5c3a5\",\n                    \"artisan_id\": \"91ed1198-6103-41b2-bed6-a707634b5a45\"\n                },\n                {\n                    \"id\": \"42dc04a1-a54d-4174-be8d-f33098f77845\",\n                    \"name\": \"Batik Scarf\",\n                    \"price\": 15.25,\n                    \"description\": \"Lightweight Batik scarf, ideal for adding a touch of Indonesian culture to any outfit.\",\n                    \"quantity\": 124,\n                    \"item_sold\": 0,\n                    \"rating\": 0,\n                    \"is_active\": true,\n                    \"created_by\": \"system\",\n                    \"updated_by\": \"system\",\n                    \"created_at\": \"2024-09-03T02:11:26.303691Z\",\n                    \"updated_at\": \"2024-09-03T02:11:26.303691Z\",\n                    \"category_id\": \"39290c71-75a8-429f-b196-f3ed07f5c3a5\",\n                    \"artisan_id\": \"413fb142-20fb-4295-8821-44a653348e65\"\n                },\n                {\n                    \"id\": \"819f252c-2ede-495f-b225-ff4d887f7209\",\n                    \"name\": \"Batik Tablecloth\",\n                    \"price\": 30.25,\n                    \"description\": \"Beautifully patterned Batik tablecloth, bringing elegance and tradition to your dining experience.\",\n                    \"quantity\": 202,\n                    \"item_sold\": 0,\n                    \"rating\": 0,\n                    \"is_active\": true,\n                    \"created_by\": \"system\",\n                    \"updated_by\": \"system\",\n                    \"created_at\": \"2024-09-03T02:11:48.406184Z\",\n                    \"updated_at\": \"2024-09-03T02:11:48.406184Z\",\n                    \"category_id\": \"39290c71-75a8-429f-b196-f3ed07f5c3a5\",\n                    \"artisan_id\": \"d95e5f2e-704b-4554-9620-533eb824d0be\"\n                },\n                {\n                    \"id\": \"45ebbebc-0f7a-44ba-b09a-d2e03a21aaf8\",\n                    \"name\": \"Batik Wall Hanging\",\n                    \"price\": 46.25,\n                    \"description\": \"Decorative Batik wall hanging, showcasing traditional motifs and vibrant colors.\",\n                    \"quantity\": 202,\n                    \"item_sold\": 0,\n                    \"rating\": 0,\n                    \"is_active\": true,\n                    \"created_by\": \"system\",\n                    \"updated_by\": \"system\",\n                    \"created_at\": \"2024-09-03T02:12:10.75322Z\",\n                    \"updated_at\": \"2024-09-03T02:12:10.75322Z\",\n                    \"category_id\": \"39290c71-75a8-429f-b196-f3ed07f5c3a5\",\n                    \"artisan_id\": \"576bc779-41e7-4fe9-8272-b6efb222e27b\"\n                },\n                {\n                    \"id\": \"fc1bd293-97e5-44dd-bb04-97594d84b9f4\",\n                    \"name\": \"Batik Fabric by the Yard\",\n                    \"price\": 10,\n                    \"description\": \"High-quality Batik fabric sold by the yard, perfect for crafting and custom projects.\",\n                    \"quantity\": 20200,\n                    \"item_sold\": 0,\n                    \"rating\": 0,\n                    \"is_active\": true,\n                    \"created_by\": \"system\",\n                    \"updated_by\": \"system\",\n                    \"created_at\": \"2024-09-03T02:12:39.345736Z\",\n                    \"updated_at\": \"2024-09-03T02:12:39.345736Z\",\n                    \"category_id\": \"39290c71-75a8-429f-b196-f3ed07f5c3a5\",\n                    \"artisan_id\": \"64652f57-e0be-42a3-b5c6-87c26e402626\"\n                }\n            ]\n        },\n        {\n            \"id\": \"3f04a238-0205-4cf7-8e3d-abef8a89c2ce\",\n            \"name\": \"Home Decor\",\n            \"image\": \"link-to-home-decor-image\",\n            \"isActive\": true,\n            \"createdBy\": \"system\",\n            \"updatedBy\": \"system\",\n            \"createdAt\": \"2024-09-03T02:00:48.184499+07:00\",\n            \"updatedAt\": \"2024-09-03T02:00:48.184499+07:00\",\n            \"products\": [\n                {\n                    \"id\": \"4f6e01fc-e8c5-4fd4-bc38-dd96acdb48e0\",\n                    \"name\": \"Rattan Wall Mirror\",\n                    \"price\": 40,\n                    \"description\": \"A stylish rattan-framed wall mirror, adding a touch of natural beauty to any room.\",\n                    \"quantity\": 25,\n                    \"item_sold\": 0,\n                    \"rating\": 0,\n                    \"is_active\": true,\n                    \"created_by\": \"system\",\n                    \"updated_by\": \"system\",\n                    \"created_at\": \"2024-09-03T02:13:21.209312Z\",\n                    \"updated_at\": \"2024-09-03T02:13:21.209312Z\",\n                    \"category_id\": \"3f04a238-0205-4cf7-8e3d-abef8a89c2ce\",\n                    \"artisan_id\": \"91ed1198-6103-41b2-bed6-a707634b5a45\"\n                },\n                {\n                    \"id\": \"363c80c8-1292-4484-aac2-07fed422af18\",\n                    \"name\": \"Handwoven Basket Set\",\n                    \"price\": 35,\n                    \"description\": \"A set of handwoven baskets made from natural fibers, perfect for organizing and decorating..\",\n                    \"quantity\": 25,\n                    \"item_sold\": 0,\n                    \"rating\": 0,\n                    \"is_active\": true,\n                    \"created_by\": \"system\",\n                    \"updated_by\": \"system\",\n                    \"created_at\": \"2024-09-03T02:13:45.627811Z\",\n                    \"updated_at\": \"2024-09-03T02:13:45.627811Z\",\n                    \"category_id\": \"3f04a238-0205-4cf7-8e3d-abef8a89c2ce\",\n                    \"artisan_id\": \"413fb142-20fb-4295-8821-44a653348e65\"\n                },\n                {\n                    \"id\": \"5b05ca4d-4eb1-495c-b07b-3d539d917000\",\n                    \"name\": \"Bamboo Lamp\",\n                    \"price\": 55,\n                    \"description\": \"A unique bamboo lamp that provides warm, ambient lighting, perfect for a cozy home atmosphere.\",\n                    \"quantity\": 255,\n                    \"item_sold\": 0,\n                    \"rating\": 0,\n                    \"is_active\": true,\n                    \"created_by\": \"system\",\n                    \"updated_by\": \"system\",\n                    \"created_at\": \"2024-09-03T02:14:07.901015Z\",\n                    \"updated_at\": \"2024-09-03T02:14:07.901015Z\",\n                    \"category_id\": \"3f04a238-0205-4cf7-8e3d-abef8a89c2ce\",\n                    \"artisan_id\": \"d2d60e32-3798-4755-802b-6dff742dc694\"\n                },\n                {\n                    \"id\": \"f1a764da-9b16-4b08-94cc-b97962573a7d\",\n                    \"name\": \"Carved Wooden Wall Art\",\n                    \"price\": 65,\n                    \"description\": \"Hand-carved wooden wall art, featuring intricate designs inspired by Indonesian culture.\",\n                    \"quantity\": 245,\n                    \"item_sold\": 0,\n                    \"rating\": 0,\n                    \"is_active\": true,\n                    \"created_by\": \"system\",\n                    \"updated_by\": \"system\",\n                    \"created_at\": \"2024-09-03T02:14:30.08065Z\",\n                    \"updated_at\": \"2024-09-03T02:14:30.08065Z\",\n                    \"category_id\": \"3f04a238-0205-4cf7-8e3d-abef8a89c2ce\",\n                    \"artisan_id\": \"576bc779-41e7-4fe9-8272-b6efb222e27b\"\n                },\n                {\n                    \"id\": \"037c4188-25aa-4dbc-8fb1-80a89a45e171\",\n                    \"name\": \"Batik Cushion Covers\",\n                    \"price\": 15,\n                    \"description\": \"Cushion covers made from traditional Batik fabric, adding cultural flair to your living space..\",\n                    \"quantity\": 175,\n                    \"item_sold\": 0,\n                    \"rating\": 0,\n                    \"is_active\": true,\n                    \"created_by\": \"system\",\n                    \"updated_by\": \"system\",\n                    \"created_at\": \"2024-09-03T02:15:00.257322Z\",\n                    \"updated_at\": \"2024-09-03T02:15:00.257322Z\",\n                    \"category_id\": \"3f04a238-0205-4cf7-8e3d-abef8a89c2ce\",\n                    \"artisan_id\": \"64652f57-e0be-42a3-b5c6-87c26e402626\"\n                }\n            ]\n        },\n        {\n            \"id\": \"529208c5-b867-4d44-a4f3-6e5398760412\",\n            \"name\": \"Handicrafts\",\n            \"image\": \"link-to-handicrafts-image\",\n            \"isActive\": true,\n            \"createdBy\": \"system\",\n            \"updatedBy\": \"system\",\n            \"createdAt\": \"2024-09-03T02:01:01.853416+07:00\",\n            \"updatedAt\": \"2024-09-03T02:01:01.853416+07:00\",\n            \"products\": [\n                {\n                    \"id\": \"0c4cfe47-16c7-48dc-b8f0-a65587c93cd5\",\n                    \"name\": \"Woven Bamboo Baskets\",\n                    \"price\": 15,\n                    \"description\": \"Handcrafted bamboo baskets, perfect for storage or as decorative pieces.\",\n                    \"quantity\": 175,\n                    \"item_sold\": 0,\n                    \"rating\": 0,\n                    \"is_active\": true,\n                    \"created_by\": \"system\",\n                    \"updated_by\": \"system\",\n                    \"created_at\": \"2024-09-03T02:15:28.915941Z\",\n                    \"updated_at\": \"2024-09-03T02:15:28.915941Z\",\n                    \"category_id\": \"529208c5-b867-4d44-a4f3-6e5398760412\",\n                    \"artisan_id\": \"64652f57-e0be-42a3-b5c6-87c26e402626\"\n                },\n                {\n                    \"id\": \"2a18ad15-4a53-4cb1-8419-e350422edbe4\",\n                    \"name\": \"Clay Pottery\",\n                    \"price\": 25,\n                    \"description\": \"Beautifully handcrafted clay pottery, ideal for adding a rustic touch to your home decor.\",\n                    \"quantity\": 275,\n                    \"item_sold\": 0,\n                    \"rating\": 0,\n                    \"is_active\": true,\n                    \"created_by\": \"system\",\n                    \"updated_by\": \"system\",\n                    \"created_at\": \"2024-09-03T02:15:57.621999Z\",\n                    \"updated_at\": \"2024-09-03T02:15:57.621999Z\",\n                    \"category_id\": \"529208c5-b867-4d44-a4f3-6e5398760412\",\n                    \"artisan_id\": \"413fb142-20fb-4295-8821-44a653348e65\"\n                },\n                {\n                    \"id\": \"933df708-5643-4087-a44e-60929324c04a\",\n                    \"name\": \"Hand-Painted Wooden Masks\",\n                    \"price\": 35,\n                    \"description\": \"Decorative wooden masks, hand-painted with traditional Indonesian motifs.\",\n                    \"quantity\": 305,\n                    \"item_sold\": 0,\n                    \"rating\": 0,\n                    \"is_active\": true,\n                    \"created_by\": \"system\",\n                    \"updated_by\": \"system\",\n                    \"created_at\": \"2024-09-03T02:16:27.645746Z\",\n                    \"updated_at\": \"2024-09-03T02:16:27.645746Z\",\n                    \"category_id\": \"529208c5-b867-4d44-a4f3-6e5398760412\",\n                    \"artisan_id\": \"1e2bd68b-d9b6-48bb-a1b0-90f93889a0e1\"\n                },\n                {\n                    \"id\": \"c636d485-2249-44ca-8ea4-cdb6ad53858d\",\n                    \"name\": \"Batik Coasters\",\n                    \"price\": 17,\n                    \"description\": \"Coasters made from Batik fabric, adding a traditional touch to your table setting.\",\n                    \"quantity\": 305,\n                    \"item_sold\": 0,\n                    \"rating\": 0,\n                    \"is_active\": true,\n                    \"created_by\": \"system\",\n                    \"updated_by\": \"system\",\n                    \"created_at\": \"2024-09-03T02:16:50.631144Z\",\n                    \"updated_at\": \"2024-09-03T02:16:50.631144Z\",\n                    \"category_id\": \"529208c5-b867-4d44-a4f3-6e5398760412\",\n                    \"artisan_id\": \"d95e5f2e-704b-4554-9620-533eb824d0be\"\n                },\n                {\n                    \"id\": \"065350a4-967c-47cb-aa0e-45d3c8dac203\",\n                    \"name\": \"Woven Palm Leaf Fans\",\n                    \"price\": 5.4,\n                    \"description\": \"Handmade palm leaf fans, perfect for hot days or as unique decorative items.\",\n                    \"quantity\": 305,\n                    \"item_sold\": 0,\n                    \"rating\": 0,\n                    \"is_active\": true,\n                    \"created_by\": \"system\",\n                    \"updated_by\": \"system\",\n                    \"created_at\": \"2024-09-03T02:17:42.017225Z\",\n                    \"updated_at\": \"2024-09-03T02:17:42.017225Z\",\n                    \"category_id\": \"529208c5-b867-4d44-a4f3-6e5398760412\",\n                    \"artisan_id\": \"64652f57-e0be-42a3-b5c6-87c26e402626\"\n                }\n            ]\n        },\n        {\n            \"id\": \"6740272d-9c33-4152-ac84-dd371c02a4ff\",\n            \"name\": \"Textiles\",\n            \"image\": \"link-to-textiles-image\",\n            \"isActive\": true,\n            \"createdBy\": \"system\",\n            \"updatedBy\": \"system\",\n            \"createdAt\": \"2024-09-03T02:00:07.303828+07:00\",\n            \"updatedAt\": \"2024-09-03T02:00:07.303828+07:00\",\n            \"products\": [\n                {\n                    \"id\": \"b09658af-f105-4689-b2da-1ce8a663fc43\",\n                    \"name\": \"Handwoven Ikat Fabric\",\n                    \"price\": 35.4,\n                    \"description\": \"Authentic handwoven Ikat fabric, perfect for clothing or home decor projects.\",\n                    \"quantity\": 225,\n                    \"item_sold\": 0,\n                    \"rating\": 0,\n                    \"is_active\": true,\n                    \"created_by\": \"system\",\n                    \"updated_by\": \"system\",\n                    \"created_at\": \"2024-09-03T02:18:19.718352Z\",\n                    \"updated_at\": \"2024-09-03T02:18:19.718352Z\",\n                    \"category_id\": \"6740272d-9c33-4152-ac84-dd371c02a4ff\",\n                    \"artisan_id\": \"91ed1198-6103-41b2-bed6-a707634b5a45\"\n                },\n                {\n                    \"id\": \"2e6c36c7-8980-48cd-bfa1-44d6ecd10995\",\n                    \"name\": \"Songket Shawl\",\n                    \"price\": 45.4,\n                    \"description\": \"Luxurious Songket shawl, woven with intricate patterns and metallic threads.\",\n                    \"quantity\": 125,\n                    \"item_sold\": 0,\n                    \"rating\": 0,\n                    \"is_active\": true,\n                    \"created_by\": \"system\",\n                    \"updated_by\": \"system\",\n                    \"created_at\": \"2024-09-03T02:18:40.755373Z\",\n                    \"updated_at\": \"2024-09-03T02:18:40.755373Z\",\n                    \"category_id\": \"6740272d-9c33-4152-ac84-dd371c02a4ff\",\n                    \"artisan_id\": \"413fb142-20fb-4295-8821-44a653348e65\"\n                },\n                {\n                    \"id\": \"ebaba0e7-1749-4c08-a1a5-1e2a3d46e9f4\",\n                    \"name\": \"Tenun Blanket\",\n                    \"price\": 55.4,\n                    \"description\": \"A warm and cozy blanket made from traditional Tenun fabric, showcasing Indonesian craftsmanship.\",\n                    \"quantity\": 225,\n                    \"item_sold\": 0,\n                    \"rating\": 0,\n                    \"is_active\": true,\n                    \"created_by\": \"system\",\n                    \"updated_by\": \"system\",\n                    \"created_at\": \"2024-09-03T02:19:09.43978Z\",\n                    \"updated_at\": \"2024-09-03T02:19:09.43978Z\",\n                    \"category_id\": \"6740272d-9c33-4152-ac84-dd371c02a4ff\",\n                    \"artisan_id\": \"91ed1198-6103-41b2-bed6-a707634b5a45\"\n                },\n                {\n                    \"id\": \"b3e0e3d6-5f17-4b5a-ada1-3bbebb4bd4e0\",\n                    \"name\": \"Embroidered Cushion Covers\",\n                    \"price\": 15.4,\n                    \"description\": \"Cushion covers with beautiful embroidery, adding elegance to any room\",\n                    \"quantity\": 1225,\n                    \"item_sold\": 0,\n                    \"rating\": 0,\n                    \"is_active\": true,\n                    \"created_by\": \"system\",\n                    \"updated_by\": \"system\",\n                    \"created_at\": \"2024-09-03T02:19:40.266208Z\",\n                    \"updated_at\": \"2024-09-03T02:19:40.266208Z\",\n                    \"category_id\": \"6740272d-9c33-4152-ac84-dd371c02a4ff\",\n                    \"artisan_id\": \"576bc779-41e7-4fe9-8272-b6efb222e27b\"\n                },\n                {\n                    \"id\": \"a30d787a-e473-4b7c-b843-aa226c7fd8be\",\n                    \"name\": \"Sarong Beach Wrap\",\n                    \"price\": 25.4,\n                    \"description\": \"A versatile sarong that can be used as a beach wrap or scarf, made from soft, lightweight fabric\",\n                    \"quantity\": 52,\n                    \"item_sold\": 0,\n                    \"rating\": 0,\n                    \"is_active\": true,\n                    \"created_by\": \"system\",\n                    \"updated_by\": \"system\",\n                    \"created_at\": \"2024-09-03T02:20:01.211852Z\",\n                    \"updated_at\": \"2024-09-03T02:20:01.211852Z\",\n                    \"category_id\": \"6740272d-9c33-4152-ac84-dd371c02a4ff\",\n                    \"artisan_id\": \"64652f57-e0be-42a3-b5c6-87c26e402626\"\n                }\n            ]\n        },\n        {\n            \"id\": \"b336e25a-3942-448b-a206-2dce0e5ccc94\",\n            \"name\": \"Wood Carvings\",\n            \"image\": \"link-to-wood-carvings-image\",\n            \"isActive\": true,\n            \"createdBy\": \"system\",\n            \"updatedBy\": \"system\",\n            \"createdAt\": \"2024-09-03T02:02:09.019641+07:00\",\n            \"updatedAt\": \"2024-09-03T02:02:09.019641+07:00\",\n            \"products\": [\n                {\n                    \"id\": \"f60d6305-9b76-4713-a825-0f84da8a08a4\",\n                    \"name\": \"Carved Wooden Buddha\",\n                    \"price\": 60.4,\n                    \"description\": \"A beautifully carved wooden Buddha statue, perfect for adding a serene atmosphere to your space.\",\n                    \"quantity\": 542,\n                    \"item_sold\": 0,\n                    \"rating\": 0,\n                    \"is_active\": true,\n                    \"created_by\": \"system\",\n                    \"updated_by\": \"system\",\n                    \"created_at\": \"2024-09-03T02:20:55.098461Z\",\n                    \"updated_at\": \"2024-09-03T02:20:55.098461Z\",\n                    \"category_id\": \"b336e25a-3942-448b-a206-2dce0e5ccc94\",\n                    \"artisan_id\": \"91ed1198-6103-41b2-bed6-a707634b5a45\"\n                },\n                {\n                    \"id\": \"847123da-3c6e-426a-9af4-5f2f2952c61f\",\n                    \"name\": \"Balinese Door Panel\",\n                    \"price\": 120.4,\n                    \"description\": \"Intricately carved Balinese door panel, a stunning piece of traditional art for your home.\",\n                    \"quantity\": 82,\n                    \"item_sold\": 0,\n                    \"rating\": 0,\n                    \"is_active\": true,\n                    \"created_by\": \"system\",\n                    \"updated_by\": \"system\",\n                    \"created_at\": \"2024-09-03T02:21:21.486783Z\",\n                    \"updated_at\": \"2024-09-03T02:21:21.486783Z\",\n                    \"category_id\": \"b336e25a-3942-448b-a206-2dce0e5ccc94\",\n                    \"artisan_id\": \"413fb142-20fb-4295-8821-44a653348e65\"\n                },\n                {\n                    \"id\": \"9538f4fe-f927-4c6e-b5f6-1b9fc9d9a20c\",\n                    \"name\": \"Wooden Animal Figures\",\n                    \"price\": 35.4,\n                    \"description\": \"A set of hand-carved wooden animal figures, each showcasing detailed craftsmanship.\",\n                    \"quantity\": 212,\n                    \"item_sold\": 0,\n                    \"rating\": 0,\n                    \"is_active\": true,\n                    \"created_by\": \"system\",\n                    \"updated_by\": \"system\",\n                    \"created_at\": \"2024-09-03T02:21:52.943058Z\",\n                    \"updated_at\": \"2024-09-03T02:21:52.943058Z\",\n                    \"category_id\": \"b336e25a-3942-448b-a206-2dce0e5ccc94\",\n                    \"artisan_id\": \"1e2bd68b-d9b6-48bb-a1b0-90f93889a0e1\"\n                },\n                {\n                    \"id\": \"3c5f6f77-c3e3-4c8b-bf55-a828d74cb982\",\n                    \"name\": \"Wooden Wall Plaques\",\n                    \"price\": 45.4,\n                    \"description\": \"Decorative wooden wall plaques, featuring intricate carvings inspired by Indonesian culture.\",\n                    \"quantity\": 212,\n                    \"item_sold\": 0,\n                    \"rating\": 0,\n                    \"is_active\": true,\n                    \"created_by\": \"system\",\n                    \"updated_by\": \"system\",\n                    \"created_at\": \"2024-09-03T02:22:24.551394Z\",\n                    \"updated_at\": \"2024-09-03T02:22:24.551394Z\",\n                    \"category_id\": \"b336e25a-3942-448b-a206-2dce0e5ccc94\",\n                    \"artisan_id\": \"576bc779-41e7-4fe9-8272-b6efb222e27b\"\n                },\n                {\n                    \"id\": \"b240fa2d-4642-4363-bdfa-ebffb8cde841\",\n                    \"name\": \"Carved Wooden Mask\",\n                    \"price\": 40.4,\n                    \"description\": \"A traditional carved wooden mask, perfect for wall decoration or as a cultural artifact.\",\n                    \"quantity\": 125,\n                    \"item_sold\": 0,\n                    \"rating\": 0,\n                    \"is_active\": true,\n                    \"created_by\": \"system\",\n                    \"updated_by\": \"system\",\n                    \"created_at\": \"2024-09-03T02:22:43.433285Z\",\n                    \"updated_at\": \"2024-09-03T02:22:43.433285Z\",\n                    \"category_id\": \"b336e25a-3942-448b-a206-2dce0e5ccc94\",\n                    \"artisan_id\": \"64652f57-e0be-42a3-b5c6-87c26e402626\"\n                }\n            ]\n        },\n        {\n            \"id\": \"d0896134-9b32-4c58-a790-a5acace33513\",\n            \"name\": \"Jewelry\",\n            \"image\": \"link-to-jewelry-image\",\n            \"isActive\": true,\n            \"createdBy\": \"system\",\n            \"updatedBy\": \"system\",\n            \"createdAt\": \"2024-09-03T02:00:01.497337+07:00\",\n            \"updatedAt\": \"2024-09-03T02:00:01.497337+07:00\",\n            \"products\": [\n                {\n                    \"id\": \"cd726001-5819-42c1-a138-d63cc21dfc68\",\n                    \"name\": \"Silver Filigree Earrings\",\n                    \"price\": 25.4,\n                    \"description\": \"Delicate silver earrings featuring traditional Indonesian filigree work, adding elegance to any outfit.\",\n                    \"quantity\": 125,\n                    \"item_sold\": 0,\n                    \"rating\": 0,\n                    \"is_active\": true,\n                    \"created_by\": \"system\",\n                    \"updated_by\": \"system\",\n                    \"created_at\": \"2024-09-03T02:23:21.225122Z\",\n                    \"updated_at\": \"2024-09-03T02:23:21.225122Z\",\n                    \"category_id\": \"d0896134-9b32-4c58-a790-a5acace33513\",\n                    \"artisan_id\": \"91ed1198-6103-41b2-bed6-a707634b5a45\"\n                },\n                {\n                    \"id\": \"73e72f43-a419-48e2-80d4-d3ca6f94a5f6\",\n                    \"name\": \"Beaded Necklace\",\n                    \"price\": 20.6,\n                    \"description\": \"A colorful beaded necklace, handmade with vibrant beads and intricate patterns.\",\n                    \"quantity\": 525,\n                    \"item_sold\": 0,\n                    \"rating\": 0,\n                    \"is_active\": true,\n                    \"created_by\": \"system\",\n                    \"updated_by\": \"system\",\n                    \"created_at\": \"2024-09-03T02:23:47.036691Z\",\n                    \"updated_at\": \"2024-09-03T02:23:47.036691Z\",\n                    \"category_id\": \"d0896134-9b32-4c58-a790-a5acace33513\",\n                    \"artisan_id\": \"413fb142-20fb-4295-8821-44a653348e65\"\n                },\n                {\n                    \"id\": \"655970e0-c1af-4d99-b878-d571daefe60e\",\n                    \"name\": \"Pearl Bracelet\",\n                    \"price\": 35.6,\n                    \"description\": \"A classic pearl bracelet, showcasing the natural beauty of Indonesian pearls.\",\n                    \"quantity\": 32,\n                    \"item_sold\": 0,\n                    \"rating\": 0,\n                    \"is_active\": true,\n                    \"created_by\": \"system\",\n                    \"updated_by\": \"system\",\n                    \"created_at\": \"2024-09-03T02:24:15.933829Z\",\n                    \"updated_at\": \"2024-09-03T02:24:15.933829Z\",\n                    \"category_id\": \"d0896134-9b32-4c58-a790-a5acace33513\",\n                    \"artisan_id\": \"91ed1198-6103-41b2-bed6-a707634b5a45\"\n                },\n                {\n                    \"id\": \"61bed830-2332-44a4-8def-9e936594891d\",\n                    \"name\": \"Bamboo Bangles\",\n                    \"price\": 15.6,\n                    \"description\": \"Eco-friendly bangles made from bamboo, combining fashion with sustainability.\",\n                    \"quantity\": 123,\n                    \"item_sold\": 0,\n                    \"rating\": 0,\n                    \"is_active\": true,\n                    \"created_by\": \"system\",\n                    \"updated_by\": \"system\",\n                    \"created_at\": \"2024-09-03T02:24:39.174298Z\",\n                    \"updated_at\": \"2024-09-03T02:24:39.174298Z\",\n                    \"category_id\": \"d0896134-9b32-4c58-a790-a5acace33513\",\n                    \"artisan_id\": \"576bc779-41e7-4fe9-8272-b6efb222e27b\"\n                },\n                {\n                    \"id\": \"0037485d-0827-45a3-8840-3b25d15a91db\",\n                    \"name\": \"Batik Pendant Necklace\",\n                    \"price\": 30,\n                    \"description\": \"A unique pendant necklace featuring Batik fabric encased in resin, a blend of tradition and modernity.\",\n                    \"quantity\": 52,\n                    \"item_sold\": 0,\n                    \"rating\": 0,\n                    \"is_active\": true,\n                    \"created_by\": \"system\",\n                    \"updated_by\": \"user\",\n                    \"created_at\": \"2024-09-03T02:25:10.345257Z\",\n                    \"updated_at\": \"2024-09-03T02:29:55.856954Z\",\n                    \"category_id\": \"d0896134-9b32-4c58-a790-a5acace33513\",\n                    \"artisan_id\": \"64652f57-e0be-42a3-b5c6-87c26e402626\"\n                }\n            ]\n        },\n        {\n            \"id\": \"f8c0e6c8-5aaa-4259-8005-65f65422da6b\",\n            \"name\": \"Traditional Musical Instruments\",\n            \"image\": \"link-to-musical-instruments-image\",\n            \"isActive\": true,\n            \"createdBy\": \"system\",\n            \"updatedBy\": \"system\",\n            \"createdAt\": \"2024-09-03T02:02:02.848266+07:00\",\n            \"updatedAt\": \"2024-09-03T02:02:02.848266+07:00\",\n            \"products\": [\n                {\n                    \"id\": \"e809f59f-e3a9-44ab-a475-7898fb3cb8f8\",\n                    \"name\": \"Angklung Set\",\n                    \"price\": 48.6,\n                    \"description\": \"A traditional Indonesian Angklung set, handmade from bamboo and tuned to perfection.\",\n                    \"quantity\": 12,\n                    \"item_sold\": 0,\n                    \"rating\": 0,\n                    \"is_active\": true,\n                    \"created_by\": \"system\",\n                    \"updated_by\": \"system\",\n                    \"created_at\": \"2024-09-03T02:25:53.953648Z\",\n                    \"updated_at\": \"2024-09-03T02:25:53.953648Z\",\n                    \"category_id\": \"f8c0e6c8-5aaa-4259-8005-65f65422da6b\",\n                    \"artisan_id\": \"91ed1198-6103-41b2-bed6-a707634b5a45\"\n                },\n                {\n                    \"id\": \"0cfc5d47-eb45-4d04-b205-981f9ccaaa4e\",\n                    \"name\": \"Gamelan Gong\",\n                    \"price\": 128.6,\n                    \"description\": \"A beautifully crafted Gamelan gong, essential for any traditional Gamelan ensemble.\",\n                    \"quantity\": 16,\n                    \"item_sold\": 0,\n                    \"rating\": 0,\n                    \"is_active\": true,\n                    \"created_by\": \"system\",\n                    \"updated_by\": \"system\",\n                    \"created_at\": \"2024-09-03T02:26:15.746593Z\",\n                    \"updated_at\": \"2024-09-03T02:26:15.746593Z\",\n                    \"category_id\": \"f8c0e6c8-5aaa-4259-8005-65f65422da6b\",\n                    \"artisan_id\": \"413fb142-20fb-4295-8821-44a653348e65\"\n                },\n                {\n                    \"id\": \"c1233dac-2ffa-45db-bab3-30ac801dbcc6\",\n                    \"name\": \"Suling (Bamboo Flute)\",\n                    \"price\": 15.6,\n                    \"description\": \"A traditional bamboo flute, offering a unique and soothing sound, perfect for both beginners and professionals.\",\n                    \"quantity\": 16,\n                    \"item_sold\": 0,\n                    \"rating\": 0,\n                    \"is_active\": true,\n                    \"created_by\": \"system\",\n                    \"updated_by\": \"system\",\n                    \"created_at\": \"2024-09-03T02:26:32.782524Z\",\n                    \"updated_at\": \"2024-09-03T02:26:32.782524Z\",\n                    \"category_id\": \"f8c0e6c8-5aaa-4259-8005-65f65422da6b\",\n                    \"artisan_id\": \"d95e5f2e-704b-4554-9620-533eb824d0be\"\n                },\n                {\n                    \"id\": \"13efeda0-11ed-42c6-9b33-d98984993f87\",\n                    \"name\": \"Kendang Drum\",\n                    \"price\": 65.6,\n                    \"description\": \"A traditional Indonesian drum, handcrafted from wood and leather, used in various cultural performances.\",\n                    \"quantity\": 26,\n                    \"item_sold\": 0,\n                    \"rating\": 0,\n                    \"is_active\": true,\n                    \"created_by\": \"system\",\n                    \"updated_by\": \"system\",\n                    \"created_at\": \"2024-09-03T02:26:54.245895Z\",\n                    \"updated_at\": \"2024-09-03T02:26:54.245895Z\",\n                    \"category_id\": \"f8c0e6c8-5aaa-4259-8005-65f65422da6b\",\n                    \"artisan_id\": \"576bc779-41e7-4fe9-8272-b6efb222e27b\"\n                },\n                {\n                    \"id\": \"61ff5b45-980b-4f35-893e-2e267855e415\",\n                    \"name\": \"Sasando Harp\",\n                    \"price\": 165.6,\n                    \"description\": \"A rare and beautiful Sasando harp, an iconic musical instrument from the island of Rote, Indonesia.\",\n                    \"quantity\": 261,\n                    \"item_sold\": 0,\n                    \"rating\": 0,\n                    \"is_active\": true,\n                    \"created_by\": \"system\",\n                    \"updated_by\": \"system\",\n                    \"created_at\": \"2024-09-03T02:30:28.812424Z\",\n                    \"updated_at\": \"2024-09-03T02:30:28.812424Z\",\n                    \"category_id\": \"f8c0e6c8-5aaa-4259-8005-65f65422da6b\",\n                    \"artisan_id\": \"64652f57-e0be-42a3-b5c6-87c26e402626\"\n                }\n            ]\n        }\n    ]\n}"}],"_postman_id":"47c5051f-553b-48b9-b85c-8d3bf2264058"},{"name":"GetCategoryService","id":"ed413a24-465f-44ce-bf77-c09d8d1df614","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3000/api/v1/category/a5f53b18-6830-437a-9587-510b4aabae3d","urlObject":{"protocol":"http","port":"3000","path":["api","v1","category","a5f53b18-6830-437a-9587-510b4aabae3d"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"3e477231-ddfd-4083-8dd4-3b8e24a5f814","name":"Successful Response","originalRequest":{"method":"GET","header":[],"url":"http://localhost:3000/api/v1/category/0b500fde-f490-4133-ad9a-c5e290468638"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Allow-Headers","value":"Accept, Content-Type, Content-Length, Accept-Encoding, Authorization, X-CSRF-Token, credentials"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, DELETE, PUT, PATCH, OPTIONS, HEAD, TRACE"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:5173"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Wed, 07 Aug 2024 03:12:14 GMT"},{"key":"Content-Length","value":"296"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"message\": \"Success: Category Found\",\n    \"data\": {\n        \"id\": \"2d8bd10a-0560-4e3f-91df-a4dd218a51d9\",\n        \"name\": \"Natural Products\",\n        \"image\": \"link-to-natural-products-image\",\n        \"isActive\": true,\n        \"createdBy\": \"system\",\n        \"updatedBy\": \"system\",\n        \"createdAt\": \"2024-09-03T02:00:55.112734+07:00\",\n        \"updatedAt\": \"2024-09-03T02:00:55.112734+07:00\",\n        \"products\": [\n            {\n                \"id\": \"73b466a2-e72e-455f-88bf-20317625d63a\",\n                \"name\": \"Herbal Teas\",\n                \"price\": 8,\n                \"description\": \"A selection of Indonesian herbal teas, handpicked and naturally dried for a refreshing experience.\",\n                \"quantity\": 122,\n                \"item_sold\": 0,\n                \"rating\": 0,\n                \"is_active\": true,\n                \"created_by\": \"system\",\n                \"updated_by\": \"system\",\n                \"created_at\": \"2024-09-03T02:08:22.611924Z\",\n                \"updated_at\": \"2024-09-03T02:08:22.611924Z\",\n                \"category_id\": \"2d8bd10a-0560-4e3f-91df-a4dd218a51d9\",\n                \"artisan_id\": \"413fb142-20fb-4295-8821-44a653348e65\"\n            },\n            {\n                \"id\": \"974fec14-707e-41e4-928b-7ae9b13c1ae3\",\n                \"name\": \"Handmade Soap Bars\",\n                \"price\": 5.5,\n                \"description\": \"Artisanal soap bars made with natural ingredients, offering a variety of scents and skin benefits.\",\n                \"quantity\": 50,\n                \"item_sold\": 0,\n                \"rating\": 0,\n                \"is_active\": true,\n                \"created_by\": \"system\",\n                \"updated_by\": \"system\",\n                \"created_at\": \"2024-09-03T02:09:22.412193Z\",\n                \"updated_at\": \"2024-09-03T02:09:22.412193Z\",\n                \"category_id\": \"2d8bd10a-0560-4e3f-91df-a4dd218a51d9\",\n                \"artisan_id\": \"413fb142-20fb-4295-8821-44a653348e65\"\n            },\n            {\n                \"id\": \"6124af45-6302-4528-b1a6-3c3bea61a8d5\",\n                \"name\": \"Essential Oil Set\",\n                \"price\": 17.5,\n                \"description\": \"A set of essential oils sourced from Indonesian plants, ideal for aromatherapy and relaxation.\",\n                \"quantity\": 56,\n                \"item_sold\": 0,\n                \"rating\": 0,\n                \"is_active\": true,\n                \"created_by\": \"system\",\n                \"updated_by\": \"system\",\n                \"created_at\": \"2024-09-03T02:09:53.950255Z\",\n                \"updated_at\": \"2024-09-03T02:09:53.950255Z\",\n                \"category_id\": \"2d8bd10a-0560-4e3f-91df-a4dd218a51d9\",\n                \"artisan_id\": \"576bc779-41e7-4fe9-8272-b6efb222e27b\"\n            },\n            {\n                \"id\": \"8a3ac32d-6141-4e7a-92a9-1d02c21a597c\",\n                \"name\": \"Bamboo Toothbrushes\",\n                \"price\": 3.5,\n                \"description\": \"Eco-friendly bamboo toothbrushes that help reduce plastic waste while maintaining oral hygiene.\",\n                \"quantity\": 122,\n                \"item_sold\": 0,\n                \"rating\": 0,\n                \"is_active\": true,\n                \"created_by\": \"system\",\n                \"updated_by\": \"system\",\n                \"created_at\": \"2024-09-03T02:10:18.194401Z\",\n                \"updated_at\": \"2024-09-03T02:10:18.194401Z\",\n                \"category_id\": \"2d8bd10a-0560-4e3f-91df-a4dd218a51d9\",\n                \"artisan_id\": \"64652f57-e0be-42a3-b5c6-87c26e402626\"\n            },\n            {\n                \"id\": \"3c0eb80f-8f24-48d3-bd18-dc68eb8458dc\",\n                \"name\": \"Bali Virgin Coconut Oil\",\n                \"price\": 12,\n                \"description\": \"Pure, cold-pressed virgin coconut oil from Bali, perfect for cooking, skincare, and hair care.\",\n                \"quantity\": 197,\n                \"item_sold\": 0,\n                \"rating\": 0,\n                \"is_active\": true,\n                \"created_by\": \"system\",\n                \"updated_by\": \"system\",\n                \"created_at\": \"2024-09-03T02:07:51.778466Z\",\n                \"updated_at\": \"2024-09-03T02:31:06.396286Z\",\n                \"category_id\": \"2d8bd10a-0560-4e3f-91df-a4dd218a51d9\",\n                \"artisan_id\": \"91ed1198-6103-41b2-bed6-a707634b5a45\"\n            }\n        ]\n    }\n}"},{"id":"37907c99-82b7-42bf-8726-2dc13d1e3397","name":"Error Response","originalRequest":{"method":"GET","header":[],"url":"http://localhost:3000/api/v1/user/4e542b4c-1785-4361-811d-3b8d90c6cbd2"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"code\": 500,\n        \"message\": \"Internal Server Error: record not found\"\n    },\n    {\n        \"code\": 401,\n        \"message\": \"Unauthorized token is expired or invalid\"\n    }\n]"}],"_postman_id":"ed413a24-465f-44ce-bf77-c09d8d1df614"},{"name":"CreateCategoryService","id":"454f753e-a647-4939-a9a7-d17fc520f150","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"Wood Carvings\",\r\n    \"image\": \"link-to-wood-carvings-image\",\r\n    \"created_by\": \"\",\r\n    \"is_active\": true\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/v1/category/create","urlObject":{"protocol":"http","port":"3000","path":["api","v1","category","create"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"3843f79f-621b-4af9-9114-a75dde9ff518","name":"Successful Response","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\":\"T-Shirt\",\r\n    \"image\":\"\",\r\n    \"created_by\":\"\",\r\n    \"is_active\": true\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/v1/category/create"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Allow-Headers","value":"Accept, Content-Type, Content-Length, Accept-Encoding, Authorization, X-CSRF-Token, credentials"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, DELETE, PUT, PATCH, OPTIONS, HEAD, TRACE"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:5173"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Wed, 07 Aug 2024 03:13:05 GMT"},{"key":"Content-Length","value":"283"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"message\": \"Success: Category Created\",\n    \"data\": {\n        \"id\": \"d2388f65-c45d-489c-83e0-83d629237db9\",\n        \"name\": \"Formal Clothes\",\n        \"image\": \"testing-image-links\",\n        \"isActive\": true,\n        \"createdBy\": \"system\",\n        \"updatedBy\": \"system\",\n        \"createdAt\": \"2024-08-27T22:42:17.147116+07:00\",\n        \"updatedAt\": \"2024-08-27T22:42:17.147116+07:00\",\n        \"products\": null\n    }\n}"},{"id":"c72d599c-6c29-4362-ae97-5ced22a6df70","name":"Error Response","originalRequest":{"method":"GET","header":[],"url":"http://localhost:3000/api/v1/user/4e542b4c-1785-4361-811d-3b8d90c6cbd2"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"code\": 500,\n        \"message\": \"Internal Server Error: record not found\"\n    },\n    {\n        \"code\": 401,\n        \"message\": \"Unauthorized token is expired or invalid\"\n    }\n]"}],"_postman_id":"454f753e-a647-4939-a9a7-d17fc520f150"},{"name":"UpdateCategoryService","id":"955e8aab-3850-43fa-86c1-1e77cff8ad76","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"id\": \"fcfb28a5-349b-4bcd-aa45-6633e8186e9b\",\r\n    \"name\": \"T-Shirts\",\r\n    \"image\": \"\",\r\n    \"updated_by\": \"\",\r\n    \"is_active\": true\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/v1/category/update","urlObject":{"protocol":"http","port":"3000","path":["api","v1","category","update"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"01f035f9-883f-4983-b3c0-ffb84b394588","name":"Successful Response","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"id\": \"78fd183d-e2db-4154-a1b2-fd332f85873c\",\r\n    \"name\": \"\",\r\n    \"image\": \"TestAPI12\",\r\n    \"updated_by\": \"\",\r\n    \"is_active\": true\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/v1/category/update"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Allow-Headers","value":"Accept, Content-Type, Content-Length, Accept-Encoding, Authorization, X-CSRF-Token, credentials"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, DELETE, PUT, PATCH, OPTIONS, HEAD, TRACE"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:5173"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Wed, 07 Aug 2024 03:13:57 GMT"},{"key":"Content-Length","value":"291"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"message\": \"Success: Category Updated\",\n    \"data\": {\n        \"id\": \"0495b3f1-417a-48d5-bb86-8eaeb0669f14\",\n        \"name\": \"Traditional Ceramics\",\n        \"image\": \"link-to-ceramics-image\",\n        \"isActive\": true,\n        \"createdBy\": \"system\",\n        \"updatedBy\": \"user\",\n        \"createdAt\": \"2024-09-03T02:01:56.199387+07:00\",\n        \"updatedAt\": \"2024-09-03T02:05:03.5148017+07:00\",\n        \"products\": []\n    }\n}"},{"id":"4e2fb9f1-9f67-4ab1-a137-d6994699c7bc","name":"Error Response","originalRequest":{"method":"GET","header":[],"url":"http://localhost:3000/api/v1/user/4e542b4c-1785-4361-811d-3b8d90c6cbd2"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"code\": 500,\n        \"message\": \"Internal Server Error: record not found\"\n    },\n    {\n        \"code\": 401,\n        \"message\": \"Unauthorized token is expired or invalid\"\n    }\n]"}],"_postman_id":"955e8aab-3850-43fa-86c1-1e77cff8ad76"},{"name":"DeleteCategoryService","id":"a3318318-a56c-401e-addf-bf10bafcb05a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"id\": \"0495b3f1-417a-48d5-bb86-8eaeb0669f14\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/v1/category/delete","urlObject":{"protocol":"http","port":"3000","path":["api","v1","category","delete"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"0b640c4d-0eb8-4e9d-8ab9-300da8248c27","name":"Successful Response","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"id\": \"0b500fde-f490-4133-ad9a-c5e290468638\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/v1/category/delete"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Allow-Headers","value":"Accept, Content-Type, Content-Length, Accept-Encoding, Authorization, X-CSRF-Token, credentials"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, DELETE, PUT, PATCH, OPTIONS, HEAD, TRACE"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:5173"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Wed, 07 Aug 2024 03:14:23 GMT"},{"key":"Content-Length","value":"298"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"message\": \"Success: Category Deleted\",\n    \"data\": {\n        \"id\": \"0495b3f1-417a-48d5-bb86-8eaeb0669f14\",\n        \"name\": \"Traditional Ceramics\",\n        \"image\": \"link-to-ceramics-image\",\n        \"isActive\": true,\n        \"createdBy\": \"system\",\n        \"updatedBy\": \"user\",\n        \"createdAt\": \"2024-09-03T02:01:56.199387+07:00\",\n        \"updatedAt\": \"2024-09-03T02:05:03.514801+07:00\",\n        \"products\": []\n    }\n}"},{"id":"d912b0f6-5e21-4b93-b038-72ed54ef5da9","name":"Error Response","originalRequest":{"method":"GET","header":[],"url":"http://localhost:3000/api/v1/user/4e542b4c-1785-4361-811d-3b8d90c6cbd2"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"code\": 500,\n        \"message\": \"Internal Server Error: record not found\"\n    },\n    {\n        \"code\": 401,\n        \"message\": \"Unauthorized token is expired or invalid\"\n    }\n]"}],"_postman_id":"a3318318-a56c-401e-addf-bf10bafcb05a"}],"id":"246013eb-4d29-4fd7-b119-7ec3e398f2a9","description":"<ol>\n<li><p>GetAllCategoriesService:</p>\n<ol>\n<li><p><strong>Functionality</strong>: Retrieves a list of all product categories available in the system.</p>\n</li>\n<li><p><strong>Implementation</strong>: Utilizes GORM queries to fetch category data, enabling pagination for efficient data handling.</p>\n</li>\n</ol>\n</li>\n<li><p><strong>GetCategoryService</strong>:</p>\n<ol>\n<li><p><strong>Functionality</strong>: Fetches details of a specific category based on its CategoryID.</p>\n</li>\n<li><p><strong>Implementation</strong>: Uses GORM queries to locate and return category data from the database.</p>\n</li>\n</ol>\n</li>\n<li><p><strong>CreateCategoryService</strong>:</p>\n<ol>\n<li><p><strong>Functionality</strong>: Handles the creation of a new category.</p>\n</li>\n<li><p><strong>Implementation</strong>: Adds a new category to the database, ensuring proper validation and storage of data.</p>\n</li>\n</ol>\n</li>\n<li><p><strong>UpdateCategoryService</strong>:</p>\n<ol>\n<li><p><strong>Functionality</strong>: Updates the information of an existing category.</p>\n</li>\n<li><p><strong>Implementation</strong>: Allows for modifications to category details such as name and image, ensuring that updates are saved in the database.</p>\n</li>\n</ol>\n</li>\n<li><p><strong>DeleteCategoryService</strong>:</p>\n<ol>\n<li><p><strong>Functionality</strong>: Deletes a category from the database.</p>\n</li>\n<li><p><strong>Implementation</strong>: Removes the category’s record, ensuring that it is no longer listed in the available options.</p>\n</li>\n</ol>\n</li>\n</ol>\n","_postman_id":"246013eb-4d29-4fd7-b119-7ec3e398f2a9"},{"name":"ProductService","item":[{"name":"GetAllProductService","id":"163f6bc3-23f4-4c0d-aaf6-2a5ca555fa30","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3000/api/v1/products?page=1&limit=10&order_by=id&order_type=asc","urlObject":{"protocol":"http","port":"3000","path":["api","v1","products"],"host":["localhost"],"query":[{"key":"page","value":"1"},{"key":"limit","value":"10"},{"key":"order_by","value":"id"},{"key":"order_type","value":"asc"}],"variable":[]}},"response":[{"id":"09818565-d175-400b-83ad-43ae6d167bf8","name":"Successful Response","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://localhost:3000/api/v1/products?page=1&limit=10&order_by=id&order_type=asc","protocol":"http","host":["localhost"],"port":"3000","path":["api","v1","products"],"query":[{"key":"page","value":"1"},{"key":"limit","value":"10"},{"key":"order_by","value":"id"},{"key":"order_type","value":"asc"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Allow-Headers","value":"Accept, Content-Type, Content-Length, Accept-Encoding, Authorization, X-CSRF-Token, credentials"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, DELETE, PUT, PATCH, OPTIONS, HEAD, TRACE"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:5173"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Sat, 10 Aug 2024 17:54:17 GMT"},{"key":"Content-Length","value":"981"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"message\": \"Success: Products Found\",\n    \"page\": 2,\n    \"limit\": 10,\n    \"order_by\": \"id\",\n    \"order_type\": \"asc\",\n    \"total_data\": 40,\n    \"total_take\": 0,\n    \"total_page\": 4,\n    \"data\": [\n        {\n            \"id\": \"3c5f6f77-c3e3-4c8b-bf55-a828d74cb982\",\n            \"name\": \"Wooden Wall Plaques\",\n            \"price\": 45.4,\n            \"description\": \"Decorative wooden wall plaques, featuring intricate carvings inspired by Indonesian culture.\",\n            \"quantity\": 212,\n            \"item_sold\": 0,\n            \"rating\": 0,\n            \"is_active\": true,\n            \"created_by\": \"system\",\n            \"updated_by\": \"system\",\n            \"created_at\": \"2024-09-03T02:22:24.551394Z\",\n            \"updated_at\": \"2024-09-03T02:22:24.551394Z\",\n            \"category_id\": \"b336e25a-3942-448b-a206-2dce0e5ccc94\",\n            \"artisan_id\": \"576bc779-41e7-4fe9-8272-b6efb222e27b\"\n        },\n        {\n            \"id\": \"3d945474-741e-45b8-90e1-88e90e693f0a\",\n            \"name\": \"Sasando Harp\",\n            \"price\": 165.6,\n            \"description\": \"A rare and beautiful Sasando harp, an iconic musical instrument from the island of Rote, Indonesia.\",\n            \"quantity\": 261,\n            \"item_sold\": 0,\n            \"rating\": 0,\n            \"is_active\": true,\n            \"created_by\": \"system\",\n            \"updated_by\": \"system\",\n            \"created_at\": \"2024-09-03T02:27:15.146559Z\",\n            \"updated_at\": \"2024-09-03T02:27:15.146559Z\",\n            \"category_id\": \"f8c0e6c8-5aaa-4259-8005-65f65422da6b\",\n            \"artisan_id\": \"64652f57-e0be-42a3-b5c6-87c26e402626\"\n        },\n        {\n            \"id\": \"42dc04a1-a54d-4174-be8d-f33098f77845\",\n            \"name\": \"Batik Scarf\",\n            \"price\": 15.25,\n            \"description\": \"Lightweight Batik scarf, ideal for adding a touch of Indonesian culture to any outfit.\",\n            \"quantity\": 124,\n            \"item_sold\": 0,\n            \"rating\": 0,\n            \"is_active\": true,\n            \"created_by\": \"system\",\n            \"updated_by\": \"system\",\n            \"created_at\": \"2024-09-03T02:11:26.303691Z\",\n            \"updated_at\": \"2024-09-03T02:11:26.303691Z\",\n            \"category_id\": \"39290c71-75a8-429f-b196-f3ed07f5c3a5\",\n            \"artisan_id\": \"413fb142-20fb-4295-8821-44a653348e65\"\n        },\n        {\n            \"id\": \"45ebbebc-0f7a-44ba-b09a-d2e03a21aaf8\",\n            \"name\": \"Batik Wall Hanging\",\n            \"price\": 46.25,\n            \"description\": \"Decorative Batik wall hanging, showcasing traditional motifs and vibrant colors.\",\n            \"quantity\": 202,\n            \"item_sold\": 0,\n            \"rating\": 0,\n            \"is_active\": true,\n            \"created_by\": \"system\",\n            \"updated_by\": \"system\",\n            \"created_at\": \"2024-09-03T02:12:10.75322Z\",\n            \"updated_at\": \"2024-09-03T02:12:10.75322Z\",\n            \"category_id\": \"39290c71-75a8-429f-b196-f3ed07f5c3a5\",\n            \"artisan_id\": \"576bc779-41e7-4fe9-8272-b6efb222e27b\"\n        },\n        {\n            \"id\": \"4f6e01fc-e8c5-4fd4-bc38-dd96acdb48e0\",\n            \"name\": \"Rattan Wall Mirror\",\n            \"price\": 40,\n            \"description\": \"A stylish rattan-framed wall mirror, adding a touch of natural beauty to any room.\",\n            \"quantity\": 25,\n            \"item_sold\": 0,\n            \"rating\": 0,\n            \"is_active\": true,\n            \"created_by\": \"system\",\n            \"updated_by\": \"system\",\n            \"created_at\": \"2024-09-03T02:13:21.209312Z\",\n            \"updated_at\": \"2024-09-03T02:13:21.209312Z\",\n            \"category_id\": \"3f04a238-0205-4cf7-8e3d-abef8a89c2ce\",\n            \"artisan_id\": \"91ed1198-6103-41b2-bed6-a707634b5a45\"\n        },\n        {\n            \"id\": \"5b05ca4d-4eb1-495c-b07b-3d539d917000\",\n            \"name\": \"Bamboo Lamp\",\n            \"price\": 55,\n            \"description\": \"A unique bamboo lamp that provides warm, ambient lighting, perfect for a cozy home atmosphere.\",\n            \"quantity\": 255,\n            \"item_sold\": 0,\n            \"rating\": 0,\n            \"is_active\": true,\n            \"created_by\": \"system\",\n            \"updated_by\": \"system\",\n            \"created_at\": \"2024-09-03T02:14:07.901015Z\",\n            \"updated_at\": \"2024-09-03T02:14:07.901015Z\",\n            \"category_id\": \"3f04a238-0205-4cf7-8e3d-abef8a89c2ce\",\n            \"artisan_id\": \"d2d60e32-3798-4755-802b-6dff742dc694\"\n        },\n        {\n            \"id\": \"6124af45-6302-4528-b1a6-3c3bea61a8d5\",\n            \"name\": \"Essential Oil Set\",\n            \"price\": 17.5,\n            \"description\": \"A set of essential oils sourced from Indonesian plants, ideal for aromatherapy and relaxation.\",\n            \"quantity\": 56,\n            \"item_sold\": 0,\n            \"rating\": 0,\n            \"is_active\": true,\n            \"created_by\": \"system\",\n            \"updated_by\": \"system\",\n            \"created_at\": \"2024-09-03T02:09:53.950255Z\",\n            \"updated_at\": \"2024-09-03T02:09:53.950255Z\",\n            \"category_id\": \"2d8bd10a-0560-4e3f-91df-a4dd218a51d9\",\n            \"artisan_id\": \"576bc779-41e7-4fe9-8272-b6efb222e27b\"\n        },\n        {\n            \"id\": \"61bed830-2332-44a4-8def-9e936594891d\",\n            \"name\": \"Bamboo Bangles\",\n            \"price\": 15.6,\n            \"description\": \"Eco-friendly bangles made from bamboo, combining fashion with sustainability.\",\n            \"quantity\": 123,\n            \"item_sold\": 0,\n            \"rating\": 0,\n            \"is_active\": true,\n            \"created_by\": \"system\",\n            \"updated_by\": \"system\",\n            \"created_at\": \"2024-09-03T02:24:39.174298Z\",\n            \"updated_at\": \"2024-09-03T02:24:39.174298Z\",\n            \"category_id\": \"d0896134-9b32-4c58-a790-a5acace33513\",\n            \"artisan_id\": \"576bc779-41e7-4fe9-8272-b6efb222e27b\"\n        },\n        {\n            \"id\": \"655970e0-c1af-4d99-b878-d571daefe60e\",\n            \"name\": \"Pearl Bracelet\",\n            \"price\": 35.6,\n            \"description\": \"A classic pearl bracelet, showcasing the natural beauty of Indonesian pearls.\",\n            \"quantity\": 32,\n            \"item_sold\": 0,\n            \"rating\": 0,\n            \"is_active\": true,\n            \"created_by\": \"system\",\n            \"updated_by\": \"system\",\n            \"created_at\": \"2024-09-03T02:24:15.933829Z\",\n            \"updated_at\": \"2024-09-03T02:24:15.933829Z\",\n            \"category_id\": \"d0896134-9b32-4c58-a790-a5acace33513\",\n            \"artisan_id\": \"91ed1198-6103-41b2-bed6-a707634b5a45\"\n        },\n        {\n            \"id\": \"73b466a2-e72e-455f-88bf-20317625d63a\",\n            \"name\": \"Herbal Teas\",\n            \"price\": 8,\n            \"description\": \"A selection of Indonesian herbal teas, handpicked and naturally dried for a refreshing experience.\",\n            \"quantity\": 122,\n            \"item_sold\": 0,\n            \"rating\": 0,\n            \"is_active\": true,\n            \"created_by\": \"system\",\n            \"updated_by\": \"system\",\n            \"created_at\": \"2024-09-03T02:08:22.611924Z\",\n            \"updated_at\": \"2024-09-03T02:08:22.611924Z\",\n            \"category_id\": \"2d8bd10a-0560-4e3f-91df-a4dd218a51d9\",\n            \"artisan_id\": \"413fb142-20fb-4295-8821-44a653348e65\"\n        }\n    ]\n}"}],"_postman_id":"163f6bc3-23f4-4c0d-aaf6-2a5ca555fa30"},{"name":"GetAllProductByArtisanService","id":"17c1d932-2784-4ebd-9f9e-53572a68a7b7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3000/api/v1/products/artisan/af3b1dbf-f36c-4f66-8a81-74f5a82dc7f2","urlObject":{"protocol":"http","port":"3000","path":["api","v1","products","artisan","af3b1dbf-f36c-4f66-8a81-74f5a82dc7f2"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"093caf37-a1ee-4210-b762-72360fb57b14","name":"Successful Response","originalRequest":{"method":"GET","header":[],"url":"http://localhost:3000/api/v1/products/artisan/cf12cdbb-a730-4a90-914c-543c01d283f2"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Allow-Headers","value":"Accept, Content-Type, Content-Length, Accept-Encoding, Authorization, X-CSRF-Token, credentials"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, DELETE, PUT, PATCH, OPTIONS, HEAD, TRACE"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:5173"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Tue, 13 Aug 2024 11:41:46 GMT"},{"key":"Content-Length","value":"889"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"message\": \"Success: Products Found\",\n    \"data\": [\n        {\n            \"id\": \"6124af45-6302-4528-b1a6-3c3bea61a8d5\",\n            \"name\": \"Essential Oil Set\",\n            \"price\": 17.5,\n            \"description\": \"A set of essential oils sourced from Indonesian plants, ideal for aromatherapy and relaxation.\",\n            \"quantity\": 56,\n            \"item_sold\": 0,\n            \"rating\": 0,\n            \"is_active\": true,\n            \"created_by\": \"system\",\n            \"updated_by\": \"system\",\n            \"created_at\": \"2024-09-03T02:09:53.950255Z\",\n            \"updated_at\": \"2024-09-03T02:09:53.950255Z\",\n            \"category_id\": \"2d8bd10a-0560-4e3f-91df-a4dd218a51d9\",\n            \"artisan_id\": \"576bc779-41e7-4fe9-8272-b6efb222e27b\"\n        },\n        {\n            \"id\": \"45ebbebc-0f7a-44ba-b09a-d2e03a21aaf8\",\n            \"name\": \"Batik Wall Hanging\",\n            \"price\": 46.25,\n            \"description\": \"Decorative Batik wall hanging, showcasing traditional motifs and vibrant colors.\",\n            \"quantity\": 202,\n            \"item_sold\": 0,\n            \"rating\": 0,\n            \"is_active\": true,\n            \"created_by\": \"system\",\n            \"updated_by\": \"system\",\n            \"created_at\": \"2024-09-03T02:12:10.75322Z\",\n            \"updated_at\": \"2024-09-03T02:12:10.75322Z\",\n            \"category_id\": \"39290c71-75a8-429f-b196-f3ed07f5c3a5\",\n            \"artisan_id\": \"576bc779-41e7-4fe9-8272-b6efb222e27b\"\n        },\n        {\n            \"id\": \"f1a764da-9b16-4b08-94cc-b97962573a7d\",\n            \"name\": \"Carved Wooden Wall Art\",\n            \"price\": 65,\n            \"description\": \"Hand-carved wooden wall art, featuring intricate designs inspired by Indonesian culture.\",\n            \"quantity\": 245,\n            \"item_sold\": 0,\n            \"rating\": 0,\n            \"is_active\": true,\n            \"created_by\": \"system\",\n            \"updated_by\": \"system\",\n            \"created_at\": \"2024-09-03T02:14:30.08065Z\",\n            \"updated_at\": \"2024-09-03T02:14:30.08065Z\",\n            \"category_id\": \"3f04a238-0205-4cf7-8e3d-abef8a89c2ce\",\n            \"artisan_id\": \"576bc779-41e7-4fe9-8272-b6efb222e27b\"\n        },\n        {\n            \"id\": \"b3e0e3d6-5f17-4b5a-ada1-3bbebb4bd4e0\",\n            \"name\": \"Embroidered Cushion Covers\",\n            \"price\": 15.4,\n            \"description\": \"Cushion covers with beautiful embroidery, adding elegance to any room\",\n            \"quantity\": 1225,\n            \"item_sold\": 0,\n            \"rating\": 0,\n            \"is_active\": true,\n            \"created_by\": \"system\",\n            \"updated_by\": \"system\",\n            \"created_at\": \"2024-09-03T02:19:40.266208Z\",\n            \"updated_at\": \"2024-09-03T02:19:40.266208Z\",\n            \"category_id\": \"6740272d-9c33-4152-ac84-dd371c02a4ff\",\n            \"artisan_id\": \"576bc779-41e7-4fe9-8272-b6efb222e27b\"\n        },\n        {\n            \"id\": \"3c5f6f77-c3e3-4c8b-bf55-a828d74cb982\",\n            \"name\": \"Wooden Wall Plaques\",\n            \"price\": 45.4,\n            \"description\": \"Decorative wooden wall plaques, featuring intricate carvings inspired by Indonesian culture.\",\n            \"quantity\": 212,\n            \"item_sold\": 0,\n            \"rating\": 0,\n            \"is_active\": true,\n            \"created_by\": \"system\",\n            \"updated_by\": \"system\",\n            \"created_at\": \"2024-09-03T02:22:24.551394Z\",\n            \"updated_at\": \"2024-09-03T02:22:24.551394Z\",\n            \"category_id\": \"b336e25a-3942-448b-a206-2dce0e5ccc94\",\n            \"artisan_id\": \"576bc779-41e7-4fe9-8272-b6efb222e27b\"\n        },\n        {\n            \"id\": \"61bed830-2332-44a4-8def-9e936594891d\",\n            \"name\": \"Bamboo Bangles\",\n            \"price\": 15.6,\n            \"description\": \"Eco-friendly bangles made from bamboo, combining fashion with sustainability.\",\n            \"quantity\": 123,\n            \"item_sold\": 0,\n            \"rating\": 0,\n            \"is_active\": true,\n            \"created_by\": \"system\",\n            \"updated_by\": \"system\",\n            \"created_at\": \"2024-09-03T02:24:39.174298Z\",\n            \"updated_at\": \"2024-09-03T02:24:39.174298Z\",\n            \"category_id\": \"d0896134-9b32-4c58-a790-a5acace33513\",\n            \"artisan_id\": \"576bc779-41e7-4fe9-8272-b6efb222e27b\"\n        },\n        {\n            \"id\": \"13efeda0-11ed-42c6-9b33-d98984993f87\",\n            \"name\": \"Kendang Drum\",\n            \"price\": 65.6,\n            \"description\": \"A traditional Indonesian drum, handcrafted from wood and leather, used in various cultural performances.\",\n            \"quantity\": 26,\n            \"item_sold\": 0,\n            \"rating\": 0,\n            \"is_active\": true,\n            \"created_by\": \"system\",\n            \"updated_by\": \"system\",\n            \"created_at\": \"2024-09-03T02:26:54.245895Z\",\n            \"updated_at\": \"2024-09-03T02:26:54.245895Z\",\n            \"category_id\": \"f8c0e6c8-5aaa-4259-8005-65f65422da6b\",\n            \"artisan_id\": \"576bc779-41e7-4fe9-8272-b6efb222e27b\"\n        }\n    ]\n}"}],"_postman_id":"17c1d932-2784-4ebd-9f9e-53572a68a7b7"},{"name":"GetAllProductByCategoryService","id":"603782ab-afd3-412d-abef-2f2d5b099a89","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3000/api/v1/products/category/d2388f65-c45d-489c-83e0-83d629237db9","urlObject":{"protocol":"http","port":"3000","path":["api","v1","products","category","d2388f65-c45d-489c-83e0-83d629237db9"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"81043cd4-e927-422b-be80-b513091cf044","name":"Successful Response","originalRequest":{"method":"GET","header":[],"url":"http://localhost:3000/api/v1/products/category/a5f53b18-6830-437a-9587-510b4aabae3d"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Allow-Headers","value":"Accept, Content-Type, Content-Length, Accept-Encoding, Authorization, X-CSRF-Token, credentials"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, DELETE, PUT, PATCH, OPTIONS, HEAD, TRACE"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:5173"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Tue, 13 Aug 2024 11:46:38 GMT"},{"key":"Content-Length","value":"889"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"message\": \"Success: Products Found\",\n    \"data\": [\n        {\n            \"id\": \"3c0eb80f-8f24-48d3-bd18-dc68eb8458dc\",\n            \"name\": \"Bali Virgin Coconut Oil\",\n            \"price\": 12,\n            \"description\": \"Pure, cold-pressed virgin coconut oil from Bali, perfect for cooking, skincare, and hair care.\",\n            \"quantity\": 200,\n            \"item_sold\": 0,\n            \"rating\": 0,\n            \"is_active\": true,\n            \"created_by\": \"system\",\n            \"updated_by\": \"system\",\n            \"created_at\": \"2024-09-03T02:07:51.778466Z\",\n            \"updated_at\": \"2024-09-03T02:07:51.778466Z\",\n            \"category_id\": \"2d8bd10a-0560-4e3f-91df-a4dd218a51d9\",\n            \"artisan_id\": \"91ed1198-6103-41b2-bed6-a707634b5a45\"\n        },\n        {\n            \"id\": \"73b466a2-e72e-455f-88bf-20317625d63a\",\n            \"name\": \"Herbal Teas\",\n            \"price\": 8,\n            \"description\": \"A selection of Indonesian herbal teas, handpicked and naturally dried for a refreshing experience.\",\n            \"quantity\": 122,\n            \"item_sold\": 0,\n            \"rating\": 0,\n            \"is_active\": true,\n            \"created_by\": \"system\",\n            \"updated_by\": \"system\",\n            \"created_at\": \"2024-09-03T02:08:22.611924Z\",\n            \"updated_at\": \"2024-09-03T02:08:22.611924Z\",\n            \"category_id\": \"2d8bd10a-0560-4e3f-91df-a4dd218a51d9\",\n            \"artisan_id\": \"413fb142-20fb-4295-8821-44a653348e65\"\n        },\n        {\n            \"id\": \"974fec14-707e-41e4-928b-7ae9b13c1ae3\",\n            \"name\": \"Handmade Soap Bars\",\n            \"price\": 5.5,\n            \"description\": \"Artisanal soap bars made with natural ingredients, offering a variety of scents and skin benefits.\",\n            \"quantity\": 50,\n            \"item_sold\": 0,\n            \"rating\": 0,\n            \"is_active\": true,\n            \"created_by\": \"system\",\n            \"updated_by\": \"system\",\n            \"created_at\": \"2024-09-03T02:09:22.412193Z\",\n            \"updated_at\": \"2024-09-03T02:09:22.412193Z\",\n            \"category_id\": \"2d8bd10a-0560-4e3f-91df-a4dd218a51d9\",\n            \"artisan_id\": \"413fb142-20fb-4295-8821-44a653348e65\"\n        },\n        {\n            \"id\": \"6124af45-6302-4528-b1a6-3c3bea61a8d5\",\n            \"name\": \"Essential Oil Set\",\n            \"price\": 17.5,\n            \"description\": \"A set of essential oils sourced from Indonesian plants, ideal for aromatherapy and relaxation.\",\n            \"quantity\": 56,\n            \"item_sold\": 0,\n            \"rating\": 0,\n            \"is_active\": true,\n            \"created_by\": \"system\",\n            \"updated_by\": \"system\",\n            \"created_at\": \"2024-09-03T02:09:53.950255Z\",\n            \"updated_at\": \"2024-09-03T02:09:53.950255Z\",\n            \"category_id\": \"2d8bd10a-0560-4e3f-91df-a4dd218a51d9\",\n            \"artisan_id\": \"576bc779-41e7-4fe9-8272-b6efb222e27b\"\n        },\n        {\n            \"id\": \"8a3ac32d-6141-4e7a-92a9-1d02c21a597c\",\n            \"name\": \"Bamboo Toothbrushes\",\n            \"price\": 3.5,\n            \"description\": \"Eco-friendly bamboo toothbrushes that help reduce plastic waste while maintaining oral hygiene.\",\n            \"quantity\": 122,\n            \"item_sold\": 0,\n            \"rating\": 0,\n            \"is_active\": true,\n            \"created_by\": \"system\",\n            \"updated_by\": \"system\",\n            \"created_at\": \"2024-09-03T02:10:18.194401Z\",\n            \"updated_at\": \"2024-09-03T02:10:18.194401Z\",\n            \"category_id\": \"2d8bd10a-0560-4e3f-91df-a4dd218a51d9\",\n            \"artisan_id\": \"64652f57-e0be-42a3-b5c6-87c26e402626\"\n        }\n    ]\n}"}],"_postman_id":"603782ab-afd3-412d-abef-2f2d5b099a89"},{"name":"GetProductService","id":"a5243feb-a305-4148-aa44-89e2e4702b13","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3000/api/v1/product/25c96e10-5e1e-4955-bd14-95e99e74975f","urlObject":{"protocol":"http","port":"3000","path":["api","v1","product","25c96e10-5e1e-4955-bd14-95e99e74975f"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"82976270-9a21-47fb-ad84-0757dd1fd118","name":"Successful Response","originalRequest":{"method":"GET","header":[],"url":"http://localhost:3000/api/v1/product/25c96e10-5e1e-4955-bd14-95e99e74975f"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Allow-Headers","value":"Accept, Content-Type, Content-Length, Accept-Encoding, Authorization, X-CSRF-Token, credentials"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, DELETE, PUT, PATCH, OPTIONS, HEAD, TRACE"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:5173"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Sat, 10 Aug 2024 17:53:59 GMT"},{"key":"Content-Length","value":"493"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"message\": \"Success: Product Found\",\n    \"data\": {\n        \"id\": \"0037485d-0827-45a3-8840-3b25d15a91db\",\n        \"name\": \"Batik Pendant Necklace\",\n        \"price\": 28.6,\n        \"description\": \"A unique pendant necklace featuring Batik fabric encased in resin, a blend of tradition and modernity.\",\n        \"quantity\": 63,\n        \"item_sold\": 0,\n        \"rating\": 0,\n        \"is_active\": true,\n        \"created_by\": \"system\",\n        \"updated_by\": \"system\",\n        \"created_at\": \"2024-09-03T02:25:10.345257Z\",\n        \"updated_at\": \"2024-09-03T02:25:10.345257Z\",\n        \"category_id\": \"d0896134-9b32-4c58-a790-a5acace33513\",\n        \"artisan_id\": \"64652f57-e0be-42a3-b5c6-87c26e402626\"\n    }\n}"}],"_postman_id":"a5243feb-a305-4148-aa44-89e2e4702b13"},{"name":"CreateProductService","id":"dc4053c2-a3ac-4ce6-a6ee-e84bd4e9e067","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"artisan_id\": \"64652f57-e0be-42a3-b5c6-87c26e402626\",\r\n    \"category_id\": \"f8c0e6c8-5aaa-4259-8005-65f65422da6b\",\r\n    \"name\": \"Sasando Harp\",\r\n    \"price\": 165.60,\r\n    \"description\": \"A rare and beautiful Sasando harp, an iconic musical instrument from the island of Rote, Indonesia.\",\r\n    \"quantity\": 261,\r\n    \"created_by\": \"\",\r\n    \"is_active\": true\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/v1/product/create","urlObject":{"protocol":"http","port":"3000","path":["api","v1","product","create"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"e3068e63-0e18-4c07-80f6-5081c1066b40","name":"Successful Response","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"Korean Toner\",\r\n    \"price\": 30000,\r\n    \"description\": \"Toner Made in Korea\",\r\n    \"quantity\": 200,\r\n    \"category_id\": \"78fd183d-e2db-4154-a1b2-fd332f85873c\",\r\n    \"artisan_id\": \"13432655-d3f6-4bcf-87e4-601e6b7418b2\",\r\n    \"created_by\": \"\",\r\n    \"is_active\": true\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/v1/product/create"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Allow-Headers","value":"Accept, Content-Type, Content-Length, Accept-Encoding, Authorization, X-CSRF-Token, credentials"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, DELETE, PUT, PATCH, OPTIONS, HEAD, TRACE"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:5173"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Fri, 09 Aug 2024 14:21:00 GMT"},{"key":"Content-Length","value":"1218"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"message\": \"Success: Product Created\",\n    \"data\": {\n        \"id\": \"8a3ac32d-6141-4e7a-92a9-1d02c21a597c\",\n        \"name\": \"Bamboo Toothbrushes\",\n        \"price\": 3.5,\n        \"description\": \"Eco-friendly bamboo toothbrushes that help reduce plastic waste while maintaining oral hygiene.\",\n        \"quantity\": 122,\n        \"item_sold\": 0,\n        \"rating\": 0,\n        \"is_active\": true,\n        \"created_by\": \"system\",\n        \"updated_by\": \"system\",\n        \"created_at\": \"2024-09-03T02:10:18.194401Z\",\n        \"updated_at\": \"2024-09-03T02:10:18.194401Z\",\n        \"category_id\": \"2d8bd10a-0560-4e3f-91df-a4dd218a51d9\",\n        \"artisan_id\": \"64652f57-e0be-42a3-b5c6-87c26e402626\"\n    }\n}"}],"_postman_id":"dc4053c2-a3ac-4ce6-a6ee-e84bd4e9e067"},{"name":"UpdateProductService","id":"fb2dae5c-9f5c-4e43-b226-cb3c758814bd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"id\": \"1bd8cd7d-168a-4132-9fc6-e9968b1d8fbc\",\r\n    \"category_id\": \"d2388f65-c45d-489c-83e0-83d629237db9\",\r\n    \"name\": \"Traditional Handcrafted Batik for Men\",\r\n    \"price\": 120000,\r\n    \"description\": \"\",\r\n    \"quantity\": 0,\r\n    \"updated_by\": \"\",\r\n    \"is_active\": true\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/v1/product/update","urlObject":{"protocol":"http","port":"3000","path":["api","v1","product","update"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"3b07ee91-e35a-41dc-9635-5c65f1832189","name":"Successful Response","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"id\": \"25c96e10-5e1e-4955-bd14-95e99e74975f\",\r\n    \"category_id\": \"a5f53b18-6830-437a-9587-510b4aabae3d\",\r\n    \"name\": \"\",\r\n    \"price\": 0,\r\n    \"description\": \"\",\r\n    \"quantity\": 0,\r\n    \"updated_by\": \"\",\r\n    \"is_active\": true\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/v1/product/update"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Allow-Headers","value":"Accept, Content-Type, Content-Length, Accept-Encoding, Authorization, X-CSRF-Token, credentials"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, DELETE, PUT, PATCH, OPTIONS, HEAD, TRACE"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:5173"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Sat, 10 Aug 2024 17:56:26 GMT"},{"key":"Content-Length","value":"468"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"message\": \"Success: Product Updated\",\n    \"data\": {\n        \"id\": \"0037485d-0827-45a3-8840-3b25d15a91db\",\n        \"name\": \"Batik Pendant Necklace\",\n        \"price\": 30,\n        \"description\": \"A unique pendant necklace featuring Batik fabric encased in resin, a blend of tradition and modernity.\",\n        \"quantity\": 52,\n        \"item_sold\": 0,\n        \"rating\": 0,\n        \"is_active\": true,\n        \"created_by\": \"system\",\n        \"updated_by\": \"user\",\n        \"created_at\": \"2024-09-03T02:25:10.345257Z\",\n        \"updated_at\": \"2024-09-03T02:29:55.8569545+07:00\",\n        \"category_id\": \"d0896134-9b32-4c58-a790-a5acace33513\",\n        \"artisan_id\": \"64652f57-e0be-42a3-b5c6-87c26e402626\"\n    }\n}"}],"_postman_id":"fb2dae5c-9f5c-4e43-b226-cb3c758814bd"},{"name":"DeleteProductService","id":"517d6b1c-f243-4ab2-8e02-64e79ec159e5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"id\" :\"18cfa56d-35d4-439b-90ff-2ca591aacbf9\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/v1/product/delete","urlObject":{"protocol":"http","port":"3000","path":["api","v1","product","delete"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"94125826-6c73-4bc9-aaec-b7d330b1dba4","name":"Successful Response","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"id\" :\"9f708f01-c4a7-48f5-8f58-feb15be2d355\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/v1/product/delete"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Allow-Headers","value":"Accept, Content-Type, Content-Length, Accept-Encoding, Authorization, X-CSRF-Token, credentials"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, DELETE, PUT, PATCH, OPTIONS, HEAD, TRACE"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:5173"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Sat, 10 Aug 2024 17:56:53 GMT"},{"key":"Content-Length","value":"470"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"message\": \"Success: Product Deleted\",\n    \"data\": {\n        \"id\": \"3d945474-741e-45b8-90e1-88e90e693f0a\",\n        \"name\": \"Sasando Harp\",\n        \"price\": 165.6,\n        \"description\": \"A rare and beautiful Sasando harp, an iconic musical instrument from the island of Rote, Indonesia.\",\n        \"quantity\": 261,\n        \"item_sold\": 0,\n        \"rating\": 0,\n        \"is_active\": true,\n        \"created_by\": \"system\",\n        \"updated_by\": \"system\",\n        \"created_at\": \"2024-09-03T02:27:15.146559Z\",\n        \"updated_at\": \"2024-09-03T02:27:15.146559Z\",\n        \"category_id\": \"f8c0e6c8-5aaa-4259-8005-65f65422da6b\",\n        \"artisan_id\": \"64652f57-e0be-42a3-b5c6-87c26e402626\"\n    }\n}"}],"_postman_id":"517d6b1c-f243-4ab2-8e02-64e79ec159e5"},{"name":"AddProductToCartService","id":"222d5699-8582-422c-8eba-bed8a97090dd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"id\": \"037c4188-25aa-4dbc-8fb1-80a89a45e171\",\r\n    \"cart_id\": \"d7cab33c-5a80-48d3-b86a-1df404c5d235\", // kosongin kalo mau buat cart baru\r\n    \"quantity\": 5,\r\n    \"is_active\": true,\r\n    \"created_by\": \"\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/v1/product/add-to-cart","urlObject":{"protocol":"http","port":"3000","path":["api","v1","product","add-to-cart"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"f9d3703d-2a28-4ad4-a938-ece2171c7c15","name":"Successful Response (Version 1)","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"id\": \"1bd8cd7d-168a-4132-9fc6-e9968b1d8fbc\",\r\n    \"cart_id\": \"\", // kosongin kalo mau buat cart baru\r\n    \"quantity\": 2,\r\n    \"is_active\": true,\r\n    \"created_by\": \"\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/v1/product/add-to-cart"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Allow-Headers","value":"Accept, Content-Type, Content-Length, Accept-Encoding, Authorization, X-CSRF-Token, credentials"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, DELETE, PUT, PATCH, OPTIONS, HEAD, TRACE"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:5173"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Tue, 27 Aug 2024 15:55:22 GMT"},{"key":"Content-Length","value":"678"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"message\": \"Success: Product Added to Cart\",\n    \"data\": {\n        \"id\": \"00c245c4-def7-40b5-b593-bebb82bc0dd2\",\n        \"user_id\": \"3e02b850-f9e3-4036-87ed-9803978ea847\",\n        \"is_active\": true,\n        \"created_by\": \"system\",\n        \"updated_by\": \"system\",\n        \"created_at\": \"2024-08-31T02:52:33.804296+07:00\",\n        \"updated_at\": \"2024-08-31T02:52:33.804296+07:00\",\n        \"cart_informations\": [\n            {\n                \"id\": \"5a6eb763-940d-4c94-9516-1324e76ec0fc\",\n                \"cartID\": \"00c245c4-def7-40b5-b593-bebb82bc0dd2\",\n                \"productID\": \"51ac6a02-22cd-4666-a08b-37027ea46ed2\",\n                \"quantity\": 5,\n                \"priceAtOrder\": 30000,\n                \"isActive\": true,\n                \"createdBy\": \"system\",\n                \"updatedBy\": \"system\",\n                \"createdAt\": \"2024-08-31T02:52:33.816876Z\",\n                \"updatedAt\": \"2024-08-31T02:52:33.816876Z\"\n            }\n        ]\n    }\n}"},{"id":"946eed89-8827-4961-ae8e-ddde72286f07","name":"Successful Response (Version 2)","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"id\": \"1bd8cd7d-168a-4132-9fc6-e9968b1d8fbc\",\r\n    \"cart_id\": \"bfa4b02f-492a-4122-8a00-c2635a964018\", // kosongin kalo mau buat cart baru\r\n    \"quantity\": 2,\r\n    \"is_active\": true,\r\n    \"created_by\": \"\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/v1/product/add-to-cart"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"message\": \"Success: Product Added to Cart\",\n    \"data\": {\n        \"id\": \"fb3c211e-012d-4aed-a97e-7200b394dc9d\",\n        \"user_id\": \"d5e34629-99e0-40ac-8113-89a82316f63d\",\n        \"is_active\": true,\n        \"created_by\": \"system\",\n        \"updated_by\": \"system\",\n        \"created_at\": \"2024-09-03T02:30:39.169236+07:00\",\n        \"updated_at\": \"2024-09-03T02:30:39.169236+07:00\",\n        \"cart_informations\": [\n            {\n                \"id\": \"efe489fc-e010-4bb1-8d85-c9a50dcd63fa\",\n                \"cartID\": \"fb3c211e-012d-4aed-a97e-7200b394dc9d\",\n                \"productID\": \"e809f59f-e3a9-44ab-a475-7898fb3cb8f8\",\n                \"quantity\": 8,\n                \"priceAtOrder\": 48.6,\n                \"isActive\": true,\n                \"createdBy\": \"system\",\n                \"updatedBy\": \"system\",\n                \"createdAt\": \"2024-09-03T02:30:39.18325Z\",\n                \"updatedAt\": \"2024-09-03T02:30:39.18325Z\"\n            }\n        ]\n    }\n}"}],"_postman_id":"222d5699-8582-422c-8eba-bed8a97090dd"},{"name":"CheckOutProductService","id":"1001203e-f1d0-4fb6-aa42-f03e109bf505","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"id\": \"c636d485-2249-44ca-8ea4-cdb6ad53858d\",\r\n    \"quantity\": 32,\r\n    \"is_active\": true,\r\n    \"created_by\": \"\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/v1/product/checkout","urlObject":{"protocol":"http","port":"3000","path":["api","v1","product","checkout"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"9fc47680-eb4e-4075-9533-e8eeb6ac9b4f","name":"Successful Response","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"id\": \"1bd8cd7d-168a-4132-9fc6-e9968b1d8fbc\",\r\n    \"quantity\": 5,\r\n    \"is_active\": true,\r\n    \"created_by\": \"\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/v1/product/checkout"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Allow-Headers","value":"Accept, Content-Type, Content-Length, Accept-Encoding, Authorization, X-CSRF-Token, credentials"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, DELETE, PUT, PATCH, OPTIONS, HEAD, TRACE"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:5173"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Fri, 30 Aug 2024 20:41:46 GMT"},{"key":"Content-Length","value":"744"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"message\": \"Success: Product Checked Out\",\n    \"data\": {\n        \"id\": \"1692eb08-bc78-46e2-83fd-59a8b8ff111c\",\n        \"user_id\": \"d5e34629-99e0-40ac-8113-89a82316f63d\",\n        \"status\": \"Waiting for Payment\",\n        \"total_price\": 36,\n        \"shipping_address\": \"Jl Ancol Selatan 2\",\n        \"payment_method\": \"Bank Transfer\",\n        \"is_active\": true,\n        \"created_by\": \"system\",\n        \"updated_by\": \"system\",\n        \"created_at\": \"2024-09-03T02:31:06.406824Z\",\n        \"updated_at\": \"2024-09-03T02:31:06.406824Z\",\n        \"order_items\": [\n            {\n                \"id\": \"b245c45a-51d5-4e4a-98a2-5b255653931f\",\n                \"product_id\": \"3c0eb80f-8f24-48d3-bd18-dc68eb8458dc\",\n                \"order_id\": \"1692eb08-bc78-46e2-83fd-59a8b8ff111c\",\n                \"quantity\": 3,\n                \"price_at_order\": 12,\n                \"is_active\": true,\n                \"created_by\": \"system\",\n                \"updated_by\": \"system\",\n                \"created_at\": \"2024-09-03T02:31:06.409207Z\",\n                \"updated_at\": \"2024-09-03T02:31:06.409207Z\"\n            }\n        ]\n    }\n}"}],"_postman_id":"1001203e-f1d0-4fb6-aa42-f03e109bf505"}],"id":"ee727609-9b14-4067-a3f4-ae7bce4516e3","description":"<ol>\n<li><p><strong>GetAllProductService</strong>:</p>\n<ol>\n<li><p><strong>Functionality</strong>: Retrieves a list of all products available in the system.</p>\n</li>\n<li><p><strong>Implementation</strong>: Uses GORM queries with pagination support to manage large datasets of products.</p>\n</li>\n</ol>\n</li>\n<li><p><strong>GetProductByArtisanService</strong>:</p>\n<ol>\n<li><p><strong>Functionality</strong>: Fetches all products created by a specific artisan.</p>\n</li>\n<li><p><strong>Implementation</strong>: Utilizes GORM to query products by ArtisanID, ensuring correct data retrieval.</p>\n</li>\n</ol>\n</li>\n<li><p><strong>GetProductByCategoryService</strong>:</p>\n<ol>\n<li><p><strong>Functionality:</strong> Fetches all products belonging to a specific category.</p>\n</li>\n<li><p><strong>Implementation:</strong> Uses GORM queries to filter products based on CategoryID.</p>\n</li>\n</ol>\n</li>\n<li><p><strong>GetProductService</strong>:</p>\n<ol>\n<li><p><strong>Functionality</strong>: Retrieves detailed information about a specific product using its ProductID.</p>\n</li>\n<li><p><strong>Implementation</strong>: Uses GORM to accurately retrieve and display product details from the database.</p>\n</li>\n</ol>\n</li>\n<li><p><strong>CreateProductService</strong>:</p>\n<ol>\n<li><p><strong>Functionality</strong>: Handles the addition of a new product to the system.</p>\n</li>\n<li><p><strong>Implementation</strong>: Validates product data and stores the new product in the database.</p>\n</li>\n</ol>\n</li>\n<li><p><strong>UpdateProductService</strong>:</p>\n<ol>\n<li><p><strong>Functionality:</strong> Updates details of an existing product.</p>\n</li>\n<li><p><strong>Implementation</strong>: Allows product details such as name, price, quantity and description to be modified and stored in the database.</p>\n</li>\n</ol>\n</li>\n<li><p><strong>DeleteProductService</strong>:</p>\n<ol>\n<li><p><strong>Functionality:</strong> Removes a product from the database.</p>\n</li>\n<li><p><strong>Implementation:</strong> Ensures that the product is no longer available in the system by deleting its record.</p>\n</li>\n</ol>\n</li>\n<li><p><strong>CheckOutProductService:</strong></p>\n<ol>\n<li><p><strong>Functionality:</strong> Handles the checkout process for selected products.</p>\n</li>\n<li><p><strong>Implementation:</strong> Manages the checkout flow, including inventory updates and order creation.</p>\n</li>\n</ol>\n</li>\n</ol>\n","_postman_id":"ee727609-9b14-4067-a3f4-ae7bce4516e3"},{"name":"PromoService","item":[{"name":"GetAllPromosService","id":"56ff954a-c14e-4dad-882c-1a4102dae311","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3000/api/v1/promos?page=1&limit=10&order_by=id&order_type=asc","urlObject":{"protocol":"http","port":"3000","path":["api","v1","promos"],"host":["localhost"],"query":[{"key":"page","value":"1"},{"key":"limit","value":"10"},{"key":"order_by","value":"id"},{"key":"order_type","value":"asc"}],"variable":[]}},"response":[{"id":"2b4b28fb-9749-4cde-a21a-8fa01946039a","name":"Successful Response","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://localhost:3000/api/v1/promos?page=1&limit=10&order_by=id&order_type=asc","protocol":"http","host":["localhost"],"port":"3000","path":["api","v1","promos"],"query":[{"key":"page","value":"1"},{"key":"limit","value":"10"},{"key":"order_by","value":"id"},{"key":"order_type","value":"asc"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Allow-Headers","value":"Accept, Content-Type, Content-Length, Accept-Encoding, Authorization, X-CSRF-Token, credentials"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, DELETE, PUT, PATCH, OPTIONS, HEAD, TRACE"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:5173"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Tue, 13 Aug 2024 12:46:25 GMT"},{"key":"Content-Length","value":"41"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"message\": \"Success\",\n    \"page\": 1,\n    \"limit\": 10,\n    \"order_by\": \"id\",\n    \"order_type\": \"asc\",\n    \"total_data\": 2,\n    \"total_take\": 2,\n    \"total_page\": 1,\n    \"data\": [\n        {\n            \"id\": \"1a039643-8084-46e1-829d-2bfab094d10d\",\n            \"product_id\": \"9dcd68fe-de43-4cb0-a8e9-0fe084e54f0e\",\n            \"name\": \"Happy 17 Agustus Voucher Promos!\",\n            \"description\": \"Promo 17 Agustus Discount 170000 setiap belanja diatas 50.000 rupiah\",\n            \"promo_discount\": 17000,\n            \"is_active\": true,\n            \"created_by\": \"system\",\n            \"updated_by\": \"system\",\n            \"created_at\": \"2024-08-27T23:34:22.478084Z\",\n            \"updated_at\": \"2024-08-27T23:34:22.478084Z\"\n        },\n        {\n            \"id\": \"40ad2374-71c7-44cf-9fb2-2ca9fddbabbd\",\n            \"product_id\": \"1bd8cd7d-168a-4132-9fc6-e9968b1d8fbc\",\n            \"name\": \"Happy 17 Agustus Voucher Promos!\",\n            \"description\": \"Promo 17 Agustus Discount 17777 setiap belanja 50.000 rupiah\",\n            \"promo_discount\": 17777,\n            \"is_active\": true,\n            \"created_by\": \"system\",\n            \"updated_by\": \"\",\n            \"created_at\": \"2024-08-27T23:23:46.209905Z\",\n            \"updated_at\": \"2024-08-27T23:33:34.345181Z\"\n        }\n    ]\n}"}],"_postman_id":"56ff954a-c14e-4dad-882c-1a4102dae311"},{"name":"GetAllPromoByProductIDService","id":"4508e362-df3d-47b9-9c6d-848e2a380c17","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3000/api/v1/promos/product/9dcd68fe-de43-4cb0-a8e9-0fe084e54f0e","urlObject":{"protocol":"http","port":"3000","path":["api","v1","promos","product","9dcd68fe-de43-4cb0-a8e9-0fe084e54f0e"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"e04efc2a-e1ff-4156-9788-1abafd101b0f","name":"Successful Response","originalRequest":{"method":"GET","header":[],"url":"http://localhost:3000/api/v1/promos/product/33bcaf9a-bea8-4aed-8435-d451259e0656"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Allow-Headers","value":"Accept, Content-Type, Content-Length, Accept-Encoding, Authorization, X-CSRF-Token, credentials"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, DELETE, PUT, PATCH, OPTIONS, HEAD, TRACE"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:5173"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Tue, 13 Aug 2024 12:47:34 GMT"},{"key":"Content-Length","value":"41"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"message\": \"Success\",\n    \"data\": [\n        {\n            \"id\": \"1a039643-8084-46e1-829d-2bfab094d10d\",\n            \"product_id\": \"9dcd68fe-de43-4cb0-a8e9-0fe084e54f0e\",\n            \"name\": \"Happy 17 Agustus Voucher Promos!\",\n            \"description\": \"Promo 17 Agustus Discount 170000 setiap belanja diatas 50.000 rupiah\",\n            \"promo_discount\": 17000,\n            \"is_active\": true,\n            \"created_by\": \"system\",\n            \"updated_by\": \"system\",\n            \"created_at\": \"2024-08-27T23:34:22.478084Z\",\n            \"updated_at\": \"2024-08-27T23:34:22.478084Z\"\n        },\n        {\n            \"id\": \"bf55cebf-31d1-462e-9ab1-7ff82d4e4fec\",\n            \"product_id\": \"9dcd68fe-de43-4cb0-a8e9-0fe084e54f0e\",\n            \"name\": \"Discount Spesial 10.000 Rupiah!\",\n            \"description\": \"Discount Spesial 10.000 Rupiah setiap belanja diatas 50.000 rupiah\",\n            \"promo_discount\": 10000,\n            \"is_active\": true,\n            \"created_by\": \"system\",\n            \"updated_by\": \"system\",\n            \"created_at\": \"2024-08-27T23:35:38.097362Z\",\n            \"updated_at\": \"2024-08-27T23:35:38.097362Z\"\n        }\n    ]\n}"}],"_postman_id":"4508e362-df3d-47b9-9c6d-848e2a380c17"},{"name":"GetPromoService","id":"fb24297d-c428-4696-835c-74e871ab4918","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3000/api/v1/promo/1cebcd4f-0a52-4a01-888c-38fd375113fe","urlObject":{"protocol":"http","port":"3000","path":["api","v1","promo","1cebcd4f-0a52-4a01-888c-38fd375113fe"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"56f5cff7-0430-44e7-a5b6-e3de15bcf64a","name":"Successful Response","originalRequest":{"method":"GET","header":[],"url":"http://localhost:3000/api/v1/promo/113493e9-2a73-462c-ab30-677ce8ee99ad"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Allow-Headers","value":"Accept, Content-Type, Content-Length, Accept-Encoding, Authorization, X-CSRF-Token, credentials"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, DELETE, PUT, PATCH, OPTIONS, HEAD, TRACE"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:5173"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Tue, 13 Aug 2024 12:50:32 GMT"},{"key":"Content-Length","value":"429"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"message\": \"Success\",\n    \"data\": {\n        \"id\": \"1cebcd4f-0a52-4a01-888c-38fd375113fe\",\n        \"product_id\": \"33bcaf9a-bea8-4aed-8435-d451259e0656\",\n        \"name\": \"Happy 10 November Voucher Promos!\",\n        \"description\": \"Promo 10 November Discount 100.000 setiap belanja 1 juta rupiah\",\n        \"promo_discount\": 100000,\n        \"is_active\": true,\n        \"created_by\": \"system\",\n        \"updated_by\": \"system\",\n        \"created_at\": \"2024-08-13T20:03:03.344409Z\",\n        \"updated_at\": \"2024-08-13T20:03:03.344409Z\"\n    }\n}"}],"_postman_id":"fb24297d-c428-4696-835c-74e871ab4918"},{"name":"CreatePromoService","id":"52ce1994-a165-4f09-b8fd-2401eed5ea9c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"product_id\": \"9dcd68fe-de43-4cb0-a8e9-0fe084e54f0e\",\r\n    \"name\": \"Discount Spesial 10.000 Rupiah!\",\r\n    \"description\": \"Discount Spesial 10.000 Rupiah setiap belanja diatas 50.000 rupiah\",\r\n    \"promo_discount\": 10000,\r\n    \"created_by\": \"\",\r\n    \"is_active\": true\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/v1/promo/create","urlObject":{"protocol":"http","port":"3000","path":["api","v1","promo","create"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"e239089a-c8f4-4e6b-b303-d4b0f6ff1889","name":"Successful Response","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"product_id\": \"33bcaf9a-bea8-4aed-8435-d451259e0656\",\r\n    \"name\": \"Happy 17 Agustus Voucher Promos!\",\r\n    \"description\": \"Promo 17 Agustus Discount 200.000 setiap belanja 1 juta rupiah\",\r\n    \"promo_discount\": 200000,\r\n    \"created_by\": \"\",\r\n    \"is_active\": true\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/v1/promo/create"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Allow-Headers","value":"Accept, Content-Type, Content-Length, Accept-Encoding, Authorization, X-CSRF-Token, credentials"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, DELETE, PUT, PATCH, OPTIONS, HEAD, TRACE"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:5173"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Tue, 13 Aug 2024 12:50:01 GMT"},{"key":"Content-Length","value":"429"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"message\": \"Success\",\n    \"data\": {\n        \"id\": \"d29f8245-294f-41de-a690-d823b5e0af95\",\n        \"product_id\": \"61bed830-2332-44a4-8def-9e936594891d\",\n        \"name\": \"Special Discount for Indonesian cultural!\",\n        \"description\": \"Get Discount for more than 10$!\",\n        \"promo_discount\": 10,\n        \"is_active\": true,\n        \"created_by\": \"system\",\n        \"updated_by\": \"system\",\n        \"created_at\": \"2024-09-03T02:32:05.402622Z\",\n        \"updated_at\": \"2024-09-03T02:32:05.402622Z\"\n    }\n}"}],"_postman_id":"52ce1994-a165-4f09-b8fd-2401eed5ea9c"},{"name":"UpdatePromoService","id":"1d875d78-3b3a-4b7d-8406-ca637d97b80c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"id\": \"5d11c93e-46e6-4c45-8f21-427cfa1f28b4\",\r\n    \"product_id\": \"1ff41e7f-1f01-4ce7-bc2c-0118aa4cef44\",\r\n    \"name\": \"Happy 17 Agustus Voucher Promos!\",\r\n    \"description\": \"Promo 17 Agustus Discount 17777 setiap belanja 50.000 rupiah\",\r\n    \"promo_discount\": 17777,\r\n    \"updated_by\": \"\",\r\n    \"is_active\": true\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/v1/promo/update","urlObject":{"protocol":"http","port":"3000","path":["api","v1","promo","update"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"ec4664ba-bd67-457e-bb8e-999451ef4947","name":"Successful Response","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"id\": \"8dc09fa3-0678-4ec6-8ff4-96763c956dab\",\r\n    // \"product_id\": \"\",\r\n    \"name\": \"\",\r\n    \"description\": \"\",\r\n    \"promo_discount\": 0,\r\n    \"updated_by\": \"\",\r\n    \"is_active\": true\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/v1/promo/update"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Allow-Headers","value":"Accept, Content-Type, Content-Length, Accept-Encoding, Authorization, X-CSRF-Token, credentials"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, DELETE, PUT, PATCH, OPTIONS, HEAD, TRACE"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:5173"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Tue, 13 Aug 2024 12:54:54 GMT"},{"key":"Content-Length","value":"429"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"message\": \"Success Update\",\n    \"data\": {\n        \"id\": \"2a21df88-cf83-4f08-8988-c715a20e4870\",\n        \"product_id\": \"e809f59f-e3a9-44ab-a475-7898fb3cb8f8\",\n        \"name\": \"\",\n        \"description\": \"\",\n        \"promo_discount\": 10,\n        \"is_active\": true,\n        \"created_by\": \"system\",\n        \"updated_by\": \"\",\n        \"created_at\": \"2024-09-03T02:31:53.37586Z\",\n        \"updated_at\": \"2024-09-03T02:33:49.7089533+07:00\"\n    }\n}"}],"_postman_id":"1d875d78-3b3a-4b7d-8406-ca637d97b80c"},{"name":"DeletePromoService","id":"0997b428-66ff-4a9d-9eba-91a707bff71b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"id\": \"5d11c93e-46e6-4c45-8f21-427cfa1f28b4\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/v1/promo/delete","urlObject":{"protocol":"http","port":"3000","path":["api","v1","promo","delete"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"20100a94-eebf-406c-bb00-d416a8313444","name":"Successful Response","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"id\": \"113493e9-2a73-462c-ab30-677ce8ee99ad\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/v1/promo/delete"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Allow-Headers","value":"Accept, Content-Type, Content-Length, Accept-Encoding, Authorization, X-CSRF-Token, credentials"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, DELETE, PUT, PATCH, OPTIONS, HEAD, TRACE"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:5173"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Tue, 13 Aug 2024 12:53:48 GMT"},{"key":"Content-Length","value":"305"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"message\": \"Success\",\n    \"data\": {\n        \"id\": \"2a21df88-cf83-4f08-8988-c715a20e4870\",\n        \"product_id\": \"e809f59f-e3a9-44ab-a475-7898fb3cb8f8\",\n        \"name\": \"\",\n        \"description\": \"\",\n        \"promo_discount\": 10,\n        \"is_active\": true,\n        \"created_by\": \"system\",\n        \"updated_by\": \"\",\n        \"created_at\": \"2024-09-03T02:31:53.37586Z\",\n        \"updated_at\": \"2024-09-03T02:33:49.708953Z\"\n    }\n}"}],"_postman_id":"0997b428-66ff-4a9d-9eba-91a707bff71b"}],"id":"7c77a0ea-3827-4e57-9d1d-cf1699c548b7","description":"<ol>\n<li><p><strong>GetAllPromosService</strong>:</p>\n<ol>\n<li><p><strong>Functionality</strong>: Retrieves a list of all promotional offers available in the system.</p>\n</li>\n<li><p><strong>Implementation</strong>: Uses GORM queries to fetch promo data, supporting pagination for large datasets.</p>\n</li>\n</ol>\n</li>\n<li><p><strong>GetAllPromoByProductIDService</strong>:</p>\n<ol>\n<li><p><strong>Functionality</strong>: Fetches all promotional offers associated with a specific product based on its ProductID.</p>\n</li>\n<li><p><strong>Implementation</strong>: Utilizes GORM queries to filter promotions by ProductID, ensuring relevant promos are retrieved.</p>\n</li>\n</ol>\n</li>\n<li><p><strong>GetPromoService</strong>:</p>\n<ol>\n<li><p><strong>Functionality</strong>: Retrieves detailed information about a specific promotion using its PromoID.</p>\n</li>\n<li><p><strong>Implementation</strong>: GORM is used to accurately fetch and display the promo details from the database.</p>\n</li>\n</ol>\n</li>\n<li><p><strong>CreatePromoService</strong>:</p>\n<ol>\n<li><p><strong>Functionality:</strong> Handles the creation of new promotional offers.</p>\n</li>\n<li><p><strong>Implementation:</strong> Validates promo data and stores the new promotion in the database.</p>\n</li>\n</ol>\n</li>\n<li><p><strong>UpdatePromoService</strong>:</p>\n<ol>\n<li><p><strong>Functionality:</strong> Updates the details of an existing promotional offer.</p>\n</li>\n<li><p><strong>Implementation:</strong> Allows modifications to the promo details, such as the discount price, and saves the updated information in the database.</p>\n</li>\n</ol>\n</li>\n<li><p><strong>DeletePromoService:</strong></p>\n<ol>\n<li><p><strong>Functionality</strong>: Removes a promotional offer from the system.</p>\n</li>\n<li><p><strong>Implementation</strong>: Deletes the promo record, ensuring it is no longer accessible or applied to any products.</p>\n</li>\n</ol>\n</li>\n</ol>\n","_postman_id":"7c77a0ea-3827-4e57-9d1d-cf1699c548b7"},{"name":"ReviewService","item":[{"name":"GetAllReviewsService","id":"cb20a880-c038-4240-996d-ea199c5d1397","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3000/api/v1/reviews?page=1&limit=10&order_by=id&order_type=asc","urlObject":{"protocol":"http","port":"3000","path":["api","v1","reviews"],"host":["localhost"],"query":[{"key":"page","value":"1"},{"key":"limit","value":"10"},{"key":"order_by","value":"id"},{"key":"order_type","value":"asc"}],"variable":[]}},"response":[{"id":"438c480c-0983-412c-b159-29975c874161","name":"Successful Response","originalRequest":{"method":"GET","header":[],"url":"http://localhost:3000/api/v1/reviews"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Allow-Headers","value":"Accept, Content-Type, Content-Length, Accept-Encoding, Authorization, X-CSRF-Token, credentials"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, DELETE, PUT, PATCH, OPTIONS, HEAD, TRACE"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:5173"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Sat, 17 Aug 2024 07:46:09 GMT"},{"key":"Content-Length","value":"514"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"message\": \"Success: Reviews Found\",\n    \"page\": 1,\n    \"limit\": 10,\n    \"order_by\": \"id\",\n    \"order_type\": \"asc\",\n    \"total_data\": 0,\n    \"total_take\": 0,\n    \"total_page\": 0,\n    \"data\": [\n        {\n            \"id\": \"18bda21a-20d8-4a4c-81e0-c29a4fe71b6c\",\n            \"product_id\": \"0037485d-0827-45a3-8840-3b25d15a91db\",\n            \"user_id\": \"4d3a7fb7-75a5-4869-aaab-0e67bc35f4fa\",\n            \"comment\": \"The quality of this Batik is outstanding, and the pattern is beautiful.\",\n            \"rating\": 4.8,\n            \"is_active\": true,\n            \"created_by\": \"system\",\n            \"updated_by\": \"system\",\n            \"created_at\": \"2024-09-03T02:35:55.040202Z\",\n            \"updated_at\": \"2024-09-03T02:35:55.040202Z\"\n        },\n        {\n            \"id\": \"25596093-ceaf-4b8e-8736-efb161a89829\",\n            \"product_id\": \"3c5f6f77-c3e3-4c8b-bf55-a828d74cb982\",\n            \"user_id\": \"4d3a7fb7-75a5-4869-aaab-0e67bc35f4fa\",\n            \"comment\": \"A beautiful addition to my home decor. The craftsmanship is top-notch!\",\n            \"rating\": 4.7,\n            \"is_active\": true,\n            \"created_by\": \"system\",\n            \"updated_by\": \"system\",\n            \"created_at\": \"2024-09-03T02:36:17.299329Z\",\n            \"updated_at\": \"2024-09-03T02:36:17.299329Z\"\n        },\n        {\n            \"id\": \"8b6ec77d-c914-47ee-a8be-096d4e63e921\",\n            \"product_id\": \"0037485d-0827-45a3-8840-3b25d15a91db\",\n            \"user_id\": \"2fb86478-adb9-4003-98b6-768f9388907a\",\n            \"comment\": \"Absolutely love this oil! Great for cooking and my skin feels amazing.\",\n            \"rating\": 5,\n            \"is_active\": true,\n            \"created_by\": \"system\",\n            \"updated_by\": \"system\",\n            \"created_at\": \"2024-09-03T02:35:44.610409Z\",\n            \"updated_at\": \"2024-09-03T02:35:44.610409Z\"\n        }\n    ]\n}"}],"_postman_id":"cb20a880-c038-4240-996d-ea199c5d1397"},{"name":"GetAllReviewsByProductIDService","id":"8b10e88b-979c-4f57-8970-cbacf38c2c98","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3000/api/v1/reviews/product/0037485d-0827-45a3-8840-3b25d15a91db","urlObject":{"protocol":"http","port":"3000","path":["api","v1","reviews","product","0037485d-0827-45a3-8840-3b25d15a91db"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"38603b9c-1e1b-4bd8-b8a2-35168eb67632","name":"Successful Response","originalRequest":{"method":"GET","header":[],"url":"http://localhost:3000/api/v1/reviews/product/33bcaf9a-bea8-4aed-8435-d451259e0656"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Allow-Headers","value":"Accept, Content-Type, Content-Length, Accept-Encoding, Authorization, X-CSRF-Token, credentials"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, DELETE, PUT, PATCH, OPTIONS, HEAD, TRACE"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:5173"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Sat, 17 Aug 2024 07:45:56 GMT"},{"key":"Content-Length","value":"508"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"message\": \"Success: Reviews Found\",\n    \"data\": [\n        {\n            \"id\": \"8b6ec77d-c914-47ee-a8be-096d4e63e921\",\n            \"product_id\": \"0037485d-0827-45a3-8840-3b25d15a91db\",\n            \"user_id\": \"2fb86478-adb9-4003-98b6-768f9388907a\",\n            \"comment\": \"Absolutely love this oil! Great for cooking and my skin feels amazing.\",\n            \"rating\": 5,\n            \"is_active\": true,\n            \"created_by\": \"system\",\n            \"updated_by\": \"system\",\n            \"created_at\": \"2024-09-03T02:35:44.610409Z\",\n            \"updated_at\": \"2024-09-03T02:35:44.610409Z\"\n        },\n        {\n            \"id\": \"18bda21a-20d8-4a4c-81e0-c29a4fe71b6c\",\n            \"product_id\": \"0037485d-0827-45a3-8840-3b25d15a91db\",\n            \"user_id\": \"4d3a7fb7-75a5-4869-aaab-0e67bc35f4fa\",\n            \"comment\": \"The quality of this Batik is outstanding, and the pattern is beautiful.\",\n            \"rating\": 4.8,\n            \"is_active\": true,\n            \"created_by\": \"system\",\n            \"updated_by\": \"system\",\n            \"created_at\": \"2024-09-03T02:35:55.040202Z\",\n            \"updated_at\": \"2024-09-03T02:35:55.040202Z\"\n        }\n    ]\n}"}],"_postman_id":"8b10e88b-979c-4f57-8970-cbacf38c2c98"},{"name":"GetReviewByID","id":"73e50c2d-c57d-4300-b2c8-24425bf435ad","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3000/api/v1/review/49d1b3b9-6b9d-4898-ad46-f2fcca544c3b","urlObject":{"protocol":"http","port":"3000","path":["api","v1","review","49d1b3b9-6b9d-4898-ad46-f2fcca544c3b"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"328a52cd-e766-4456-983d-c68394d6ea6b","name":"Successful Response","originalRequest":{"method":"GET","header":[],"url":"http://localhost:3000/api/v1/review/49d1b3b9-6b9d-4898-ad46-f2fcca544c3b"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Allow-Headers","value":"Accept, Content-Type, Content-Length, Accept-Encoding, Authorization, X-CSRF-Token, credentials"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, DELETE, PUT, PATCH, OPTIONS, HEAD, TRACE"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:5173"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Fri, 30 Aug 2024 19:46:29 GMT"},{"key":"Content-Length","value":"387"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"message\": \"Success\",\n    \"data\": {\n        \"id\": \"18bda21a-20d8-4a4c-81e0-c29a4fe71b6c\",\n        \"product_id\": \"0037485d-0827-45a3-8840-3b25d15a91db\",\n        \"user_id\": \"4d3a7fb7-75a5-4869-aaab-0e67bc35f4fa\",\n        \"comment\": \"The quality of this Batik is outstanding, and the pattern is beautiful.\",\n        \"rating\": 4.8,\n        \"is_active\": true,\n        \"created_by\": \"system\",\n        \"updated_by\": \"system\",\n        \"created_at\": \"2024-09-03T02:35:55.040202Z\",\n        \"updated_at\": \"2024-09-03T02:35:55.040202Z\"\n    }\n}"}],"_postman_id":"73e50c2d-c57d-4300-b2c8-24425bf435ad"},{"name":"CreateReviewsService","id":"015ce1cd-a90a-4cc2-92e7-9ba459a0f1d3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"product_id\": \"f60d6305-9b76-4713-a825-0f84da8a08a4\",\r\n    \"user_id\": \"1bd8cd7d-168a-4132-9fc6-e9968b1d8fbc\",\r\n    \"comment\": \"This not gonna disappoint you!\",\r\n    \"rating\": 4.3,\r\n    \"is_active\": true,\r\n    \"created_by\": \"\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/v1/review/create","urlObject":{"protocol":"http","port":"3000","path":["api","v1","review","create"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"7e875660-e2f4-44fb-b443-e69d16cb6e6e","name":"Successful Response","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"product_id\": \"33bcaf9a-bea8-4aed-8435-d451259e0656\",\r\n    \"user_id\": \"301eeb2d-a59f-4440-8b7d-fe6767081312\",\r\n    \"comment\": \"Best Lipstick Ever! Very Worth to Buy!!!\",\r\n    \"rating\": 5,\r\n    \"is_active\": true,\r\n    \"created_by\": \"\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/v1/review/create"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Allow-Headers","value":"Accept, Content-Type, Content-Length, Accept-Encoding, Authorization, X-CSRF-Token, credentials"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, DELETE, PUT, PATCH, OPTIONS, HEAD, TRACE"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:5173"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Sat, 17 Aug 2024 07:45:35 GMT"},{"key":"Content-Length","value":"413"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"message\": \"Success: Review Created\",\n    \"data\": {\n        \"id\": \"25596093-ceaf-4b8e-8736-efb161a89829\",\n        \"product_id\": \"3c5f6f77-c3e3-4c8b-bf55-a828d74cb982\",\n        \"user_id\": \"4d3a7fb7-75a5-4869-aaab-0e67bc35f4fa\",\n        \"comment\": \"A beautiful addition to my home decor. The craftsmanship is top-notch!\",\n        \"rating\": 4.7,\n        \"is_active\": true,\n        \"created_by\": \"system\",\n        \"updated_by\": \"system\",\n        \"created_at\": \"2024-09-03T02:36:17.299329Z\",\n        \"updated_at\": \"2024-09-03T02:36:17.299329Z\"\n    }\n}"}],"_postman_id":"015ce1cd-a90a-4cc2-92e7-9ba459a0f1d3"},{"name":"DeleteReviewService","id":"4e508163-03ac-4715-96f3-e4d2f6eefa48","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"id\": \"3c5f6f77-c3e3-4c8b-bf55-a828d74cb982\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/v1/review/delete","urlObject":{"protocol":"http","port":"3000","path":["api","v1","review","delete"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"6545010b-1fdf-40f9-8bd5-063b71ba2055","name":"Successful Response","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"id\": \"6fef8c79-e5ed-4f13-b99d-1f56fd3785af\",\r\n    \"user_id\": \"93aaba97-07d6-4ce0-95fd-aad8059c2cad\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/v1/review/delete"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Allow-Headers","value":"Accept, Content-Type, Content-Length, Accept-Encoding, Authorization, X-CSRF-Token, credentials"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, DELETE, PUT, PATCH, OPTIONS, HEAD, TRACE"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:5173"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Sat, 17 Aug 2024 07:51:49 GMT"},{"key":"Content-Length","value":"410"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"message\": \"Success: Review deleted\",\n    \"data\": {\n        \"id\": \"25596093-ceaf-4b8e-8736-efb161a89829\",\n        \"product_id\": \"3c5f6f77-c3e3-4c8b-bf55-a828d74cb982\",\n        \"user_id\": \"4d3a7fb7-75a5-4869-aaab-0e67bc35f4fa\",\n        \"comment\": \"A beautiful addition to my home decor. The craftsmanship is top-notch!\",\n        \"rating\": 4.7,\n        \"is_active\": true,\n        \"created_by\": \"system\",\n        \"updated_by\": \"system\",\n        \"created_at\": \"2024-09-03T02:36:17.299329Z\",\n        \"updated_at\": \"2024-09-03T02:36:17.299329Z\"\n    }\n}"}],"_postman_id":"4e508163-03ac-4715-96f3-e4d2f6eefa48"}],"id":"762f2ae1-0457-4cb6-8f8f-e5a1fb4626b5","description":"<ol>\n<li><p><strong>GetAllReviewsService</strong>:</p>\n<ol>\n<li><p><strong>Functionality:</strong> Retrieves a list of all product reviews submitted by users.</p>\n</li>\n<li><p><strong>Implementation:</strong> Uses GORM queries to fetch review data, supporting pagination for large datasets.</p>\n</li>\n</ol>\n</li>\n<li><p><strong>GetAllReviewsByProductIDService</strong>:</p>\n<ol>\n<li><p><strong>Functionality</strong>: Fetches all reviews associated with a specific product based on its ProductID.</p>\n</li>\n<li><p><strong>Implementation</strong>: GORM queries are used to filter reviews by ProductID, ensuring all relevant feedback is retrieved.</p>\n</li>\n</ol>\n</li>\n<li><p><strong>GetReviewByID:</strong></p>\n<ol>\n<li><p><strong>Functionality</strong>: Retrieves detailed information about a specific review using its ReviewID.</p>\n</li>\n<li><p><strong>Implementation</strong>: GORM is employed to fetch and display the review details from the database accurately.</p>\n</li>\n</ol>\n</li>\n<li><p><strong>CreateReviewService</strong>:</p>\n<ol>\n<li><p><strong>Functionality</strong>: Handles the submission of new product reviews by users.</p>\n</li>\n<li><p><strong>Implementation:</strong> Validates review data and stores the new review in the database.</p>\n</li>\n</ol>\n</li>\n<li><p><strong>DeleteReviewService</strong>:</p>\n<ol>\n<li><p><strong>Functionality</strong>: Removes a review from the system.</p>\n</li>\n<li><p><strong>Implementation</strong>: Deletes the review record, ensuring it is no longer accessible or visible to other users.</p>\n</li>\n</ol>\n</li>\n</ol>\n","_postman_id":"762f2ae1-0457-4cb6-8f8f-e5a1fb4626b5"},{"name":"CartService","item":[{"name":"GetAllCartsService","id":"1e609b55-64c0-4576-a0b0-c3f2100c69e7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3000/api/v1/carts","urlObject":{"protocol":"http","port":"3000","path":["api","v1","carts"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"56efcaf6-c85f-4f24-95b8-bf3a9e8a9d95","name":"GetAllCartsService","originalRequest":{"method":"GET","header":[],"url":"http://localhost:3000/api/v1/carts"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Allow-Headers","value":"Accept, Content-Type, Content-Length, Accept-Encoding, Authorization, X-CSRF-Token, credentials"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, DELETE, PUT, PATCH, OPTIONS, HEAD, TRACE"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:5173"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Thu, 22 Aug 2024 16:49:57 GMT"},{"key":"Content-Length","value":"403"}],"cookie":[],"responseTime":null,"body":"{\n    \"page\": 1,\n    \"limit\": 10,\n    \"order_by\": \"ID\",\n    \"order_type\": \"asc\",\n    \"total_data\": 4,\n    \"total_take\": 4,\n    \"total_page\": 1,\n    \"code\": 200,\n    \"message\": \"Success\",\n    \"data\": [\n        {\n            \"id\": \"64c96a8f-49d2-4e52-bdce-46748fd57ea6\",\n            \"user_id\": \"d5e34629-99e0-40ac-8113-89a82316f63d\",\n            \"is_active\": true,\n            \"created_by\": \"system\",\n            \"updated_by\": \"system\",\n            \"created_at\": \"2024-09-03T02:39:33.980803+07:00\",\n            \"updated_at\": \"2024-09-03T02:39:33.980803+07:00\",\n            \"cart_informations\": [\n                {\n                    \"id\": \"2744b5de-b85a-417d-a27a-9113dd5dbd50\",\n                    \"cartID\": \"64c96a8f-49d2-4e52-bdce-46748fd57ea6\",\n                    \"productID\": \"c636d485-2249-44ca-8ea4-cdb6ad53858d\",\n                    \"quantity\": 24,\n                    \"priceAtOrder\": 17,\n                    \"isActive\": true,\n                    \"createdBy\": \"system\",\n                    \"updatedBy\": \"system\",\n                    \"createdAt\": \"2024-09-03T02:39:33.986636Z\",\n                    \"updatedAt\": \"2024-09-03T02:39:33.986636Z\"\n                },\n                {\n                    \"id\": \"0d8be344-547b-4273-a0e5-c5733f37c7bb\",\n                    \"cartID\": \"64c96a8f-49d2-4e52-bdce-46748fd57ea6\",\n                    \"productID\": \"e809f59f-e3a9-44ab-a475-7898fb3cb8f8\",\n                    \"quantity\": 5,\n                    \"priceAtOrder\": 48.6,\n                    \"isActive\": true,\n                    \"createdBy\": \"system\",\n                    \"updatedBy\": \"system\",\n                    \"createdAt\": \"2024-09-03T02:39:46.814557Z\",\n                    \"updatedAt\": \"2024-09-03T02:39:46.814557Z\"\n                }\n            ]\n        },\n        {\n            \"id\": \"df8270a1-a76f-4ed3-a40e-b23537197ea1\",\n            \"user_id\": \"d5e34629-99e0-40ac-8113-89a82316f63d\",\n            \"is_active\": true,\n            \"created_by\": \"system\",\n            \"updated_by\": \"system\",\n            \"created_at\": \"2024-09-03T02:39:13.963287+07:00\",\n            \"updated_at\": \"2024-09-03T02:39:13.963287+07:00\",\n            \"cart_informations\": [\n                {\n                    \"id\": \"406e3e3c-16ee-4d1c-98f0-d1e476381c55\",\n                    \"cartID\": \"df8270a1-a76f-4ed3-a40e-b23537197ea1\",\n                    \"productID\": \"6124af45-6302-4528-b1a6-3c3bea61a8d5\",\n                    \"quantity\": 6,\n                    \"priceAtOrder\": 17.5,\n                    \"isActive\": true,\n                    \"createdBy\": \"system\",\n                    \"updatedBy\": \"system\",\n                    \"createdAt\": \"2024-09-03T02:39:13.968269Z\",\n                    \"updatedAt\": \"2024-09-03T02:39:13.968269Z\"\n                }\n            ]\n        },\n        {\n            \"id\": \"fb0cdfc2-18b9-477a-b26d-abbd0adb713e\",\n            \"user_id\": \"d5e34629-99e0-40ac-8113-89a82316f63d\",\n            \"is_active\": true,\n            \"created_by\": \"system\",\n            \"updated_by\": \"system\",\n            \"created_at\": \"2024-09-03T02:38:43.725029+07:00\",\n            \"updated_at\": \"2024-09-03T02:38:43.725029+07:00\",\n            \"cart_informations\": [\n                {\n                    \"id\": \"1ff6766b-31e4-4077-b46f-f80f5d2ff082\",\n                    \"cartID\": \"fb0cdfc2-18b9-477a-b26d-abbd0adb713e\",\n                    \"productID\": \"3c5f6f77-c3e3-4c8b-bf55-a828d74cb982\",\n                    \"quantity\": 3,\n                    \"priceAtOrder\": 45.4,\n                    \"isActive\": true,\n                    \"createdBy\": \"system\",\n                    \"updatedBy\": \"system\",\n                    \"createdAt\": \"2024-09-03T02:39:01.3525Z\",\n                    \"updatedAt\": \"2024-09-03T02:39:01.3525Z\"\n                },\n                {\n                    \"id\": \"4aff8120-db74-46c8-b536-d20ef0c801ae\",\n                    \"cartID\": \"fb0cdfc2-18b9-477a-b26d-abbd0adb713e\",\n                    \"productID\": \"45ebbebc-0f7a-44ba-b09a-d2e03a21aaf8\",\n                    \"quantity\": 3,\n                    \"priceAtOrder\": 46.25,\n                    \"isActive\": true,\n                    \"createdBy\": \"system\",\n                    \"updatedBy\": \"system\",\n                    \"createdAt\": \"2024-09-03T02:39:05.425554Z\",\n                    \"updatedAt\": \"2024-09-03T02:39:05.425554Z\"\n                },\n                {\n                    \"id\": \"eace8ddf-0162-438c-aa66-248c8009ca37\",\n                    \"cartID\": \"fb0cdfc2-18b9-477a-b26d-abbd0adb713e\",\n                    \"productID\": \"6124af45-6302-4528-b1a6-3c3bea61a8d5\",\n                    \"quantity\": 18,\n                    \"priceAtOrder\": 17.5,\n                    \"isActive\": true,\n                    \"createdBy\": \"system\",\n                    \"updatedBy\": \"system\",\n                    \"createdAt\": \"2024-09-03T02:38:43.732065Z\",\n                    \"updatedAt\": \"2024-09-03T02:38:43.732065Z\"\n                }\n            ]\n        },\n        {\n            \"id\": \"fb3c211e-012d-4aed-a97e-7200b394dc9d\",\n            \"user_id\": \"d5e34629-99e0-40ac-8113-89a82316f63d\",\n            \"is_active\": true,\n            \"created_by\": \"system\",\n            \"updated_by\": \"system\",\n            \"created_at\": \"2024-09-03T02:30:39.169236+07:00\",\n            \"updated_at\": \"2024-09-03T02:30:39.169236+07:00\",\n            \"cart_informations\": [\n                {\n                    \"id\": \"efe489fc-e010-4bb1-8d85-c9a50dcd63fa\",\n                    \"cartID\": \"fb3c211e-012d-4aed-a97e-7200b394dc9d\",\n                    \"productID\": \"e809f59f-e3a9-44ab-a475-7898fb3cb8f8\",\n                    \"quantity\": 8,\n                    \"priceAtOrder\": 48.6,\n                    \"isActive\": true,\n                    \"createdBy\": \"system\",\n                    \"updatedBy\": \"system\",\n                    \"createdAt\": \"2024-09-03T02:30:39.18325Z\",\n                    \"updatedAt\": \"2024-09-03T02:30:39.18325Z\"\n                }\n            ]\n        }\n    ]\n}"}],"_postman_id":"1e609b55-64c0-4576-a0b0-c3f2100c69e7"},{"name":"GetCartByUserIDService","id":"31a47f0e-c518-40f6-8ce1-e8b52deea14f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3000/api/v1/carts/user/3e02b850-f9e3-4036-87ed-9803978ea847","urlObject":{"protocol":"http","port":"3000","path":["api","v1","carts","user","3e02b850-f9e3-4036-87ed-9803978ea847"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"7dfa3eb5-3386-4d61-a944-01eb68a48176","name":"Successful Response","originalRequest":{"method":"GET","header":[],"url":"http://localhost:3000/api/v1/carts/user/93aaba97-07d6-4ce0-95fd-aad8059c2cad"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Allow-Headers","value":"Accept, Content-Type, Content-Length, Accept-Encoding, Authorization, X-CSRF-Token, credentials"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, DELETE, PUT, PATCH, OPTIONS, HEAD, TRACE"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:5173"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Thu, 22 Aug 2024 16:49:41 GMT"},{"key":"Content-Length","value":"397"}],"cookie":[],"responseTime":null,"body":"{\n    \"page\": 0,\n    \"limit\": 0,\n    \"order_by\": \"\",\n    \"order_type\": \"\",\n    \"total_data\": 0,\n    \"total_take\": 0,\n    \"total_page\": 0,\n    \"code\": 200,\n    \"message\": \"Success\",\n    \"data\": [\n        {\n            \"id\": \"fb3c211e-012d-4aed-a97e-7200b394dc9d\",\n            \"user_id\": \"d5e34629-99e0-40ac-8113-89a82316f63d\",\n            \"is_active\": true,\n            \"created_by\": \"system\",\n            \"updated_by\": \"system\",\n            \"created_at\": \"2024-09-03T02:30:39.169236+07:00\",\n            \"updated_at\": \"2024-09-03T02:30:39.169236+07:00\",\n            \"cart_informations\": [\n                {\n                    \"id\": \"efe489fc-e010-4bb1-8d85-c9a50dcd63fa\",\n                    \"cartID\": \"fb3c211e-012d-4aed-a97e-7200b394dc9d\",\n                    \"productID\": \"e809f59f-e3a9-44ab-a475-7898fb3cb8f8\",\n                    \"quantity\": 8,\n                    \"priceAtOrder\": 48.6,\n                    \"isActive\": true,\n                    \"createdBy\": \"system\",\n                    \"updatedBy\": \"system\",\n                    \"createdAt\": \"2024-09-03T02:30:39.18325Z\",\n                    \"updatedAt\": \"2024-09-03T02:30:39.18325Z\"\n                }\n            ]\n        },\n        {\n            \"id\": \"fb0cdfc2-18b9-477a-b26d-abbd0adb713e\",\n            \"user_id\": \"d5e34629-99e0-40ac-8113-89a82316f63d\",\n            \"is_active\": true,\n            \"created_by\": \"system\",\n            \"updated_by\": \"system\",\n            \"created_at\": \"2024-09-03T02:38:43.725029+07:00\",\n            \"updated_at\": \"2024-09-03T02:38:43.725029+07:00\",\n            \"cart_informations\": [\n                {\n                    \"id\": \"efe489fc-e010-4bb1-8d85-c9a50dcd63fa\",\n                    \"cartID\": \"fb3c211e-012d-4aed-a97e-7200b394dc9d\",\n                    \"productID\": \"e809f59f-e3a9-44ab-a475-7898fb3cb8f8\",\n                    \"quantity\": 8,\n                    \"priceAtOrder\": 48.6,\n                    \"isActive\": true,\n                    \"createdBy\": \"system\",\n                    \"updatedBy\": \"system\",\n                    \"createdAt\": \"2024-09-03T02:30:39.18325Z\",\n                    \"updatedAt\": \"2024-09-03T02:30:39.18325Z\"\n                }\n            ]\n        },\n        {\n            \"id\": \"df8270a1-a76f-4ed3-a40e-b23537197ea1\",\n            \"user_id\": \"d5e34629-99e0-40ac-8113-89a82316f63d\",\n            \"is_active\": true,\n            \"created_by\": \"system\",\n            \"updated_by\": \"system\",\n            \"created_at\": \"2024-09-03T02:39:13.963287+07:00\",\n            \"updated_at\": \"2024-09-03T02:39:13.963287+07:00\",\n            \"cart_informations\": [\n                {\n                    \"id\": \"efe489fc-e010-4bb1-8d85-c9a50dcd63fa\",\n                    \"cartID\": \"fb3c211e-012d-4aed-a97e-7200b394dc9d\",\n                    \"productID\": \"e809f59f-e3a9-44ab-a475-7898fb3cb8f8\",\n                    \"quantity\": 8,\n                    \"priceAtOrder\": 48.6,\n                    \"isActive\": true,\n                    \"createdBy\": \"system\",\n                    \"updatedBy\": \"system\",\n                    \"createdAt\": \"2024-09-03T02:30:39.18325Z\",\n                    \"updatedAt\": \"2024-09-03T02:30:39.18325Z\"\n                }\n            ]\n        },\n        {\n            \"id\": \"64c96a8f-49d2-4e52-bdce-46748fd57ea6\",\n            \"user_id\": \"d5e34629-99e0-40ac-8113-89a82316f63d\",\n            \"is_active\": true,\n            \"created_by\": \"system\",\n            \"updated_by\": \"system\",\n            \"created_at\": \"2024-09-03T02:39:33.980803+07:00\",\n            \"updated_at\": \"2024-09-03T02:39:33.980803+07:00\",\n            \"cart_informations\": [\n                {\n                    \"id\": \"efe489fc-e010-4bb1-8d85-c9a50dcd63fa\",\n                    \"cartID\": \"fb3c211e-012d-4aed-a97e-7200b394dc9d\",\n                    \"productID\": \"e809f59f-e3a9-44ab-a475-7898fb3cb8f8\",\n                    \"quantity\": 8,\n                    \"priceAtOrder\": 48.6,\n                    \"isActive\": true,\n                    \"createdBy\": \"system\",\n                    \"updatedBy\": \"system\",\n                    \"createdAt\": \"2024-09-03T02:30:39.18325Z\",\n                    \"updatedAt\": \"2024-09-03T02:30:39.18325Z\"\n                }\n            ]\n        }\n    ]\n}"}],"_postman_id":"31a47f0e-c518-40f6-8ce1-e8b52deea14f"},{"name":"GetCartByIDService","id":"0c176732-06de-468c-887d-68340ca8172a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3000/api/v1/cart/bfa4b02f-492a-4122-8a00-c2635a964018","urlObject":{"protocol":"http","port":"3000","path":["api","v1","cart","bfa4b02f-492a-4122-8a00-c2635a964018"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"bea35d53-a17a-4925-8af3-86ac086c7098","name":"Successful Response","originalRequest":{"method":"GET","header":[],"url":"http://localhost:3000/api/v1/cart/951496ec-d400-407b-813c-71587c435458"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Allow-Headers","value":"Accept, Content-Type, Content-Length, Accept-Encoding, Authorization, X-CSRF-Token, credentials"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, DELETE, PUT, PATCH, OPTIONS, HEAD, TRACE"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:5173"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Thu, 22 Aug 2024 16:49:19 GMT"},{"key":"Content-Length","value":"313"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"message\": \"Success: Cart Found\",\n    \"data\": {\n        \"id\": \"64c96a8f-49d2-4e52-bdce-46748fd57ea6\",\n        \"user_id\": \"d5e34629-99e0-40ac-8113-89a82316f63d\",\n        \"is_active\": true,\n        \"created_by\": \"system\",\n        \"updated_by\": \"system\",\n        \"created_at\": \"2024-09-03T02:39:33.980803+07:00\",\n        \"updated_at\": \"2024-09-03T02:39:33.980803+07:00\",\n        \"cart_informations\": [\n            {\n                \"id\": \"2744b5de-b85a-417d-a27a-9113dd5dbd50\",\n                \"cartID\": \"64c96a8f-49d2-4e52-bdce-46748fd57ea6\",\n                \"productID\": \"c636d485-2249-44ca-8ea4-cdb6ad53858d\",\n                \"quantity\": 24,\n                \"priceAtOrder\": 17,\n                \"isActive\": true,\n                \"createdBy\": \"system\",\n                \"updatedBy\": \"system\",\n                \"createdAt\": \"2024-09-03T02:39:33.986636Z\",\n                \"updatedAt\": \"2024-09-03T02:39:33.986636Z\"\n            },\n            {\n                \"id\": \"0d8be344-547b-4273-a0e5-c5733f37c7bb\",\n                \"cartID\": \"64c96a8f-49d2-4e52-bdce-46748fd57ea6\",\n                \"productID\": \"e809f59f-e3a9-44ab-a475-7898fb3cb8f8\",\n                \"quantity\": 5,\n                \"priceAtOrder\": 48.6,\n                \"isActive\": true,\n                \"createdBy\": \"system\",\n                \"updatedBy\": \"system\",\n                \"createdAt\": \"2024-09-03T02:39:46.814557Z\",\n                \"updatedAt\": \"2024-09-03T02:39:46.814557Z\"\n            }\n        ]\n    }\n}"}],"_postman_id":"0c176732-06de-468c-887d-68340ca8172a"},{"name":"CreateCartService","id":"d8adb31c-9ffc-40b9-ac09-59c098d5aebf","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"user_id\": \"93aaba97-07d6-4ce0-95fd-aad8059c2cad\",\r\n    \"created_by\": \"\",\r\n    \"is_active\": true\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/v1/cart/create","urlObject":{"protocol":"http","port":"3000","path":["api","v1","cart","create"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"282a74f3-b69e-47a1-928c-4664c5d7df70","name":"Successful Response","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"user_id\": \"93aaba97-07d6-4ce0-95fd-aad8059c2cad\",\r\n    \"created_by\": \"\",\r\n    \"is_active\": true\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/v1/cart/create"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Allow-Headers","value":"Accept, Content-Type, Content-Length, Accept-Encoding, Authorization, X-CSRF-Token, credentials"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, DELETE, PUT, PATCH, OPTIONS, HEAD, TRACE"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:5173"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Thu, 22 Aug 2024 16:48:01 GMT"},{"key":"Content-Length","value":"331"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"message\": \"Success: Cart Created\",\n    \"data\": {\n        \"id\": \"bc5b0f47-15de-4469-b6b8-08b1bb665c05\",\n        \"user_id\": \"d5e34629-99e0-40ac-8113-89a82316f63d\",\n        \"is_active\": true,\n        \"created_by\": \"system\",\n        \"updated_by\": \"system\",\n        \"created_at\": \"2024-09-03T02:40:47.631821+07:00\",\n        \"updated_at\": \"2024-09-03T02:40:47.631821+07:00\",\n        \"cart_informations\": null\n    }\n}"}],"_postman_id":"d8adb31c-9ffc-40b9-ac09-59c098d5aebf"},{"name":"DeleteCartService","id":"57ffa62f-589e-4d75-b4c2-9ba4819671e5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"id\": \"bfa4b02f-492a-4122-8a00-c2635a964018\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/v1/cart/delete","urlObject":{"protocol":"http","port":"3000","path":["api","v1","cart","delete"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"bdc4407a-09a2-437f-a628-deb1d0c032c3","name":"Successful Response","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"id\": \"9bcd3e49-0786-4acb-ac09-5ec1f29449dd\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/v1/cart/delete"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Allow-Headers","value":"Accept, Content-Type, Content-Length, Accept-Encoding, Authorization, X-CSRF-Token, credentials"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, DELETE, PUT, PATCH, OPTIONS, HEAD, TRACE"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:5173"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Thu, 22 Aug 2024 16:48:50 GMT"},{"key":"Content-Length","value":"317"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"message\": \"Success: Cart Deleted\",\n    \"data\": {\n        \"id\": \"bc5b0f47-15de-4469-b6b8-08b1bb665c05\",\n        \"user_id\": \"d5e34629-99e0-40ac-8113-89a82316f63d\",\n        \"is_active\": true,\n        \"created_by\": \"system\",\n        \"updated_by\": \"system\",\n        \"created_at\": \"2024-09-03T02:40:47.631821+07:00\",\n        \"updated_at\": \"2024-09-03T02:40:47.631821+07:00\",\n        \"cart_informations\": []\n    }\n}"}],"_postman_id":"57ffa62f-589e-4d75-b4c2-9ba4819671e5"},{"name":"CheckoutProductFromCartService","id":"6b76339d-41db-4e42-88cc-7b89ddb285cf","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"id\": \"d7cab33c-5a80-48d3-b86a-1df404c5d235\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/v1/cart/checkout","urlObject":{"protocol":"http","port":"3000","path":["api","v1","cart","checkout"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"4731bf23-05a6-4269-b03e-8e8277bd902b","name":"Successful Response","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"id\": \"69411a1f-86ff-4b2b-915b-b27f57ef6489\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/v1/cart/checkout"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Allow-Headers","value":"Accept, Content-Type, Content-Length, Accept-Encoding, Authorization, X-CSRF-Token, credentials"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, DELETE, PUT, PATCH, OPTIONS, HEAD, TRACE"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:5173"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Sat, 31 Aug 2024 18:27:51 GMT"},{"key":"Content-Length","value":"656"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"message\": \"Success: Product Checked Out from Cart\",\n    \"data\": {\n        \"id\": \"911f2faa-52f8-4166-99ab-a850c1ad0c17\",\n        \"user_id\": \"d5e34629-99e0-40ac-8113-89a82316f63d\",\n        \"is_active\": true,\n        \"created_by\": \"system\",\n        \"updated_by\": \"system\",\n        \"created_at\": \"2024-09-04T00:56:30.76957Z\",\n        \"updated_at\": \"2024-09-04T00:56:30.76957Z\",\n        \"cart_informations\": [\n            {\n                \"id\": \"19cc9374-f776-420d-895f-ad4504b1e5a7\",\n                \"cartID\": \"d7cab33c-5a80-48d3-b86a-1df404c5d235\",\n                \"productID\": \"0037485d-0827-45a3-8840-3b25d15a91db\",\n                \"quantity\": 2,\n                \"priceAtOrder\": 30,\n                \"isActive\": true,\n                \"createdBy\": \"system\",\n                \"updatedBy\": \"system\",\n                \"createdAt\": \"2024-09-04T00:55:14.213532Z\",\n                \"updatedAt\": \"2024-09-04T00:55:14.213532Z\"\n            },\n            {\n                \"id\": \"fc5a2eba-2e50-49a2-9531-21e33da153fd\",\n                \"cartID\": \"d7cab33c-5a80-48d3-b86a-1df404c5d235\",\n                \"productID\": \"037c4188-25aa-4dbc-8fb1-80a89a45e171\",\n                \"quantity\": 5,\n                \"priceAtOrder\": 15,\n                \"isActive\": true,\n                \"createdBy\": \"system\",\n                \"updatedBy\": \"system\",\n                \"createdAt\": \"2024-09-04T00:55:40.173755Z\",\n                \"updatedAt\": \"2024-09-04T00:55:40.173755Z\"\n            }\n        ]\n    }\n}"}],"_postman_id":"6b76339d-41db-4e42-88cc-7b89ddb285cf"}],"id":"5961722d-45a9-4b04-a937-f261e2b45572","description":"<ol>\n<li><p><strong>GetAllCartsService</strong>:</p>\n<ol>\n<li><p><strong>Functionality</strong>: Retrieves a list of all shopping carts in the system.</p>\n</li>\n<li><p><strong>Implementation</strong>: Uses GORM queries to fetch cart data, supporting pagination for large datasets.</p>\n</li>\n</ol>\n</li>\n<li><p><strong>GetCartByUserIDService</strong>:</p>\n<ol>\n<li><p><strong>Functionality</strong>: Fetches the shopping cart associated with a specific user based on their UserID.</p>\n</li>\n<li><p><strong>Implementation</strong>: GORM queries are utilized to retrieve the user's cart, ensuring the correct data is displayed.</p>\n</li>\n</ol>\n</li>\n<li><p><strong>GetCartByIDService</strong>:</p>\n<ol>\n<li><p><strong>Functionality</strong>: Retrieves detailed information about a specific cart using its CartID.</p>\n</li>\n<li><p><strong>Implementation</strong>: Uses GORM to fetch and display the cart details from the database accurately.</p>\n</li>\n</ol>\n</li>\n<li><p><strong>CreateCartService</strong>:</p>\n<ol>\n<li><p><strong>Functionality</strong>: Handles the creation of a new shopping cart for a user.</p>\n</li>\n<li><p><strong>Implementation</strong>: Validates cart data and stores the new cart in the database.</p>\n</li>\n</ol>\n</li>\n<li><p><strong>DeleteCartService</strong>:</p>\n<ol>\n<li><p><strong>Functionality</strong>: Removes a shopping cart from the system.</p>\n</li>\n<li><p><strong>Implementation</strong>: Deletes the cart record, ensuring it is no longer available in the system.</p>\n</li>\n</ol>\n</li>\n<li><p><strong>CheckoutProductFromCartService</strong>:</p>\n<ol>\n<li><p><strong>Functionality</strong>: Handles the checkout process for products in a user's cart.</p>\n</li>\n<li><p><strong>Implementation</strong>: Handles the checkout process, where the products in the cart are moved directly to the order section.</p>\n</li>\n</ol>\n</li>\n</ol>\n","_postman_id":"5961722d-45a9-4b04-a937-f261e2b45572"},{"name":"CartInformationService","item":[{"name":"GetAllCartInformationService","id":"781d333f-b8de-4c47-a55b-ac1d199385cb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3000/api/v1/carts-information?page=1&limit=10&order_by=id&order_type=asc","urlObject":{"protocol":"http","port":"3000","path":["api","v1","carts-information"],"host":["localhost"],"query":[{"key":"page","value":"1"},{"key":"limit","value":"10"},{"key":"order_by","value":"id"},{"key":"order_type","value":"asc"}],"variable":[]}},"response":[{"id":"af17a490-ce69-4360-9404-d46f3d6f1994","name":"Successful Response","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://localhost:3000/api/v1/carts-information?page=1&limit=10&order_by=id&order_type=asc","protocol":"http","host":["localhost"],"port":"3000","path":["api","v1","carts-information"],"query":[{"key":"page","value":"1"},{"key":"limit","value":"10"},{"key":"order_by","value":"id"},{"key":"order_type","value":"asc"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Allow-Headers","value":"Accept, Content-Type, Content-Length, Accept-Encoding, Authorization, X-CSRF-Token, credentials"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, DELETE, PUT, PATCH, OPTIONS, HEAD, TRACE"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:5173"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Thu, 22 Aug 2024 20:40:50 GMT"},{"key":"Content-Length","value":"697"}],"cookie":[],"responseTime":null,"body":"{\n    \"page\": 1,\n    \"limit\": 10,\n    \"order_by\": \"ID\",\n    \"order_type\": \"asc\",\n    \"total_data\": 5,\n    \"total_take\": 5,\n    \"total_page\": 1,\n    \"code\": 200,\n    \"message\": \"Success\",\n    \"data\": [\n        {\n            \"id\": \"1ff6766b-31e4-4077-b46f-f80f5d2ff082\",\n            \"cartID\": \"fb0cdfc2-18b9-477a-b26d-abbd0adb713e\",\n            \"productID\": \"3c5f6f77-c3e3-4c8b-bf55-a828d74cb982\",\n            \"quantity\": 3,\n            \"priceAtOrder\": 45.4,\n            \"isActive\": true,\n            \"createdBy\": \"system\",\n            \"updatedBy\": \"system\",\n            \"createdAt\": \"2024-09-03T02:39:01.3525Z\",\n            \"updatedAt\": \"2024-09-03T02:39:01.3525Z\"\n        },\n        {\n            \"id\": \"406e3e3c-16ee-4d1c-98f0-d1e476381c55\",\n            \"cartID\": \"df8270a1-a76f-4ed3-a40e-b23537197ea1\",\n            \"productID\": \"6124af45-6302-4528-b1a6-3c3bea61a8d5\",\n            \"quantity\": 6,\n            \"priceAtOrder\": 17.5,\n            \"isActive\": true,\n            \"createdBy\": \"system\",\n            \"updatedBy\": \"system\",\n            \"createdAt\": \"2024-09-03T02:39:13.968269Z\",\n            \"updatedAt\": \"2024-09-03T02:39:13.968269Z\"\n        },\n        {\n            \"id\": \"4aff8120-db74-46c8-b536-d20ef0c801ae\",\n            \"cartID\": \"fb0cdfc2-18b9-477a-b26d-abbd0adb713e\",\n            \"productID\": \"45ebbebc-0f7a-44ba-b09a-d2e03a21aaf8\",\n            \"quantity\": 3,\n            \"priceAtOrder\": 46.25,\n            \"isActive\": true,\n            \"createdBy\": \"system\",\n            \"updatedBy\": \"system\",\n            \"createdAt\": \"2024-09-03T02:39:05.425554Z\",\n            \"updatedAt\": \"2024-09-03T02:39:05.425554Z\"\n        },\n        {\n            \"id\": \"eace8ddf-0162-438c-aa66-248c8009ca37\",\n            \"cartID\": \"fb0cdfc2-18b9-477a-b26d-abbd0adb713e\",\n            \"productID\": \"6124af45-6302-4528-b1a6-3c3bea61a8d5\",\n            \"quantity\": 18,\n            \"priceAtOrder\": 17.5,\n            \"isActive\": true,\n            \"createdBy\": \"system\",\n            \"updatedBy\": \"system\",\n            \"createdAt\": \"2024-09-03T02:38:43.732065Z\",\n            \"updatedAt\": \"2024-09-03T02:38:43.732065Z\"\n        },\n        {\n            \"id\": \"efe489fc-e010-4bb1-8d85-c9a50dcd63fa\",\n            \"cartID\": \"fb3c211e-012d-4aed-a97e-7200b394dc9d\",\n            \"productID\": \"e809f59f-e3a9-44ab-a475-7898fb3cb8f8\",\n            \"quantity\": 8,\n            \"priceAtOrder\": 48.6,\n            \"isActive\": true,\n            \"createdBy\": \"system\",\n            \"updatedBy\": \"system\",\n            \"createdAt\": \"2024-09-03T02:30:39.18325Z\",\n            \"updatedAt\": \"2024-09-03T02:30:39.18325Z\"\n        }\n    ]\n}"}],"_postman_id":"781d333f-b8de-4c47-a55b-ac1d199385cb"},{"name":"GetAllCartInformationByCartIDService","id":"fd946665-c122-4682-9c52-1d6bfb3bc367","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3000/api/v1/carts-information/cart/bfa4b02f-492a-4122-8a00-c2635a964018","urlObject":{"protocol":"http","port":"3000","path":["api","v1","carts-information","cart","bfa4b02f-492a-4122-8a00-c2635a964018"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"94998a0a-c899-441b-90e1-251aa8a469d0","name":"Successful Response","originalRequest":{"method":"GET","header":[],"url":"http://localhost:3000/api/v1/carts-information/cart/951496ec-d400-407b-813c-71587c435458"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Allow-Headers","value":"Accept, Content-Type, Content-Length, Accept-Encoding, Authorization, X-CSRF-Token, credentials"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, DELETE, PUT, PATCH, OPTIONS, HEAD, TRACE"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:5173"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Thu, 22 Aug 2024 20:50:00 GMT"},{"key":"Content-Length","value":"597"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"message\": \"Success\",\n    \"data\": [\n        {\n            \"id\": \"1ff6766b-31e4-4077-b46f-f80f5d2ff082\",\n            \"cartID\": \"fb0cdfc2-18b9-477a-b26d-abbd0adb713e\",\n            \"productID\": \"3c5f6f77-c3e3-4c8b-bf55-a828d74cb982\",\n            \"quantity\": 3,\n            \"priceAtOrder\": 45.4,\n            \"isActive\": true,\n            \"createdBy\": \"system\",\n            \"updatedBy\": \"system\",\n            \"createdAt\": \"2024-09-03T02:39:01.3525Z\",\n            \"updatedAt\": \"2024-09-03T02:39:01.3525Z\"\n        },\n        {\n            \"id\": \"4aff8120-db74-46c8-b536-d20ef0c801ae\",\n            \"cartID\": \"fb0cdfc2-18b9-477a-b26d-abbd0adb713e\",\n            \"productID\": \"45ebbebc-0f7a-44ba-b09a-d2e03a21aaf8\",\n            \"quantity\": 3,\n            \"priceAtOrder\": 46.25,\n            \"isActive\": true,\n            \"createdBy\": \"system\",\n            \"updatedBy\": \"system\",\n            \"createdAt\": \"2024-09-03T02:39:05.425554Z\",\n            \"updatedAt\": \"2024-09-03T02:39:05.425554Z\"\n        },\n        {\n            \"id\": \"eace8ddf-0162-438c-aa66-248c8009ca37\",\n            \"cartID\": \"fb0cdfc2-18b9-477a-b26d-abbd0adb713e\",\n            \"productID\": \"6124af45-6302-4528-b1a6-3c3bea61a8d5\",\n            \"quantity\": 18,\n            \"priceAtOrder\": 17.5,\n            \"isActive\": true,\n            \"createdBy\": \"system\",\n            \"updatedBy\": \"system\",\n            \"createdAt\": \"2024-09-03T02:38:43.732065Z\",\n            \"updatedAt\": \"2024-09-03T02:38:43.732065Z\"\n        }\n    ]\n}"}],"_postman_id":"fd946665-c122-4682-9c52-1d6bfb3bc367"},{"name":"AddItemToCartService","id":"a229218d-00bc-4dbd-8628-f50494f9cff2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"cart_id\": \"951496ec-d400-407b-813c-71587c435458\",\r\n    \"product_id\": \"33bcaf9a-bea8-4aed-8435-d451259e0656\",\r\n    \"quantity\": 14,\r\n    \"is_active\": true,\r\n    \"created_by\": \"\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/v1/cart-information/add-item","urlObject":{"protocol":"http","port":"3000","path":["api","v1","cart-information","add-item"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"6d103f73-a7ab-4421-a430-e7c708bde68b","name":"Successful Response","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"cart_id\": \"951496ec-d400-407b-813c-71587c435458\",\r\n    \"product_id\": \"33bcaf9a-bea8-4aed-8435-d451259e0656\",\r\n    \"quantity\": 21,\r\n    \"is_active\": true,\r\n    \"created_by\": \"\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/v1/cart-information/add-item"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Allow-Headers","value":"Accept, Content-Type, Content-Length, Accept-Encoding, Authorization, X-CSRF-Token, credentials"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, DELETE, PUT, PATCH, OPTIONS, HEAD, TRACE"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:5173"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Thu, 22 Aug 2024 20:26:07 GMT"},{"key":"Content-Length","value":"337"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"message\": \"Success: Item Added to Cart\",\n    \"data\": {\n        \"id\": \"232aa794-dbf0-47d5-8a8e-adf9d1b83a03\",\n        \"cartID\": \"df8270a1-a76f-4ed3-a40e-b23537197ea1\",\n        \"productID\": \"0037485d-0827-45a3-8840-3b25d15a91db\",\n        \"quantity\": 2,\n        \"priceAtOrder\": 30,\n        \"isActive\": true,\n        \"createdBy\": \"system\",\n        \"updatedBy\": \"system\",\n        \"createdAt\": \"2024-09-03T02:42:23.870625Z\",\n        \"updatedAt\": \"2024-09-03T02:42:23.870625Z\"\n    }\n}"}],"_postman_id":"a229218d-00bc-4dbd-8628-f50494f9cff2"},{"name":"UpdateItemInCartService","id":"5ea02c12-8729-4475-9406-36aeb51a74ab","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"cart_id\": \"951496ec-d400-407b-813c-71587c435458\",\r\n    \"product_id\": \"9b656337-3363-4158-a14c-7b032fffd596\",\r\n    \"quantity\": 33,\r\n    \"is_active\": true,\r\n    \"created_by\": \"\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/v1/cart-information/update-item","urlObject":{"protocol":"http","port":"3000","path":["api","v1","cart-information","update-item"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"a86762e7-b40d-43a1-9fc6-cc647827dced","name":"Successful Response","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"cart_id\": \"951496ec-d400-407b-813c-71587c435458\",\r\n    \"product_id\": \"9b656337-3363-4158-a14c-7b032fffd596\",\r\n    \"quantity\": 33,\r\n    \"is_active\": true,\r\n    \"created_by\": \"\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/v1/cart-information/update-item"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Allow-Headers","value":"Accept, Content-Type, Content-Length, Accept-Encoding, Authorization, X-CSRF-Token, credentials"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, DELETE, PUT, PATCH, OPTIONS, HEAD, TRACE"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:5173"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Thu, 22 Aug 2024 20:52:12 GMT"},{"key":"Content-Length","value":"335"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"message\": \"Success: Item Updated\",\n    \"data\": {\n        \"id\": \"1ff6766b-31e4-4077-b46f-f80f5d2ff082\",\n        \"cartID\": \"fb0cdfc2-18b9-477a-b26d-abbd0adb713e\",\n        \"productID\": \"3c5f6f77-c3e3-4c8b-bf55-a828d74cb982\",\n        \"quantity\": 5,\n        \"priceAtOrder\": 45.4,\n        \"isActive\": true,\n        \"createdBy\": \"system\",\n        \"updatedBy\": \"user\",\n        \"createdAt\": \"2024-09-03T02:39:01.3525Z\",\n        \"updatedAt\": \"2024-09-03T02:42:45.3931619+07:00\"\n    }\n}"}],"_postman_id":"5ea02c12-8729-4475-9406-36aeb51a74ab"},{"name":"DeleteItemInCartService","id":"84ee823e-a07f-4733-9c9c-62bf8ff8daa0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"cart_id\": \"951496ec-d400-407b-813c-71587c435458\",\r\n    \"product_id\": \"33bcaf9a-bea8-4aed-8435-d451259e0656\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/v1/cart-information/delete-item","urlObject":{"protocol":"http","port":"3000","path":["api","v1","cart-information","delete-item"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"32c89fa2-0a68-418f-8da5-462a41856f21","name":"Successful Response","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"cart_id\": \"951496ec-d400-407b-813c-71587c435458\",\r\n    \"product_id\": \"33bcaf9a-bea8-4aed-8435-d451259e0656\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/v1/cart-information/delete-item"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Allow-Headers","value":"Accept, Content-Type, Content-Length, Accept-Encoding, Authorization, X-CSRF-Token, credentials"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, DELETE, PUT, PATCH, OPTIONS, HEAD, TRACE"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:5173"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Thu, 22 Aug 2024 20:52:57 GMT"},{"key":"Content-Length","value":"331"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"message\": \"Success: Item Deleted\",\n    \"data\": {\n        \"id\": \"1ff6766b-31e4-4077-b46f-f80f5d2ff082\",\n        \"cartID\": \"fb0cdfc2-18b9-477a-b26d-abbd0adb713e\",\n        \"productID\": \"3c5f6f77-c3e3-4c8b-bf55-a828d74cb982\",\n        \"quantity\": 5,\n        \"priceAtOrder\": 45.4,\n        \"isActive\": true,\n        \"createdBy\": \"system\",\n        \"updatedBy\": \"user\",\n        \"createdAt\": \"2024-09-03T02:39:01.3525Z\",\n        \"updatedAt\": \"2024-09-03T02:42:45.393161Z\"\n    }\n}"}],"_postman_id":"84ee823e-a07f-4733-9c9c-62bf8ff8daa0"}],"id":"9ebe8589-d51b-4996-84ab-f10f4dcdb014","description":"<ol>\n<li><p><strong>GetAllCartInformationService</strong>:</p>\n<ol>\n<li><p><strong>Functionality</strong>: Retrieves detailed information for all carts in the system.</p>\n</li>\n<li><p><strong>Implementation</strong>: Uses GORM queries to fetch comprehensive cart data, supporting pagination for large datasets.</p>\n</li>\n</ol>\n</li>\n<li><p><strong>GetAllCartInformationByCartIDService</strong>:</p>\n<ol>\n<li><p><strong>Functionality</strong>: Fetches detailed information for a specific cart based on its CartID.</p>\n</li>\n<li><p><strong>Implementation</strong>: Uses GORM queries to retrieve detailed data for the specified cart.</p>\n</li>\n</ol>\n</li>\n<li><p><strong>AddItemToCartService:</strong></p>\n<ol>\n<li><p><strong>Functionality</strong>: Adds an item to a user's shopping cart.</p>\n</li>\n<li><p><strong>Implementation</strong>: Validates item data and updates the cart in the database with the new item.</p>\n</li>\n</ol>\n</li>\n<li><p><strong>UpdateItemInCartService</strong>:</p>\n<ol>\n<li><p><strong>Functionality</strong>: Updates the quantity or details of an item in a user's cart.</p>\n</li>\n<li><p><strong>Implementation</strong>: Modifies the item data within the cart and saves the updates to the database.</p>\n</li>\n</ol>\n</li>\n<li><p><strong>DeleteItemInCartService</strong>:</p>\n<ol>\n<li><p><strong>Functionality</strong>: Removes an item from a user's shopping cart.</p>\n</li>\n<li><p><strong>Implementation</strong>: Deletes the item from the cart, ensuring it is no longer listed in the user's cart.</p>\n</li>\n</ol>\n</li>\n</ol>\n","_postman_id":"9ebe8589-d51b-4996-84ab-f10f4dcdb014"},{"name":"OrderService","item":[{"name":"GetAllOrderService","id":"1b982e9b-f9c2-4591-8687-43880c5165d4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3000/api/v1/orders?page=1&limit=10&order_by=id&order_type=asc","urlObject":{"protocol":"http","port":"3000","path":["api","v1","orders"],"host":["localhost"],"query":[{"key":"page","value":"1"},{"key":"limit","value":"10"},{"key":"order_by","value":"id"},{"key":"order_type","value":"asc"}],"variable":[]}},"response":[{"id":"4513e740-8d93-43c5-a6f1-60741c6c2eb5","name":"Successful Response","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://localhost:3000/api/v1/orders?page=1&limit=10&order_by=id&order_type=asc","protocol":"http","host":["localhost"],"port":"3000","path":["api","v1","orders"],"query":[{"key":"page","value":"1"},{"key":"limit","value":"10"},{"key":"order_by","value":"id"},{"key":"order_type","value":"asc"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Allow-Headers","value":"Accept, Content-Type, Content-Length, Accept-Encoding, Authorization, X-CSRF-Token, credentials"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, DELETE, PUT, PATCH, OPTIONS, HEAD, TRACE"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:5173"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Sat, 31 Aug 2024 19:24:30 GMT"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"page\": 1,\n    \"limit\": 10,\n    \"order_by\": \"id\",\n    \"order_type\": \"asc\",\n    \"total_data\": 5,\n    \"total_take\": 5,\n    \"total_page\": 1,\n    \"code\": 200,\n    \"message\": \"Success\",\n    \"data\": [\n        {\n            \"id\": \"158523fb-d3c3-433f-ac4b-efb91d79c28c\",\n            \"user_id\": \"d5e34629-99e0-40ac-8113-89a82316f63d\",\n            \"status\": \"Waiting for Payment\",\n            \"total_price\": 36,\n            \"shipping_address\": \"Jl Ancol Selatan 2\",\n            \"payment_method\": \"Bank Transfer\",\n            \"is_active\": true,\n            \"created_by\": \"system\",\n            \"updated_by\": \"system\",\n            \"created_at\": \"2024-09-03T02:44:44.318456Z\",\n            \"updated_at\": \"2024-09-03T02:44:44.318456Z\",\n            \"order_items\": [\n                {\n                    \"id\": \"0366c6e3-3106-4340-86ae-9c28e99f62cb\",\n                    \"product_id\": \"3c0eb80f-8f24-48d3-bd18-dc68eb8458dc\",\n                    \"order_id\": \"158523fb-d3c3-433f-ac4b-efb91d79c28c\",\n                    \"quantity\": 3,\n                    \"price_at_order\": 12,\n                    \"is_active\": true,\n                    \"created_by\": \"system\",\n                    \"updated_by\": \"system\",\n                    \"created_at\": \"2024-09-03T02:44:44.319723Z\",\n                    \"updated_at\": \"2024-09-03T02:44:44.319723Z\"\n                }\n            ]\n        },\n        {\n            \"id\": \"1692eb08-bc78-46e2-83fd-59a8b8ff111c\",\n            \"user_id\": \"d5e34629-99e0-40ac-8113-89a82316f63d\",\n            \"status\": \"Order Finished\",\n            \"total_price\": 36,\n            \"shipping_address\": \"Jl Ancol Selatan 2\",\n            \"payment_method\": \"Bank Transfer\",\n            \"is_active\": true,\n            \"created_by\": \"system\",\n            \"updated_by\": \"system\",\n            \"created_at\": \"2024-09-03T02:31:06.406824Z\",\n            \"updated_at\": \"2024-09-03T02:44:22.979915Z\",\n            \"order_items\": [\n                {\n                    \"id\": \"b245c45a-51d5-4e4a-98a2-5b255653931f\",\n                    \"product_id\": \"3c0eb80f-8f24-48d3-bd18-dc68eb8458dc\",\n                    \"order_id\": \"1692eb08-bc78-46e2-83fd-59a8b8ff111c\",\n                    \"quantity\": 3,\n                    \"price_at_order\": 12,\n                    \"is_active\": true,\n                    \"created_by\": \"system\",\n                    \"updated_by\": \"system\",\n                    \"created_at\": \"2024-09-03T02:31:06.409207Z\",\n                    \"updated_at\": \"2024-09-03T02:31:06.409207Z\"\n                }\n            ]\n        },\n        {\n            \"id\": \"1f2f3c07-8cac-42ec-a49a-a1fc11a1634c\",\n            \"user_id\": \"d5e34629-99e0-40ac-8113-89a82316f63d\",\n            \"status\": \"Waiting for Payment\",\n            \"total_price\": 105,\n            \"shipping_address\": \"Jl Ancol Selatan 2\",\n            \"payment_method\": \"Bank Transfer\",\n            \"is_active\": true,\n            \"created_by\": \"system\",\n            \"updated_by\": \"system\",\n            \"created_at\": \"2024-09-03T02:44:54.158397Z\",\n            \"updated_at\": \"2024-09-03T02:44:54.158397Z\",\n            \"order_items\": [\n                {\n                    \"id\": \"e8e31cc6-31ab-40e9-9ebe-050db536f9d1\",\n                    \"product_id\": \"933df708-5643-4087-a44e-60929324c04a\",\n                    \"order_id\": \"1f2f3c07-8cac-42ec-a49a-a1fc11a1634c\",\n                    \"quantity\": 3,\n                    \"price_at_order\": 35,\n                    \"is_active\": true,\n                    \"created_by\": \"system\",\n                    \"updated_by\": \"system\",\n                    \"created_at\": \"2024-09-03T02:44:54.15985Z\",\n                    \"updated_at\": \"2024-09-03T02:44:54.15985Z\"\n                }\n            ]\n        },\n        {\n            \"id\": \"6c6eb611-b6dd-4cfc-ac46-96f49ed296b0\",\n            \"user_id\": \"d5e34629-99e0-40ac-8113-89a82316f63d\",\n            \"status\": \"Waiting for Payment\",\n            \"total_price\": 544,\n            \"shipping_address\": \"Jl Ancol Selatan 2\",\n            \"payment_method\": \"Bank Transfer\",\n            \"is_active\": true,\n            \"created_by\": \"system\",\n            \"updated_by\": \"system\",\n            \"created_at\": \"2024-09-03T02:44:59.320918Z\",\n            \"updated_at\": \"2024-09-03T02:44:59.320918Z\",\n            \"order_items\": [\n                {\n                    \"id\": \"f159ea19-e794-44d3-9c44-0c0b857de084\",\n                    \"product_id\": \"c636d485-2249-44ca-8ea4-cdb6ad53858d\",\n                    \"order_id\": \"6c6eb611-b6dd-4cfc-ac46-96f49ed296b0\",\n                    \"quantity\": 32,\n                    \"price_at_order\": 17,\n                    \"is_active\": true,\n                    \"created_by\": \"system\",\n                    \"updated_by\": \"system\",\n                    \"created_at\": \"2024-09-03T02:44:59.322684Z\",\n                    \"updated_at\": \"2024-09-03T02:44:59.322684Z\"\n                }\n            ]\n        },\n        {\n            \"id\": \"d0531da4-09b3-4c05-b579-ef3145c6c559\",\n            \"user_id\": \"d5e34629-99e0-40ac-8113-89a82316f63d\",\n            \"status\": \"Waiting for Payment\",\n            \"total_price\": 45,\n            \"shipping_address\": \"Jl Ancol Selatan 2\",\n            \"payment_method\": \"Bank Transfer\",\n            \"is_active\": true,\n            \"created_by\": \"system\",\n            \"updated_by\": \"system\",\n            \"created_at\": \"2024-09-03T02:44:51.37434Z\",\n            \"updated_at\": \"2024-09-03T02:44:51.37434Z\",\n            \"order_items\": [\n                {\n                    \"id\": \"27abb497-ec64-4fb3-960d-4df31c19906a\",\n                    \"product_id\": \"0c4cfe47-16c7-48dc-b8f0-a65587c93cd5\",\n                    \"order_id\": \"d0531da4-09b3-4c05-b579-ef3145c6c559\",\n                    \"quantity\": 3,\n                    \"price_at_order\": 15,\n                    \"is_active\": true,\n                    \"created_by\": \"system\",\n                    \"updated_by\": \"system\",\n                    \"created_at\": \"2024-09-03T02:44:51.376666Z\",\n                    \"updated_at\": \"2024-09-03T02:44:51.376666Z\"\n                }\n            ]\n        }\n    ]\n}"}],"_postman_id":"1b982e9b-f9c2-4591-8687-43880c5165d4"},{"name":"GetOrderByOrderIDService","id":"46fbbcc0-7b35-40cd-abf4-aa706b1d3a72","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3000/api/v1/order/1d071360-7fca-4c55-a2c2-2fe2c492b0df","urlObject":{"protocol":"http","port":"3000","path":["api","v1","order","1d071360-7fca-4c55-a2c2-2fe2c492b0df"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"786b1ab1-d65e-411d-949b-a8cac0cb8cc6","name":"Successful Response","originalRequest":{"method":"GET","header":[],"url":"http://localhost:3000/api/v1/order/1d071360-7fca-4c55-a2c2-2fe2c492b0df"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Allow-Headers","value":"Accept, Content-Type, Content-Length, Accept-Encoding, Authorization, X-CSRF-Token, credentials"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, DELETE, PUT, PATCH, OPTIONS, HEAD, TRACE"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:5173"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Sat, 31 Aug 2024 19:25:41 GMT"},{"key":"Content-Length","value":"736"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"message\": \"Success\",\n    \"data\": {\n        \"id\": \"1692eb08-bc78-46e2-83fd-59a8b8ff111c\",\n        \"user_id\": \"d5e34629-99e0-40ac-8113-89a82316f63d\",\n        \"status\": \"Waiting for Payment\",\n        \"total_price\": 36,\n        \"shipping_address\": \"Jl Ancol Selatan 2\",\n        \"payment_method\": \"Bank Transfer\",\n        \"is_active\": true,\n        \"created_by\": \"system\",\n        \"updated_by\": \"system\",\n        \"created_at\": \"2024-09-03T02:31:06.406824Z\",\n        \"updated_at\": \"2024-09-03T02:31:06.406824Z\",\n        \"order_items\": [\n            {\n                \"id\": \"b245c45a-51d5-4e4a-98a2-5b255653931f\",\n                \"product_id\": \"3c0eb80f-8f24-48d3-bd18-dc68eb8458dc\",\n                \"order_id\": \"1692eb08-bc78-46e2-83fd-59a8b8ff111c\",\n                \"quantity\": 3,\n                \"price_at_order\": 12,\n                \"is_active\": true,\n                \"created_by\": \"system\",\n                \"updated_by\": \"system\",\n                \"created_at\": \"2024-09-03T02:31:06.409207Z\",\n                \"updated_at\": \"2024-09-03T02:31:06.409207Z\"\n            }\n        ]\n    }\n}"}],"_postman_id":"46fbbcc0-7b35-40cd-abf4-aa706b1d3a72"},{"name":"GetAllOrderByUserIDService","id":"abce3f47-da26-4560-83ed-aa4015f833d8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3000/api/v1/orders/user/3e02b850-f9e3-4036-87ed-9803978ea847","urlObject":{"protocol":"http","port":"3000","path":["api","v1","orders","user","3e02b850-f9e3-4036-87ed-9803978ea847"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"4f565963-13f3-4100-9319-34f9cb6e986d","name":"Successful Response","originalRequest":{"method":"GET","header":[],"url":"http://localhost:3000/api/v1/orders/user/3e02b850-f9e3-4036-87ed-9803978ea847"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Allow-Headers","value":"Accept, Content-Type, Content-Length, Accept-Encoding, Authorization, X-CSRF-Token, credentials"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, DELETE, PUT, PATCH, OPTIONS, HEAD, TRACE"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:5173"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Sat, 31 Aug 2024 19:26:17 GMT"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"message\": \"Success\",\n    \"data\": [\n        {\n            \"id\": \"1692eb08-bc78-46e2-83fd-59a8b8ff111c\",\n            \"user_id\": \"d5e34629-99e0-40ac-8113-89a82316f63d\",\n            \"status\": \"Order Finished\",\n            \"total_price\": 36,\n            \"shipping_address\": \"Jl Ancol Selatan 2\",\n            \"payment_method\": \"Bank Transfer\",\n            \"is_active\": true,\n            \"created_by\": \"system\",\n            \"updated_by\": \"system\",\n            \"created_at\": \"2024-09-03T02:31:06.406824Z\",\n            \"updated_at\": \"2024-09-03T02:44:22.979915Z\",\n            \"order_items\": [\n                {\n                    \"id\": \"b245c45a-51d5-4e4a-98a2-5b255653931f\",\n                    \"product_id\": \"3c0eb80f-8f24-48d3-bd18-dc68eb8458dc\",\n                    \"order_id\": \"1692eb08-bc78-46e2-83fd-59a8b8ff111c\",\n                    \"quantity\": 3,\n                    \"price_at_order\": 12,\n                    \"is_active\": true,\n                    \"created_by\": \"system\",\n                    \"updated_by\": \"system\",\n                    \"created_at\": \"2024-09-03T02:31:06.409207Z\",\n                    \"updated_at\": \"2024-09-03T02:31:06.409207Z\"\n                }\n            ]\n        },\n        {\n            \"id\": \"158523fb-d3c3-433f-ac4b-efb91d79c28c\",\n            \"user_id\": \"d5e34629-99e0-40ac-8113-89a82316f63d\",\n            \"status\": \"Waiting for Payment\",\n            \"total_price\": 36,\n            \"shipping_address\": \"Jl Ancol Selatan 2\",\n            \"payment_method\": \"Bank Transfer\",\n            \"is_active\": true,\n            \"created_by\": \"system\",\n            \"updated_by\": \"system\",\n            \"created_at\": \"2024-09-03T02:44:44.318456Z\",\n            \"updated_at\": \"2024-09-03T02:44:44.318456Z\",\n            \"order_items\": [\n                {\n                    \"id\": \"0366c6e3-3106-4340-86ae-9c28e99f62cb\",\n                    \"product_id\": \"3c0eb80f-8f24-48d3-bd18-dc68eb8458dc\",\n                    \"order_id\": \"158523fb-d3c3-433f-ac4b-efb91d79c28c\",\n                    \"quantity\": 3,\n                    \"price_at_order\": 12,\n                    \"is_active\": true,\n                    \"created_by\": \"system\",\n                    \"updated_by\": \"system\",\n                    \"created_at\": \"2024-09-03T02:44:44.319723Z\",\n                    \"updated_at\": \"2024-09-03T02:44:44.319723Z\"\n                }\n            ]\n        },\n        {\n            \"id\": \"d0531da4-09b3-4c05-b579-ef3145c6c559\",\n            \"user_id\": \"d5e34629-99e0-40ac-8113-89a82316f63d\",\n            \"status\": \"Waiting for Payment\",\n            \"total_price\": 45,\n            \"shipping_address\": \"Jl Ancol Selatan 2\",\n            \"payment_method\": \"Bank Transfer\",\n            \"is_active\": true,\n            \"created_by\": \"system\",\n            \"updated_by\": \"system\",\n            \"created_at\": \"2024-09-03T02:44:51.37434Z\",\n            \"updated_at\": \"2024-09-03T02:44:51.37434Z\",\n            \"order_items\": [\n                {\n                    \"id\": \"27abb497-ec64-4fb3-960d-4df31c19906a\",\n                    \"product_id\": \"0c4cfe47-16c7-48dc-b8f0-a65587c93cd5\",\n                    \"order_id\": \"d0531da4-09b3-4c05-b579-ef3145c6c559\",\n                    \"quantity\": 3,\n                    \"price_at_order\": 15,\n                    \"is_active\": true,\n                    \"created_by\": \"system\",\n                    \"updated_by\": \"system\",\n                    \"created_at\": \"2024-09-03T02:44:51.376666Z\",\n                    \"updated_at\": \"2024-09-03T02:44:51.376666Z\"\n                }\n            ]\n        },\n        {\n            \"id\": \"1f2f3c07-8cac-42ec-a49a-a1fc11a1634c\",\n            \"user_id\": \"d5e34629-99e0-40ac-8113-89a82316f63d\",\n            \"status\": \"Waiting for Payment\",\n            \"total_price\": 105,\n            \"shipping_address\": \"Jl Ancol Selatan 2\",\n            \"payment_method\": \"Bank Transfer\",\n            \"is_active\": true,\n            \"created_by\": \"system\",\n            \"updated_by\": \"system\",\n            \"created_at\": \"2024-09-03T02:44:54.158397Z\",\n            \"updated_at\": \"2024-09-03T02:44:54.158397Z\",\n            \"order_items\": [\n                {\n                    \"id\": \"e8e31cc6-31ab-40e9-9ebe-050db536f9d1\",\n                    \"product_id\": \"933df708-5643-4087-a44e-60929324c04a\",\n                    \"order_id\": \"1f2f3c07-8cac-42ec-a49a-a1fc11a1634c\",\n                    \"quantity\": 3,\n                    \"price_at_order\": 35,\n                    \"is_active\": true,\n                    \"created_by\": \"system\",\n                    \"updated_by\": \"system\",\n                    \"created_at\": \"2024-09-03T02:44:54.15985Z\",\n                    \"updated_at\": \"2024-09-03T02:44:54.15985Z\"\n                }\n            ]\n        },\n        {\n            \"id\": \"6c6eb611-b6dd-4cfc-ac46-96f49ed296b0\",\n            \"user_id\": \"d5e34629-99e0-40ac-8113-89a82316f63d\",\n            \"status\": \"Waiting for Payment\",\n            \"total_price\": 544,\n            \"shipping_address\": \"Jl Ancol Selatan 2\",\n            \"payment_method\": \"Bank Transfer\",\n            \"is_active\": true,\n            \"created_by\": \"system\",\n            \"updated_by\": \"system\",\n            \"created_at\": \"2024-09-03T02:44:59.320918Z\",\n            \"updated_at\": \"2024-09-03T02:44:59.320918Z\",\n            \"order_items\": [\n                {\n                    \"id\": \"f159ea19-e794-44d3-9c44-0c0b857de084\",\n                    \"product_id\": \"c636d485-2249-44ca-8ea4-cdb6ad53858d\",\n                    \"order_id\": \"6c6eb611-b6dd-4cfc-ac46-96f49ed296b0\",\n                    \"quantity\": 32,\n                    \"price_at_order\": 17,\n                    \"is_active\": true,\n                    \"created_by\": \"system\",\n                    \"updated_by\": \"system\",\n                    \"created_at\": \"2024-09-03T02:44:59.322684Z\",\n                    \"updated_at\": \"2024-09-03T02:44:59.322684Z\"\n                }\n            ]\n        }\n    ]\n}"}],"_postman_id":"abce3f47-da26-4560-83ed-aa4015f833d8"},{"name":"GetAllOrderByUserIDAndStatusService","id":"cce143ea-03e2-4c21-8dfa-91b6293365f5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"user_id\": \"3e02b850-f9e3-4036-87ed-9803978ea847\",\r\n    \"status\": \"Waiting for Payment\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/v1/orders/user/status","urlObject":{"protocol":"http","port":"3000","path":["api","v1","orders","user","status"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"768fafec-1008-46b1-96c8-12e9b10a98a9","name":"Successful Response","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"user_id\": \"3e02b850-f9e3-4036-87ed-9803978ea847\",\r\n    \"status\": \"Order Finished\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/v1/orders/user/status"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Allow-Headers","value":"Accept, Content-Type, Content-Length, Accept-Encoding, Authorization, X-CSRF-Token, credentials"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, DELETE, PUT, PATCH, OPTIONS, HEAD, TRACE"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:5173"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Sun, 01 Sep 2024 20:07:25 GMT"},{"key":"Content-Length","value":"733"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"message\": \"Success\",\n    \"data\": [\n        {\n            \"id\": \"158523fb-d3c3-433f-ac4b-efb91d79c28c\",\n            \"user_id\": \"d5e34629-99e0-40ac-8113-89a82316f63d\",\n            \"status\": \"Waiting for Payment\",\n            \"total_price\": 36,\n            \"shipping_address\": \"Jl Ancol Selatan 2\",\n            \"payment_method\": \"Bank Transfer\",\n            \"is_active\": true,\n            \"created_by\": \"system\",\n            \"updated_by\": \"system\",\n            \"created_at\": \"2024-09-03T02:44:44.318456Z\",\n            \"updated_at\": \"2024-09-03T02:44:44.318456Z\",\n            \"order_items\": [\n                {\n                    \"id\": \"0366c6e3-3106-4340-86ae-9c28e99f62cb\",\n                    \"product_id\": \"3c0eb80f-8f24-48d3-bd18-dc68eb8458dc\",\n                    \"order_id\": \"158523fb-d3c3-433f-ac4b-efb91d79c28c\",\n                    \"quantity\": 3,\n                    \"price_at_order\": 12,\n                    \"is_active\": true,\n                    \"created_by\": \"system\",\n                    \"updated_by\": \"system\",\n                    \"created_at\": \"2024-09-03T02:44:44.319723Z\",\n                    \"updated_at\": \"2024-09-03T02:44:44.319723Z\"\n                }\n            ]\n        },\n        {\n            \"id\": \"d0531da4-09b3-4c05-b579-ef3145c6c559\",\n            \"user_id\": \"d5e34629-99e0-40ac-8113-89a82316f63d\",\n            \"status\": \"Waiting for Payment\",\n            \"total_price\": 45,\n            \"shipping_address\": \"Jl Ancol Selatan 2\",\n            \"payment_method\": \"Bank Transfer\",\n            \"is_active\": true,\n            \"created_by\": \"system\",\n            \"updated_by\": \"system\",\n            \"created_at\": \"2024-09-03T02:44:51.37434Z\",\n            \"updated_at\": \"2024-09-03T02:44:51.37434Z\",\n            \"order_items\": [\n                {\n                    \"id\": \"27abb497-ec64-4fb3-960d-4df31c19906a\",\n                    \"product_id\": \"0c4cfe47-16c7-48dc-b8f0-a65587c93cd5\",\n                    \"order_id\": \"d0531da4-09b3-4c05-b579-ef3145c6c559\",\n                    \"quantity\": 3,\n                    \"price_at_order\": 15,\n                    \"is_active\": true,\n                    \"created_by\": \"system\",\n                    \"updated_by\": \"system\",\n                    \"created_at\": \"2024-09-03T02:44:51.376666Z\",\n                    \"updated_at\": \"2024-09-03T02:44:51.376666Z\"\n                }\n            ]\n        },\n        {\n            \"id\": \"1f2f3c07-8cac-42ec-a49a-a1fc11a1634c\",\n            \"user_id\": \"d5e34629-99e0-40ac-8113-89a82316f63d\",\n            \"status\": \"Waiting for Payment\",\n            \"total_price\": 105,\n            \"shipping_address\": \"Jl Ancol Selatan 2\",\n            \"payment_method\": \"Bank Transfer\",\n            \"is_active\": true,\n            \"created_by\": \"system\",\n            \"updated_by\": \"system\",\n            \"created_at\": \"2024-09-03T02:44:54.158397Z\",\n            \"updated_at\": \"2024-09-03T02:44:54.158397Z\",\n            \"order_items\": [\n                {\n                    \"id\": \"e8e31cc6-31ab-40e9-9ebe-050db536f9d1\",\n                    \"product_id\": \"933df708-5643-4087-a44e-60929324c04a\",\n                    \"order_id\": \"1f2f3c07-8cac-42ec-a49a-a1fc11a1634c\",\n                    \"quantity\": 3,\n                    \"price_at_order\": 35,\n                    \"is_active\": true,\n                    \"created_by\": \"system\",\n                    \"updated_by\": \"system\",\n                    \"created_at\": \"2024-09-03T02:44:54.15985Z\",\n                    \"updated_at\": \"2024-09-03T02:44:54.15985Z\"\n                }\n            ]\n        },\n        {\n            \"id\": \"6c6eb611-b6dd-4cfc-ac46-96f49ed296b0\",\n            \"user_id\": \"d5e34629-99e0-40ac-8113-89a82316f63d\",\n            \"status\": \"Waiting for Payment\",\n            \"total_price\": 544,\n            \"shipping_address\": \"Jl Ancol Selatan 2\",\n            \"payment_method\": \"Bank Transfer\",\n            \"is_active\": true,\n            \"created_by\": \"system\",\n            \"updated_by\": \"system\",\n            \"created_at\": \"2024-09-03T02:44:59.320918Z\",\n            \"updated_at\": \"2024-09-03T02:44:59.320918Z\",\n            \"order_items\": [\n                {\n                    \"id\": \"f159ea19-e794-44d3-9c44-0c0b857de084\",\n                    \"product_id\": \"c636d485-2249-44ca-8ea4-cdb6ad53858d\",\n                    \"order_id\": \"6c6eb611-b6dd-4cfc-ac46-96f49ed296b0\",\n                    \"quantity\": 32,\n                    \"price_at_order\": 17,\n                    \"is_active\": true,\n                    \"created_by\": \"system\",\n                    \"updated_by\": \"system\",\n                    \"created_at\": \"2024-09-03T02:44:59.322684Z\",\n                    \"updated_at\": \"2024-09-03T02:44:59.322684Z\"\n                }\n            ]\n        }\n    ]\n}"}],"_postman_id":"cce143ea-03e2-4c21-8dfa-91b6293365f5"},{"name":"DeleteOrderService","id":"4fad15ec-d6d7-44b6-b4da-5b6edaa6bf82","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"id\": \"6c6eb611-b6dd-4cfc-ac46-96f49ed296b0\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/v1/order/delete","urlObject":{"protocol":"http","port":"3000","path":["api","v1","order","delete"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"8a2f307d-0e6c-47a6-9213-56e2c59b263e","name":"Successful Response","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"id\": \"4a84ed39-8caf-4cde-9f35-1fc493a0d527\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/v1/order/delete"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Allow-Headers","value":"Accept, Content-Type, Content-Length, Accept-Encoding, Authorization, X-CSRF-Token, credentials"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, DELETE, PUT, PATCH, OPTIONS, HEAD, TRACE"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:5173"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Sat, 31 Aug 2024 19:33:50 GMT"},{"key":"Content-Length","value":"734"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"message\": \"Success\",\n    \"data\": {\n        \"id\": \"22a2eff9-c5fc-4df2-a248-5d00af0a164f\",\n        \"user_id\": \"d5e34629-99e0-40ac-8113-89a82316f63d\",\n        \"status\": \"Waiting for Payment\",\n        \"total_price\": 651,\n        \"shipping_address\": \"Jl Ancol Selatan 2\",\n        \"payment_method\": \"Bank Transfer\",\n        \"is_active\": true,\n        \"created_by\": \"system\",\n        \"updated_by\": \"system\",\n        \"created_at\": \"2024-09-03T02:41:11.098542Z\",\n        \"updated_at\": \"2024-09-03T02:41:11.098542Z\",\n        \"order_items\": [\n            {\n                \"id\": \"f591617f-f765-4ae2-824c-54aa78d85308\",\n                \"product_id\": \"c636d485-2249-44ca-8ea4-cdb6ad53858d\",\n                \"order_id\": \"22a2eff9-c5fc-4df2-a248-5d00af0a164f\",\n                \"quantity\": 24,\n                \"price_at_order\": 17,\n                \"is_active\": true,\n                \"created_by\": \"system\",\n                \"updated_by\": \"system\",\n                \"created_at\": \"2024-09-03T02:41:11.102016Z\",\n                \"updated_at\": \"2024-09-03T02:41:11.102016Z\"\n            },\n            {\n                \"id\": \"e2f21a0a-eb5b-43a1-9677-4785b351c46a\",\n                \"product_id\": \"e809f59f-e3a9-44ab-a475-7898fb3cb8f8\",\n                \"order_id\": \"22a2eff9-c5fc-4df2-a248-5d00af0a164f\",\n                \"quantity\": 5,\n                \"price_at_order\": 48.6,\n                \"is_active\": true,\n                \"created_by\": \"system\",\n                \"updated_by\": \"system\",\n                \"created_at\": \"2024-09-03T02:41:11.102016Z\",\n                \"updated_at\": \"2024-09-03T02:41:11.102016Z\"\n            }\n        ]\n    }\n}"}],"_postman_id":"4fad15ec-d6d7-44b6-b4da-5b6edaa6bf82"},{"name":"PayOrderService","id":"41b72a36-7116-411d-9416-9627f0122aa3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"id\": \"164d7c7d-4802-4e11-a481-e9097da88844\",\r\n    \"payment_method\": \"\",\r\n    \"confirm_order\": true\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/v1/order/pay","urlObject":{"protocol":"http","port":"3000","path":["api","v1","order","pay"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"607b1581-ea41-4370-89ab-3c84885024f5","name":"Successful Response","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"id\": \"947dbf2a-7687-4aba-8c2e-b8ba36ba79a7\",\r\n    \"payment_method\": \"\",\r\n    \"confirm_order\": true\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/v1/order/pay"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Allow-Headers","value":"Accept, Content-Type, Content-Length, Accept-Encoding, Authorization, X-CSRF-Token, credentials"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, DELETE, PUT, PATCH, OPTIONS, HEAD, TRACE"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:5173"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Sat, 31 Aug 2024 19:29:22 GMT"},{"key":"Content-Length","value":"1066"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"message\": \"Success\",\n    \"data\": {\n        \"id\": \"1692eb08-bc78-46e2-83fd-59a8b8ff111c\",\n        \"user_id\": \"d5e34629-99e0-40ac-8113-89a82316f63d\",\n        \"status\": \"Order Paid\",\n        \"total_price\": 36,\n        \"shipping_address\": \"Jl Ancol Selatan 2\",\n        \"payment_method\": \"Bank Transfer\",\n        \"is_active\": true,\n        \"created_by\": \"system\",\n        \"updated_by\": \"system\",\n        \"created_at\": \"2024-09-03T02:31:06.406824Z\",\n        \"updated_at\": \"2024-09-03T02:44:10.0172839+07:00\",\n        \"order_items\": [\n            {\n                \"id\": \"b245c45a-51d5-4e4a-98a2-5b255653931f\",\n                \"product_id\": \"3c0eb80f-8f24-48d3-bd18-dc68eb8458dc\",\n                \"order_id\": \"1692eb08-bc78-46e2-83fd-59a8b8ff111c\",\n                \"quantity\": 3,\n                \"price_at_order\": 12,\n                \"is_active\": true,\n                \"created_by\": \"system\",\n                \"updated_by\": \"system\",\n                \"created_at\": \"2024-09-03T02:31:06.409207Z\",\n                \"updated_at\": \"2024-09-03T02:31:06.409207Z\"\n            }\n        ]\n    }\n}"}],"_postman_id":"41b72a36-7116-411d-9416-9627f0122aa3"},{"name":"FinishOrderService","id":"c2a2a2ef-2ea8-4574-8cc8-160bb703fc57","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"id\": \"1692eb08-bc78-46e2-83fd-59a8b8ff111c\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/v1/order/finish","urlObject":{"protocol":"http","port":"3000","path":["api","v1","order","finish"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"d55ef493-9c62-4d01-9815-aabe82d39096","name":"Successful Response","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"id\": \"164d7c7d-4802-4e11-a481-e9097da88844\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/v1/order/finish"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Allow-Headers","value":"Accept, Content-Type, Content-Length, Accept-Encoding, Authorization, X-CSRF-Token, credentials"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, DELETE, PUT, PATCH, OPTIONS, HEAD, TRACE"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:5173"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Sun, 01 Sep 2024 20:05:57 GMT"},{"key":"Content-Length","value":"737"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"message\": \"Success\",\n    \"data\": {\n        \"id\": \"1692eb08-bc78-46e2-83fd-59a8b8ff111c\",\n        \"user_id\": \"d5e34629-99e0-40ac-8113-89a82316f63d\",\n        \"status\": \"Order Finished\",\n        \"total_price\": 36,\n        \"shipping_address\": \"Jl Ancol Selatan 2\",\n        \"payment_method\": \"Bank Transfer\",\n        \"is_active\": true,\n        \"created_by\": \"system\",\n        \"updated_by\": \"system\",\n        \"created_at\": \"2024-09-03T02:31:06.406824Z\",\n        \"updated_at\": \"2024-09-03T02:44:22.979915+07:00\",\n        \"order_items\": [\n            {\n                \"id\": \"b245c45a-51d5-4e4a-98a2-5b255653931f\",\n                \"product_id\": \"3c0eb80f-8f24-48d3-bd18-dc68eb8458dc\",\n                \"order_id\": \"1692eb08-bc78-46e2-83fd-59a8b8ff111c\",\n                \"quantity\": 3,\n                \"price_at_order\": 12,\n                \"is_active\": true,\n                \"created_by\": \"system\",\n                \"updated_by\": \"system\",\n                \"created_at\": \"2024-09-03T02:31:06.409207Z\",\n                \"updated_at\": \"2024-09-03T02:31:06.409207Z\"\n            }\n        ]\n    }\n}"}],"_postman_id":"c2a2a2ef-2ea8-4574-8cc8-160bb703fc57"},{"name":"CancelOrderService","id":"2a8ef4f3-c6d9-443e-83ac-b2f341d5073e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"id\": \"911f2faa-52f8-4166-99ab-a850c1ad0c17\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/v1/order/cancel","urlObject":{"protocol":"http","port":"3000","path":["api","v1","order","cancel"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"1359e315-cbe7-46e7-bcd0-3b754177b3c5","name":"Successful Response","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"id\": \"911f2faa-52f8-4166-99ab-a850c1ad0c17\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/v1/order/cancel"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Allow-Headers","value":"Accept, Content-Type, Content-Length, Accept-Encoding, Authorization, X-CSRF-Token, credentials"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, DELETE, PUT, PATCH, OPTIONS, HEAD, TRACE"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:5173"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Tue, 03 Sep 2024 17:57:40 GMT"},{"key":"Content-Length","value":"1076"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"message\": \"Success\",\n    \"data\": {\n        \"id\": \"911f2faa-52f8-4166-99ab-a850c1ad0c17\",\n        \"user_id\": \"d5e34629-99e0-40ac-8113-89a82316f63d\",\n        \"status\": \"Order Cancelled\",\n        \"total_price\": 135,\n        \"shipping_address\": \"Jl Ancol Selatan 2\",\n        \"payment_method\": \"Bank Transfer\",\n        \"is_active\": true,\n        \"created_by\": \"system\",\n        \"updated_by\": \"system\",\n        \"created_at\": \"2024-09-04T00:56:30.76957Z\",\n        \"updated_at\": \"2024-09-04T00:57:40.8118935+07:00\",\n        \"order_items\": [\n            {\n                \"id\": \"87e8f0f5-1f2a-4644-8bcd-b2d643fb36ed\",\n                \"product_id\": \"0037485d-0827-45a3-8840-3b25d15a91db\",\n                \"order_id\": \"911f2faa-52f8-4166-99ab-a850c1ad0c17\",\n                \"quantity\": 2,\n                \"price_at_order\": 30,\n                \"is_active\": true,\n                \"created_by\": \"system\",\n                \"updated_by\": \"system\",\n                \"created_at\": \"2024-09-04T00:56:30.781081Z\",\n                \"updated_at\": \"2024-09-04T00:56:30.781081Z\"\n            },\n            {\n                \"id\": \"fcabf5d6-cec1-4aa3-a587-dd38f9fe510b\",\n                \"product_id\": \"037c4188-25aa-4dbc-8fb1-80a89a45e171\",\n                \"order_id\": \"911f2faa-52f8-4166-99ab-a850c1ad0c17\",\n                \"quantity\": 5,\n                \"price_at_order\": 15,\n                \"is_active\": true,\n                \"created_by\": \"system\",\n                \"updated_by\": \"system\",\n                \"created_at\": \"2024-09-04T00:56:30.781081Z\",\n                \"updated_at\": \"2024-09-04T00:56:30.781081Z\"\n            }\n        ]\n    }\n}"}],"_postman_id":"2a8ef4f3-c6d9-443e-83ac-b2f341d5073e"}],"id":"f2ca7dfe-d648-437b-b4bf-a5c07a03e950","description":"<ol>\n<li><p><strong>GetAllOrderService</strong>:</p>\n<ol>\n<li><p><strong>Functionality</strong>: Retrieves a list of all orders placed within the system.</p>\n</li>\n<li><p><strong>Implementation</strong>: Utilizes GORM queries to fetch order data, supporting pagination for handling large datasets.</p>\n</li>\n</ol>\n</li>\n<li><p><strong>GetOrderByOrderIDService:</strong></p>\n<ol>\n<li><p><strong>Functionality</strong>: Fetches details of a specific order using its OrderID.</p>\n</li>\n<li><p><strong>Implementation</strong>: GORM queries are employed to accurately locate and return the order details from the database.</p>\n</li>\n</ol>\n</li>\n<li><p><strong>GetAllOrderByUserIDService</strong>:</p>\n<ol>\n<li><p><strong>Functionality</strong>: Retrieves all orders associated with a specific user based on their UserID.</p>\n</li>\n<li><p><strong>Implementation</strong>: Uses GORM queries to filter orders by UserID, ensuring all relevant orders for the user are retrieved.</p>\n</li>\n</ol>\n</li>\n<li><p><strong>GetAllOrderByUserIDAndStatusService</strong>:</p>\n<ol>\n<li><p><strong>Functionality</strong>: Fetches orders for a specific user filtered by their UserID and order status (e.g., pending, completed).</p>\n</li>\n<li><p><strong>Implementation</strong>: GORM is used to filter and fetch orders by both UserID and status, providing more granular order data.</p>\n</li>\n</ol>\n</li>\n<li><p><strong>DeleteOrderService</strong>:</p>\n<ol>\n<li><p><strong>Functionality</strong>: Cancels and removes an order from the system.</p>\n</li>\n<li><p><strong>Implementation</strong>: Deletes the order record, ensuring that it is no longer accessible or processed.</p>\n</li>\n</ol>\n</li>\n<li><p><strong>PayOrderService</strong>:</p>\n<ol>\n<li><p><strong>Functionality</strong>: Handles the payment process for an order.</p>\n</li>\n<li><p><strong>Implementation</strong>: Manages payment verification, processing, and updates the order status to 'Paid' upon successful transaction.</p>\n</li>\n</ol>\n</li>\n<li><p><strong>FinishOrderService</strong>:</p>\n<ol>\n<li><p><strong>Functionality</strong>: Marks an order as completed after all processes (payment, shipment, etc.) are finalized.</p>\n</li>\n<li><p><strong>Implementation</strong>: Updates the order status to 'Completed' and ensures all necessary actions for order fulfillment are recorded.</p>\n</li>\n</ol>\n</li>\n</ol>\n","_postman_id":"f2ca7dfe-d648-437b-b4bf-a5c07a03e950"},{"name":"OrderItemsService","item":[{"name":"GetAllOrderItemsService","id":"eaadc006-a31d-40c1-b3a2-9839354e9bc3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3000/api/v1/order-items?page=1&limit=10&order_by=id&order_type=asc","urlObject":{"protocol":"http","port":"3000","path":["api","v1","order-items"],"host":["localhost"],"query":[{"key":"page","value":"1"},{"key":"limit","value":"10"},{"key":"order_by","value":"id"},{"key":"order_type","value":"asc"}],"variable":[]}},"response":[{"id":"2e61c6b2-4608-4bbd-ab48-989645af9778","name":"Successful Response","originalRequest":{"method":"GET","header":[],"url":"http://localhost:3000/api/v1/order-items/104b1f76-35f7-4c64-b4df-7363b0388f8e"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Allow-Headers","value":"Accept, Content-Type, Content-Length, Accept-Encoding, Authorization, X-CSRF-Token, credentials"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, DELETE, PUT, PATCH, OPTIONS, HEAD, TRACE"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:5173"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Mon, 02 Sep 2024 18:24:44 GMT"},{"key":"Content-Length","value":"371"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"message\": \"Success\",\n    \"page\": 1,\n    \"limit\": 10,\n    \"order_by\": \"id\",\n    \"order_type\": \"asc\",\n    \"total_data\": 5,\n    \"total_take\": 5,\n    \"total_page\": 1,\n    \"data\": [\n        {\n            \"id\": \"0366c6e3-3106-4340-86ae-9c28e99f62cb\",\n            \"product_id\": \"3c0eb80f-8f24-48d3-bd18-dc68eb8458dc\",\n            \"order_id\": \"158523fb-d3c3-433f-ac4b-efb91d79c28c\",\n            \"quantity\": 3,\n            \"price_at_order\": 12,\n            \"is_active\": true,\n            \"created_by\": \"system\",\n            \"updated_by\": \"system\",\n            \"created_at\": \"2024-09-03T02:44:44.319723Z\",\n            \"updated_at\": \"2024-09-03T02:44:44.319723Z\"\n        },\n        {\n            \"id\": \"27abb497-ec64-4fb3-960d-4df31c19906a\",\n            \"product_id\": \"0c4cfe47-16c7-48dc-b8f0-a65587c93cd5\",\n            \"order_id\": \"d0531da4-09b3-4c05-b579-ef3145c6c559\",\n            \"quantity\": 3,\n            \"price_at_order\": 15,\n            \"is_active\": true,\n            \"created_by\": \"system\",\n            \"updated_by\": \"system\",\n            \"created_at\": \"2024-09-03T02:44:51.376666Z\",\n            \"updated_at\": \"2024-09-03T02:44:51.376666Z\"\n        },\n        {\n            \"id\": \"b245c45a-51d5-4e4a-98a2-5b255653931f\",\n            \"product_id\": \"3c0eb80f-8f24-48d3-bd18-dc68eb8458dc\",\n            \"order_id\": \"1692eb08-bc78-46e2-83fd-59a8b8ff111c\",\n            \"quantity\": 3,\n            \"price_at_order\": 12,\n            \"is_active\": true,\n            \"created_by\": \"system\",\n            \"updated_by\": \"system\",\n            \"created_at\": \"2024-09-03T02:31:06.409207Z\",\n            \"updated_at\": \"2024-09-03T02:31:06.409207Z\"\n        },\n        {\n            \"id\": \"e8e31cc6-31ab-40e9-9ebe-050db536f9d1\",\n            \"product_id\": \"933df708-5643-4087-a44e-60929324c04a\",\n            \"order_id\": \"1f2f3c07-8cac-42ec-a49a-a1fc11a1634c\",\n            \"quantity\": 3,\n            \"price_at_order\": 35,\n            \"is_active\": true,\n            \"created_by\": \"system\",\n            \"updated_by\": \"system\",\n            \"created_at\": \"2024-09-03T02:44:54.15985Z\",\n            \"updated_at\": \"2024-09-03T02:44:54.15985Z\"\n        },\n        {\n            \"id\": \"f159ea19-e794-44d3-9c44-0c0b857de084\",\n            \"product_id\": \"c636d485-2249-44ca-8ea4-cdb6ad53858d\",\n            \"order_id\": \"6c6eb611-b6dd-4cfc-ac46-96f49ed296b0\",\n            \"quantity\": 32,\n            \"price_at_order\": 17,\n            \"is_active\": true,\n            \"created_by\": \"system\",\n            \"updated_by\": \"system\",\n            \"created_at\": \"2024-09-03T02:44:59.322684Z\",\n            \"updated_at\": \"2024-09-03T02:44:59.322684Z\"\n        }\n    ]\n}"},{"id":"1bd25752-bf3c-4b6c-8605-08a3ecbc3d55","name":"Error Response","originalRequest":{"method":"GET","header":[],"url":"http://localhost:3000/api/v1/order-items/104b1f76-35f7-4c64-b4df-7363b0388f8e"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Allow-Headers","value":"Accept, Content-Type, Content-Length, Accept-Encoding, Authorization, X-CSRF-Token, credentials"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, DELETE, PUT, PATCH, OPTIONS, HEAD, TRACE"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:5173"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Mon, 02 Sep 2024 18:24:23 GMT"},{"key":"Content-Length","value":"53"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"code\": 401,\n        \"message\": \"Unauthorized token not found\"\n    },\n\n    {\n        \"code\": 400,\n        \"message\": \"Bad Request: invalid UUID format\"\n    },\n    \n    {\n        \"code\": 404,\n        \"message\": \"Not Found: Order Item not exist\"\n    }\n]"}],"_postman_id":"eaadc006-a31d-40c1-b3a2-9839354e9bc3"},{"name":"GetOrderItemByIDService","id":"0157b980-093f-4f4c-861d-11896d8358c2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3000/api/v1/order-items/104b1f76-35f7-4c64-b4df-7363b0388f8e","urlObject":{"protocol":"http","port":"3000","path":["api","v1","order-items","104b1f76-35f7-4c64-b4df-7363b0388f8e"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"b5892019-0f7c-440d-94e1-d5f848e46ee2","name":"Successful Response","originalRequest":{"method":"GET","header":[],"url":"http://localhost:3000/api/v1/order-items/0366c6e3-3106-4340-86ae-9c28e99f62cb"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Allow-Headers","value":"Accept, Content-Type, Content-Length, Accept-Encoding, Authorization, X-CSRF-Token, credentials"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, DELETE, PUT, PATCH, OPTIONS, HEAD, TRACE"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:5173"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Mon, 02 Sep 2024 18:26:31 GMT"},{"key":"Content-Length","value":"371"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"message\": \"Success\",\n    \"data\": {\n        \"id\": \"0366c6e3-3106-4340-86ae-9c28e99f62cb\",\n        \"product_id\": \"3c0eb80f-8f24-48d3-bd18-dc68eb8458dc\",\n        \"order_id\": \"158523fb-d3c3-433f-ac4b-efb91d79c28c\",\n        \"quantity\": 3,\n        \"price_at_order\": 12,\n        \"is_active\": true,\n        \"created_by\": \"system\",\n        \"updated_by\": \"system\",\n        \"created_at\": \"2024-09-03T02:44:44.319723Z\",\n        \"updated_at\": \"2024-09-03T02:44:44.319723Z\"\n    }\n}"},{"id":"bcbaa1a5-6d54-4745-9053-27fca88d5fa4","name":"Error Response","originalRequest":{"method":"GET","header":[],"url":"http://localhost:3000/api/v1/order-items/104b1f76-35f7-4c64-b4df-7363b0388f8e"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Allow-Headers","value":"Accept, Content-Type, Content-Length, Accept-Encoding, Authorization, X-CSRF-Token, credentials"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, DELETE, PUT, PATCH, OPTIONS, HEAD, TRACE"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:5173"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Mon, 02 Sep 2024 18:24:23 GMT"},{"key":"Content-Length","value":"53"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"code\": 401,\n        \"message\": \"Unauthorized token not found\"\n    },\n\n    {\n        \"code\": 400,\n        \"message\": \"Bad Request: invalid UUID format\"\n    },\n    \n    {\n        \"code\": 404,\n        \"message\": \"Not Found: Order Item not exist\"\n    }\n]"}],"_postman_id":"0157b980-093f-4f4c-861d-11896d8358c2"},{"name":"GetAllOrderItemsByOrderIDService","id":"5c4a1409-0576-44c0-81b1-4fe819be8960","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3000/api/v1/order-items/order/d768094b-bab7-47db-a4b6-c03df8c58e89","urlObject":{"protocol":"http","port":"3000","path":["api","v1","order-items","order","d768094b-bab7-47db-a4b6-c03df8c58e89"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"5b9e29ac-df09-4f44-82fd-4f527c671f25","name":"Successful Response","originalRequest":{"method":"GET","header":[],"url":"http://localhost:3000/api/v1/order-items/order/d768094b-bab7-47db-a4b6-c03df8c58e89"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Allow-Headers","value":"Accept, Content-Type, Content-Length, Accept-Encoding, Authorization, X-CSRF-Token, credentials"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, DELETE, PUT, PATCH, OPTIONS, HEAD, TRACE"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:5173"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Mon, 02 Sep 2024 18:27:24 GMT"},{"key":"Content-Length","value":"704"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"message\": \"Success\",\n    \"data\": [\n        {\n            \"id\": \"0366c6e3-3106-4340-86ae-9c28e99f62cb\",\n            \"product_id\": \"3c0eb80f-8f24-48d3-bd18-dc68eb8458dc\",\n            \"order_id\": \"158523fb-d3c3-433f-ac4b-efb91d79c28c\",\n            \"quantity\": 3,\n            \"price_at_order\": 12,\n            \"is_active\": true,\n            \"created_by\": \"system\",\n            \"updated_by\": \"system\",\n            \"created_at\": \"2024-09-03T02:44:44.319723Z\",\n            \"updated_at\": \"2024-09-03T02:44:44.319723Z\"\n        }\n    ]\n}"},{"id":"1d067d15-742a-4e39-94c1-344be7e705b2","name":"Error Response","originalRequest":{"method":"GET","header":[],"url":"http://localhost:3000/api/v1/order-items/104b1f76-35f7-4c64-b4df-7363b0388f8e"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Allow-Headers","value":"Accept, Content-Type, Content-Length, Accept-Encoding, Authorization, X-CSRF-Token, credentials"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, DELETE, PUT, PATCH, OPTIONS, HEAD, TRACE"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:5173"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Mon, 02 Sep 2024 18:24:23 GMT"},{"key":"Content-Length","value":"53"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"code\": 401,\n        \"message\": \"Unauthorized token not found\"\n    },\n\n    {\n        \"code\": 400,\n        \"message\": \"Bad Request: invalid UUID format\"\n    },\n    \n    {\n        \"code\": 404,\n        \"message\": \"Not Found: Order Item not exist\"\n    }\n]"}],"_postman_id":"5c4a1409-0576-44c0-81b1-4fe819be8960"},{"name":"GetAllOrderItemsByProductIDService","id":"2b2133f1-98d0-4d1a-a42c-b428666222a2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3000/api/v1/order-items/product/51ac6a02-22cd-4666-a08b-37027ea46ed2","urlObject":{"protocol":"http","port":"3000","path":["api","v1","order-items","product","51ac6a02-22cd-4666-a08b-37027ea46ed2"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"7c0f2fdb-d117-488f-8107-11494c23df1a","name":"Successful Response","originalRequest":{"method":"GET","header":[],"url":"http://localhost:3000/api/v1/order-items/product/51ac6a02-22cd-4666-a08b-37027ea46ed2"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Allow-Headers","value":"Accept, Content-Type, Content-Length, Accept-Encoding, Authorization, X-CSRF-Token, credentials"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, DELETE, PUT, PATCH, OPTIONS, HEAD, TRACE"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:5173"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Mon, 02 Sep 2024 18:28:06 GMT"},{"key":"Content-Length","value":"703"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"message\": \"Success\",\n    \"data\": [\n        {\n            \"id\": \"b245c45a-51d5-4e4a-98a2-5b255653931f\",\n            \"product_id\": \"3c0eb80f-8f24-48d3-bd18-dc68eb8458dc\",\n            \"order_id\": \"1692eb08-bc78-46e2-83fd-59a8b8ff111c\",\n            \"quantity\": 3,\n            \"price_at_order\": 12,\n            \"is_active\": true,\n            \"created_by\": \"system\",\n            \"updated_by\": \"system\",\n            \"created_at\": \"2024-09-03T02:31:06.409207Z\",\n            \"updated_at\": \"2024-09-03T02:31:06.409207Z\"\n        },\n        {\n            \"id\": \"0366c6e3-3106-4340-86ae-9c28e99f62cb\",\n            \"product_id\": \"3c0eb80f-8f24-48d3-bd18-dc68eb8458dc\",\n            \"order_id\": \"158523fb-d3c3-433f-ac4b-efb91d79c28c\",\n            \"quantity\": 3,\n            \"price_at_order\": 12,\n            \"is_active\": true,\n            \"created_by\": \"system\",\n            \"updated_by\": \"system\",\n            \"created_at\": \"2024-09-03T02:44:44.319723Z\",\n            \"updated_at\": \"2024-09-03T02:44:44.319723Z\"\n        }\n    ]\n}"},{"id":"7a504918-cf97-42ef-ae4e-ef0899e4947c","name":"Error Response","originalRequest":{"method":"GET","header":[],"url":"http://localhost:3000/api/v1/order-items/104b1f76-35f7-4c64-b4df-7363b0388f8e"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Allow-Headers","value":"Accept, Content-Type, Content-Length, Accept-Encoding, Authorization, X-CSRF-Token, credentials"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, DELETE, PUT, PATCH, OPTIONS, HEAD, TRACE"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:5173"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Mon, 02 Sep 2024 18:24:23 GMT"},{"key":"Content-Length","value":"53"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"code\": 401,\n        \"message\": \"Unauthorized token not found\"\n    },\n\n    {\n        \"code\": 400,\n        \"message\": \"Bad Request: invalid UUID format\"\n    },\n    \n    {\n        \"code\": 404,\n        \"message\": \"Not Found: Order Item not exist\"\n    }\n]"}],"_postman_id":"2b2133f1-98d0-4d1a-a42c-b428666222a2"}],"id":"eae5081a-ca27-44f0-bb1f-9888eb4f8e4a","description":"<ol>\n<li><p><strong>GetAllOrderItemsService</strong>:</p>\n<ol>\n<li><p><strong>Functionality</strong>: Retrieves a list of all items included in orders across the system.</p>\n</li>\n<li><p><strong>Implementation</strong>: Uses GORM queries to fetch order item data, supporting pagination for large datasets.</p>\n</li>\n</ol>\n</li>\n<li><p><strong>GetOrderItemByIDService</strong>:</p>\n<ol>\n<li><p><strong>Functionality</strong>: Fetches details of a specific order item using its OrderItemID.</p>\n</li>\n<li><p><strong>Implementation</strong>: GORM queries are used to accurately locate and return the order item details from the database.</p>\n</li>\n</ol>\n</li>\n<li><p><strong>GetAllOrderItemsByOrderIDService</strong>:</p>\n<ol>\n<li><p><strong>Functionality</strong>: Retrieves all items associated with a specific order based on its OrderID.</p>\n</li>\n<li><p><strong>Implementation</strong>: Utilizes GORM queries to filter and fetch items by OrderID, ensuring all items for a particular order are retrieved.</p>\n</li>\n</ol>\n</li>\n<li><p><strong>GetAllOrderItemsByProductIDService</strong>:</p>\n<ol>\n<li><p><strong>Functionality</strong>: Fetches all order items associated with a specific product based on its ProductID.</p>\n</li>\n<li><p><strong>Implementation</strong>: Uses GORM queries to filter and fetch order items by ProductID, providing data on how often a product has been ordered.</p>\n</li>\n</ol>\n</li>\n</ol>\n","_postman_id":"eae5081a-ca27-44f0-bb1f-9888eb4f8e4a"}]}