{"info":{"_postman_id":"2407941e-030f-47c5-a337-588807702c7d","name":"BuyGrove API (GO)","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"29942543","collectionId":"2407941e-030f-47c5-a337-588807702c7d","publishedId":"2sAYJ6CKyP","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2024-12-28T01:05:21.000Z"},"item":[{"name":"Auth","item":[{"name":"Login","id":"bbaab025-92a8-4192-b0e8-dc265e0e2103","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"test@test.com\",\r\n    \"password\": \"12345678\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/auth/login","urlObject":{"protocol":"http","port":"8080","path":["auth","login"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"bbaab025-92a8-4192-b0e8-dc265e0e2103"},{"name":"Register","id":"8ddb6436-5588-455e-ae7a-fb98d3ca4718","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"test@test.com\",\r\n    \"password\": \"12345678\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/auth/register","urlObject":{"protocol":"http","port":"8080","path":["auth","register"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"8ddb6436-5588-455e-ae7a-fb98d3ca4718"}],"id":"e8064ce1-6c4d-4605-a542-6ce735f01102","_postman_id":"e8064ce1-6c4d-4605-a542-6ce735f01102","description":""},{"name":"Product","item":[{"name":"Create new product (admin)","id":"8cca5a3d-04de-46f3-a825-5e31b14bdaa4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"test@test.com\",\r\n    \"description\": \"12345678\",\r\n    \"price\": 4500\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/products","urlObject":{"protocol":"http","port":"8080","path":["api","products"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"8cca5a3d-04de-46f3-a825-5e31b14bdaa4"},{"name":"Fetch products","id":"af8c23c0-6465-4e65-b7aa-7ea5a50b9d2d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:8080/api/products","urlObject":{"protocol":"http","port":"8080","path":["api","products"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"af8c23c0-6465-4e65-b7aa-7ea5a50b9d2d"},{"name":"Update product (admin)","id":"c77fa4ff-41f7-45c1-a6d3-a30fb4e89bc9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"Food\",\r\n    \"description\": \"12345678\",\r\n    \"price\": 4500\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/products/1","urlObject":{"protocol":"http","port":"8080","path":["api","products","1"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"c77fa4ff-41f7-45c1-a6d3-a30fb4e89bc9"},{"name":"Delete product (admin)","id":"efad5f0c-d3c4-408c-b175-42a67066cc6c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"DELETE","header":[],"url":"http://localhost:8080/api/products/1","urlObject":{"protocol":"http","port":"8080","path":["api","products","1"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"efad5f0c-d3c4-408c-b175-42a67066cc6c"}],"id":"8cf27801-241d-4bae-8a88-c0e845a82b36","_postman_id":"8cf27801-241d-4bae-8a88-c0e845a82b36","description":""},{"name":"Order","item":[{"name":"Create order","id":"e8867bcb-d1d5-4429-b7da-641a836a7eee","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"product_id\": 1\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/orders","urlObject":{"protocol":"http","port":"8080","path":["api","orders"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"e8867bcb-d1d5-4429-b7da-641a836a7eee"},{"name":"Get user order","id":"147b54e2-01eb-4adb-936e-62dd135b2937","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:8080/api/orders","urlObject":{"protocol":"http","port":"8080","path":["api","orders"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"147b54e2-01eb-4adb-936e-62dd135b2937"},{"name":"Cancel user order","id":"3e2d67f8-26e8-43a1-9a6d-d54f3f73767c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"PUT","header":[],"url":"http://localhost:8080/api/orders/2/cancel","urlObject":{"protocol":"http","port":"8080","path":["api","orders","2","cancel"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"3e2d67f8-26e8-43a1-9a6d-d54f3f73767c"},{"name":"Update order status (admin)","id":"b77cd0d9-7345-4217-8a6e-23e9f03baf81","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"status\": \"Confirmed\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/orders/2/status","urlObject":{"protocol":"http","port":"8080","path":["api","orders","2","status"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"b77cd0d9-7345-4217-8a6e-23e9f03baf81"}],"id":"3b860819-a8ef-422d-9b28-a05cabb604f5","_postman_id":"3b860819-a8ef-422d-9b28-a05cabb604f5","description":""}]}