Files
group-2-threaded-project-pe…/petshop-api.postman_collection.json
Harkamal Randhawa 64e6019d40 Fix Postman collection request bodies and add missing auth endpoints
Added missing authentication endpoints:
- POST /api/v1/auth/me/avatar (Upload Avatar)
- GET /api/v1/auth/me/avatar (Get Avatar)
- DELETE /api/v1/auth/me/avatar (Delete Avatar)
- POST /api/v1/auth/logout (Logout)

Fixed request body DTOs to match backend:
- ProductSupplier: Use 'cost' field, composite key bulk delete structure
- Appointment: Remove storeId/notes, add appointmentStatus and petIds
- Adoption: Add adoptionStatus field
- Refund: Remove amount field (only saleId and reason)
- Customer: Remove address field
- Store: Use address/phone/email (not storeAddress/storePhone)
- Inventory: Use prodId (not productId)
- Supplier: Split contact into supContactFirstName and supContactLastName

All 107 requests verified against backend controllers and DTOs.
JSON validation passed. Collection is production-ready.

Phase 3B
2026-03-09 01:24:23 -06:00

2180 lines
59 KiB
JSON

{
"info": {
"name": "PetShop API Complete Collection",
"_postman_id": "petshop-api-complete-v1",
"description": "Complete API collection with all 95+ verified endpoints",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"variable": [
{
"key": "baseUrl",
"value": "http://localhost:8080"
},
{
"key": "customerToken",
"value": ""
},
{
"key": "staffToken",
"value": ""
},
{
"key": "adminToken",
"value": ""
}
],
"item": [
{
"name": "Health",
"item": [
{
"name": "Health Check",
"request": {
"method": "GET",
"url": "{{baseUrl}}/api/v1/health",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
]
}
}
]
},
{
"name": "Authentication",
"item": [
{
"name": "Register Customer",
"request": {
"method": "POST",
"url": "{{baseUrl}}/api/v1/auth/register",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"username\": \"newcustomer\",\n \"password\": \"password123\",\n \"email\": \"new@example.com\",\n \"fullName\": \"New Customer\"\n}"
}
}
},
{
"name": "Login as Customer",
"request": {
"method": "POST",
"url": "{{baseUrl}}/api/v1/auth/login",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"username\": \"customer\",\n \"password\": \"customer123\"\n}"
}
},
"event": [
{
"listen": "test",
"script": {
"exec": [
"pm.test('Status code is 200', function () {",
" pm.response.to.have.status(200);",
"});",
"",
"var jsonData = pm.response.json();",
"if (jsonData.token) {",
" pm.collectionVariables.set('customerToken', jsonData.token);",
"}"
]
}
}
]
},
{
"name": "Login as Staff",
"request": {
"method": "POST",
"url": "{{baseUrl}}/api/v1/auth/login",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"username\": \"staff\",\n \"password\": \"staff123\"\n}"
}
},
"event": [
{
"listen": "test",
"script": {
"exec": [
"pm.test('Status code is 200', function () {",
" pm.response.to.have.status(200);",
"});",
"",
"var jsonData = pm.response.json();",
"if (jsonData.token) {",
" pm.collectionVariables.set('staffToken', jsonData.token);",
"}"
]
}
}
]
},
{
"name": "Login as Admin",
"request": {
"method": "POST",
"url": "{{baseUrl}}/api/v1/auth/login",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"username\": \"admin\",\n \"password\": \"admin123\"\n}"
}
},
"event": [
{
"listen": "test",
"script": {
"exec": [
"pm.test('Status code is 200', function () {",
" pm.response.to.have.status(200);",
"});",
"",
"var jsonData = pm.response.json();",
"if (jsonData.token) {",
" pm.collectionVariables.set('adminToken', jsonData.token);",
"}"
]
}
}
]
},
{
"name": "Get My Profile",
"request": {
"method": "GET",
"url": "{{baseUrl}}/api/v1/auth/me",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer {{customerToken}}",
"type": "text"
}
]
}
},
{
"name": "Update My Profile",
"request": {
"method": "PUT",
"url": "{{baseUrl}}/api/v1/auth/me",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer {{customerToken}}",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"fullName\": \"Updated Name\",\n \"email\": \"updated@example.com\"\n}"
}
}
},
{
"name": "Upload Avatar",
"request": {
"method": "POST",
"url": "{{baseUrl}}/api/v1/auth/me/avatar",
"header": [
{
"key": "Authorization",
"value": "Bearer {{customerToken}}",
"type": "text"
}
],
"body": {
"mode": "formdata",
"formdata": [
{
"key": "avatar",
"type": "file",
"src": []
}
]
}
}
},
{
"name": "Get Avatar",
"request": {
"method": "GET",
"url": "{{baseUrl}}/api/v1/auth/me/avatar",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer {{customerToken}}",
"type": "text"
}
]
}
},
{
"name": "Delete Avatar",
"request": {
"method": "DELETE",
"url": "{{baseUrl}}/api/v1/auth/me/avatar",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer {{customerToken}}",
"type": "text"
}
]
}
},
{
"name": "Logout",
"request": {
"method": "POST",
"url": "{{baseUrl}}/api/v1/auth/logout",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer {{customerToken}}",
"type": "text"
}
]
}
}
]
},
{
"name": "Pets",
"item": [
{
"name": "Get All Pets",
"request": {
"method": "GET",
"url": "{{baseUrl}}/api/v1/pets",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
]
}
},
{
"name": "Get Pet by ID",
"request": {
"method": "GET",
"url": "{{baseUrl}}/api/v1/pets/1",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
]
}
},
{
"name": "Get Pets Dropdown",
"request": {
"method": "GET",
"url": "{{baseUrl}}/api/v1/dropdowns/pets",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
]
}
},
{
"name": "Create Pet",
"request": {
"method": "POST",
"url": "{{baseUrl}}/api/v1/pets",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer {{staffToken}}",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"petName\": \"Buddy\",\n \"petSpecies\": \"Dog\",\n \"petBreed\": \"Labrador\",\n \"petAge\": 2,\n \"petStatus\": \"Available\",\n \"petPrice\": 500.0\n}"
}
}
},
{
"name": "Update Pet",
"request": {
"method": "PUT",
"url": "{{baseUrl}}/api/v1/pets/1",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer {{staffToken}}",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"petName\": \"Buddy\",\n \"petSpecies\": \"Dog\",\n \"petBreed\": \"Labrador\",\n \"petAge\": 3,\n \"petStatus\": \"Available\",\n \"petPrice\": 500.0\n}"
}
}
},
{
"name": "Delete Pet",
"request": {
"method": "DELETE",
"url": "{{baseUrl}}/api/v1/pets/1",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer {{staffToken}}",
"type": "text"
}
]
}
},
{
"name": "Bulk Delete Pets",
"request": {
"method": "DELETE",
"url": "{{baseUrl}}/api/v1/pets",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer {{staffToken}}",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"ids\": [\n 1,\n 2\n ]\n}"
}
}
}
]
},
{
"name": "Products",
"item": [
{
"name": "Get All Products",
"request": {
"method": "GET",
"url": "{{baseUrl}}/api/v1/products",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
]
}
},
{
"name": "Get Product by ID",
"request": {
"method": "GET",
"url": "{{baseUrl}}/api/v1/products/1",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
]
}
},
{
"name": "Get Products Dropdown",
"request": {
"method": "GET",
"url": "{{baseUrl}}/api/v1/dropdowns/products",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
]
}
},
{
"name": "Create Product",
"request": {
"method": "POST",
"url": "{{baseUrl}}/api/v1/products",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer {{staffToken}}",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"prodName\": \"Dog Food\",\n \"categoryId\": 1,\n \"prodDesc\": \"Premium\",\n \"prodPrice\": 50.0\n}"
}
}
},
{
"name": "Update Product",
"request": {
"method": "PUT",
"url": "{{baseUrl}}/api/v1/products/1",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer {{staffToken}}",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"prodName\": \"Dog Food\",\n \"categoryId\": 1,\n \"prodDesc\": \"Premium\",\n \"prodPrice\": 55.0\n}"
}
}
},
{
"name": "Delete Product",
"request": {
"method": "DELETE",
"url": "{{baseUrl}}/api/v1/products/1",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer {{adminToken}}",
"type": "text"
}
]
}
},
{
"name": "Bulk Delete Products",
"request": {
"method": "DELETE",
"url": "{{baseUrl}}/api/v1/products",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer {{adminToken}}",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"ids\": [\n 1\n ]\n}"
}
}
}
]
},
{
"name": "Sales",
"item": [
{
"name": "Get All Sales",
"request": {
"method": "GET",
"url": "{{baseUrl}}/api/v1/sales",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
]
}
},
{
"name": "Get Sale by ID",
"request": {
"method": "GET",
"url": "{{baseUrl}}/api/v1/sales/1",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
]
}
},
{
"name": "Create Sale",
"request": {
"method": "POST",
"url": "{{baseUrl}}/api/v1/sales",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer {{staffToken}}",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"storeId\": 1,\n \"paymentMethod\": \"Card\",\n \"customerId\": 1,\n \"items\": [\n {\n \"prodId\": 1,\n \"quantity\": 2\n },\n {\n \"prodId\": 2,\n \"quantity\": 1\n }\n ],\n \"isRefund\": false\n}"
}
}
}
]
},
{
"name": "Services",
"item": [
{
"name": "Get All Services",
"request": {
"method": "GET",
"url": "{{baseUrl}}/api/v1/services",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
]
}
},
{
"name": "Get Service by ID",
"request": {
"method": "GET",
"url": "{{baseUrl}}/api/v1/services/1",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
]
}
},
{
"name": "Get Services Dropdown",
"request": {
"method": "GET",
"url": "{{baseUrl}}/api/v1/dropdowns/services",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
]
}
},
{
"name": "Create Service",
"request": {
"method": "POST",
"url": "{{baseUrl}}/api/v1/services",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer {{staffToken}}",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"serviceName\": \"Grooming\",\n \"serviceDesc\": \"Full grooming\",\n \"servicePrice\": 75.0\n}"
}
}
},
{
"name": "Update Service",
"request": {
"method": "PUT",
"url": "{{baseUrl}}/api/v1/services/1",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer {{staffToken}}",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"serviceName\": \"Grooming\",\n \"serviceDesc\": \"Full grooming\",\n \"servicePrice\": 80.0\n}"
}
}
},
{
"name": "Delete Service",
"request": {
"method": "DELETE",
"url": "{{baseUrl}}/api/v1/services/1",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer {{staffToken}}",
"type": "text"
}
]
}
},
{
"name": "Bulk Delete Services",
"request": {
"method": "DELETE",
"url": "{{baseUrl}}/api/v1/services",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer {{staffToken}}",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"ids\": [\n 1\n ]\n}"
}
}
}
]
},
{
"name": "Categories",
"item": [
{
"name": "Get All Categories",
"request": {
"method": "GET",
"url": "{{baseUrl}}/api/v1/categories",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
]
}
},
{
"name": "Get Category by ID",
"request": {
"method": "GET",
"url": "{{baseUrl}}/api/v1/categories/1",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
]
}
},
{
"name": "Get Categories Dropdown",
"request": {
"method": "GET",
"url": "{{baseUrl}}/api/v1/dropdowns/categories",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
]
}
},
{
"name": "Create Category",
"request": {
"method": "POST",
"url": "{{baseUrl}}/api/v1/categories",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer {{staffToken}}",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"categoryName\": \"Dog Supplies\"\n}"
}
}
},
{
"name": "Update Category",
"request": {
"method": "PUT",
"url": "{{baseUrl}}/api/v1/categories/1",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer {{staffToken}}",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"categoryName\": \"Dog Supplies\"\n}"
}
}
},
{
"name": "Delete Category",
"request": {
"method": "DELETE",
"url": "{{baseUrl}}/api/v1/categories/1",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer {{staffToken}}",
"type": "text"
}
]
}
},
{
"name": "Bulk Delete Categories",
"request": {
"method": "DELETE",
"url": "{{baseUrl}}/api/v1/categories",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer {{staffToken}}",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"ids\": [\n 1\n ]\n}"
}
}
}
]
},
{
"name": "Appointments",
"item": [
{
"name": "Check Appointment Availability",
"request": {
"method": "GET",
"url": "{{baseUrl}}/api/v1/appointments/availability?storeId=1&serviceId=1&date=2026-03-15",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
]
}
},
{
"name": "List Appointments",
"request": {
"method": "GET",
"url": "{{baseUrl}}/api/v1/appointments",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer {{customerToken}}",
"type": "text"
}
]
}
},
{
"name": "Get Appointment",
"request": {
"method": "GET",
"url": "{{baseUrl}}/api/v1/appointments/1",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer {{customerToken}}",
"type": "text"
}
]
}
},
{
"name": "Create Appointment",
"request": {
"method": "POST",
"url": "{{baseUrl}}/api/v1/appointments",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer {{customerToken}}",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"customerId\": 1,\n \"serviceId\": 1,\n \"appointmentDate\": \"2026-03-15\",\n \"appointmentTime\": \"10:30:00\",\n \"appointmentStatus\": \"Booked\",\n \"petIds\": [1, 2]\n}"
}
}
},
{
"name": "Update Appointment",
"request": {
"method": "PUT",
"url": "{{baseUrl}}/api/v1/appointments/1",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer {{staffToken}}",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"customerId\": 1,\n \"serviceId\": 2,\n \"appointmentDate\": \"2026-03-20\",\n \"appointmentTime\": \"14:00:00\",\n \"appointmentStatus\": \"Completed\",\n \"petIds\": [1]\n}"
}
}
},
{
"name": "Delete Appointment",
"request": {
"method": "DELETE",
"url": "{{baseUrl}}/api/v1/appointments/1",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer {{staffToken}}",
"type": "text"
}
]
}
},
{
"name": "Bulk Delete Appointments",
"request": {
"method": "DELETE",
"url": "{{baseUrl}}/api/v1/appointments",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer {{adminToken}}",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"ids\": [\n 1\n ]\n}"
}
}
}
]
},
{
"name": "Adoptions",
"item": [
{
"name": "List Adoptions",
"request": {
"method": "GET",
"url": "{{baseUrl}}/api/v1/adoptions",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer {{customerToken}}",
"type": "text"
}
]
}
},
{
"name": "Get Adoption",
"request": {
"method": "GET",
"url": "{{baseUrl}}/api/v1/adoptions/1",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer {{customerToken}}",
"type": "text"
}
]
}
},
{
"name": "Create Adoption",
"request": {
"method": "POST",
"url": "{{baseUrl}}/api/v1/adoptions",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer {{customerToken}}",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"petId\": 1,\n \"customerId\": 1,\n \"adoptionDate\": \"2026-03-10\",\n \"adoptionStatus\": \"Pending\"\n}"
}
}
},
{
"name": "Update Adoption",
"request": {
"method": "PUT",
"url": "{{baseUrl}}/api/v1/adoptions/1",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer {{staffToken}}",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"petId\": 1,\n \"customerId\": 1,\n \"adoptionDate\": \"2026-03-10\",\n \"adoptionStatus\": \"Completed\"\n}"
}
}
},
{
"name": "Delete Adoption",
"request": {
"method": "DELETE",
"url": "{{baseUrl}}/api/v1/adoptions/1",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer {{staffToken}}",
"type": "text"
}
]
}
},
{
"name": "Bulk Delete Adoptions",
"request": {
"method": "DELETE",
"url": "{{baseUrl}}/api/v1/adoptions",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer {{adminToken}}",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"ids\": [\n 1\n ]\n}"
}
}
}
]
},
{
"name": "Refunds",
"item": [
{
"name": "Create Refund",
"request": {
"method": "POST",
"url": "{{baseUrl}}/api/v1/refunds",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer {{customerToken}}",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"saleId\": 1,\n \"reason\": \"Defective product\"\n}"
}
}
},
{
"name": "List Refunds",
"request": {
"method": "GET",
"url": "{{baseUrl}}/api/v1/refunds",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer {{customerToken}}",
"type": "text"
}
]
}
},
{
"name": "Get Refund",
"request": {
"method": "GET",
"url": "{{baseUrl}}/api/v1/refunds/1",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer {{customerToken}}",
"type": "text"
}
]
}
},
{
"name": "Update Refund",
"request": {
"method": "PUT",
"url": "{{baseUrl}}/api/v1/refunds/1",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer {{staffToken}}",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"status\": \"APPROVED\"\n}"
}
}
},
{
"name": "Delete Refund",
"request": {
"method": "DELETE",
"url": "{{baseUrl}}/api/v1/refunds/1",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer {{adminToken}}",
"type": "text"
}
]
}
}
]
},
{
"name": "Chat",
"item": [
{
"name": "Create Conversation",
"request": {
"method": "POST",
"url": "{{baseUrl}}/api/v1/chat/conversations",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer {{customerToken}}",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"message\": \"I need help\"\n}"
}
}
},
{
"name": "List Conversations",
"request": {
"method": "GET",
"url": "{{baseUrl}}/api/v1/chat/conversations",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer {{customerToken}}",
"type": "text"
}
]
}
},
{
"name": "Get Conversation",
"request": {
"method": "GET",
"url": "{{baseUrl}}/api/v1/chat/conversations/1",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer {{customerToken}}",
"type": "text"
}
]
}
},
{
"name": "Send Message",
"request": {
"method": "POST",
"url": "{{baseUrl}}/api/v1/chat/conversations/1/messages",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer {{customerToken}}",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"content\": \"Hello\"\n}"
}
}
},
{
"name": "Get Messages",
"request": {
"method": "GET",
"url": "{{baseUrl}}/api/v1/chat/conversations/1/messages",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer {{customerToken}}",
"type": "text"
}
]
}
}
]
},
{
"name": "Customers",
"item": [
{
"name": "Get Customers Dropdown",
"request": {
"method": "GET",
"url": "{{baseUrl}}/api/v1/dropdowns/customers",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
]
}
},
{
"name": "List Customers",
"request": {
"method": "GET",
"url": "{{baseUrl}}/api/v1/customers",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer {{staffToken}}",
"type": "text"
}
]
}
},
{
"name": "Get Customer",
"request": {
"method": "GET",
"url": "{{baseUrl}}/api/v1/customers/1",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer {{staffToken}}",
"type": "text"
}
]
}
},
{
"name": "Create Customer",
"request": {
"method": "POST",
"url": "{{baseUrl}}/api/v1/customers",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer {{staffToken}}",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"firstName\": \"John\",\n \"lastName\": \"Doe\",\n \"email\": \"john.doe@example.com\",\n \"phone\": \"555-123-4567\"\n}"
}
}
},
{
"name": "Update Customer",
"request": {
"method": "PUT",
"url": "{{baseUrl}}/api/v1/customers/1",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer {{staffToken}}",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"firstName\": \"Jane\",\n \"lastName\": \"Doe\",\n \"email\": \"jane.doe@example.com\",\n \"phone\": \"555-987-6543\"\n}"
}
}
},
{
"name": "Delete Customer",
"request": {
"method": "DELETE",
"url": "{{baseUrl}}/api/v1/customers/1",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer {{staffToken}}",
"type": "text"
}
]
}
},
{
"name": "Bulk Delete Customers",
"request": {
"method": "POST",
"url": "{{baseUrl}}/api/v1/customers/bulk-delete",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer {{staffToken}}",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"ids\": [\n 1\n ]\n}"
}
}
}
]
},
{
"name": "Users",
"item": [
{
"name": "List Users",
"request": {
"method": "GET",
"url": "{{baseUrl}}/api/v1/users",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer {{adminToken}}",
"type": "text"
}
]
}
},
{
"name": "Get User",
"request": {
"method": "GET",
"url": "{{baseUrl}}/api/v1/users/1",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer {{adminToken}}",
"type": "text"
}
]
}
},
{
"name": "Create User",
"request": {
"method": "POST",
"url": "{{baseUrl}}/api/v1/users",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer {{adminToken}}",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"username\": \"newuser\",\n \"password\": \"password123\",\n \"fullName\": \"New User\",\n \"email\": \"newuser@petshop.com\",\n \"role\": \"STAFF\",\n \"active\": true\n}"
}
}
},
{
"name": "Update User",
"request": {
"method": "PUT",
"url": "{{baseUrl}}/api/v1/users/1",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer {{adminToken}}",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"username\": \"user1\",\n \"password\": \"newpassword123\",\n \"fullName\": \"Updated User\",\n \"email\": \"user1@petshop.com\",\n \"role\": \"STAFF\",\n \"active\": true\n}"
}
}
},
{
"name": "Delete User",
"request": {
"method": "DELETE",
"url": "{{baseUrl}}/api/v1/users/1",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer {{adminToken}}",
"type": "text"
}
]
}
},
{
"name": "Bulk Delete Users",
"request": {
"method": "DELETE",
"url": "{{baseUrl}}/api/v1/users",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer {{adminToken}}",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"ids\": [\n 1\n ]\n}"
}
}
}
]
},
{
"name": "Stores",
"item": [
{
"name": "Get Stores Dropdown",
"request": {
"method": "GET",
"url": "{{baseUrl}}/api/v1/dropdowns/stores",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
]
}
},
{
"name": "List Stores",
"request": {
"method": "GET",
"url": "{{baseUrl}}/api/v1/stores",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer {{adminToken}}",
"type": "text"
}
]
}
},
{
"name": "Get Store",
"request": {
"method": "GET",
"url": "{{baseUrl}}/api/v1/stores/1",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer {{adminToken}}",
"type": "text"
}
]
}
},
{
"name": "Create Store",
"request": {
"method": "POST",
"url": "{{baseUrl}}/api/v1/stores",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer {{adminToken}}",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"storeName\": \"New Pet Shop\",\n \"address\": \"123 Main Street\",\n \"phone\": \"555-111-2222\",\n \"email\": \"newstore@petshop.com\"\n}"
}
}
},
{
"name": "Update Store",
"request": {
"method": "PUT",
"url": "{{baseUrl}}/api/v1/stores/1",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer {{adminToken}}",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"storeName\": \"Updated Pet Shop\",\n \"address\": \"456 Oak Avenue\",\n \"phone\": \"555-333-4444\",\n \"email\": \"updated@petshop.com\"\n}"
}
}
},
{
"name": "Delete Store",
"request": {
"method": "DELETE",
"url": "{{baseUrl}}/api/v1/stores/1",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer {{adminToken}}",
"type": "text"
}
]
}
},
{
"name": "Bulk Delete Stores",
"request": {
"method": "DELETE",
"url": "{{baseUrl}}/api/v1/stores",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer {{adminToken}}",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"ids\": [\n 1\n ]\n}"
}
}
}
]
},
{
"name": "Inventory",
"item": [
{
"name": "List Inventory",
"request": {
"method": "GET",
"url": "{{baseUrl}}/api/v1/inventory",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer {{adminToken}}",
"type": "text"
}
]
}
},
{
"name": "Get Inventory Item",
"request": {
"method": "GET",
"url": "{{baseUrl}}/api/v1/inventory/1",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer {{adminToken}}",
"type": "text"
}
]
}
},
{
"name": "Create Inventory",
"request": {
"method": "POST",
"url": "{{baseUrl}}/api/v1/inventory",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer {{adminToken}}",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"prodId\": 1,\n \"quantity\": 100\n}"
}
}
},
{
"name": "Update Inventory",
"request": {
"method": "PUT",
"url": "{{baseUrl}}/api/v1/inventory/1",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer {{adminToken}}",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"prodId\": 1,\n \"quantity\": 150\n}"
}
}
},
{
"name": "Delete Inventory",
"request": {
"method": "DELETE",
"url": "{{baseUrl}}/api/v1/inventory/1",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer {{adminToken}}",
"type": "text"
}
]
}
},
{
"name": "Bulk Delete Inventory",
"request": {
"method": "DELETE",
"url": "{{baseUrl}}/api/v1/inventory",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer {{adminToken}}",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"ids\": [\n 1\n ]\n}"
}
}
}
]
},
{
"name": "Suppliers",
"item": [
{
"name": "List Suppliers",
"request": {
"method": "GET",
"url": "{{baseUrl}}/api/v1/suppliers",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer {{adminToken}}",
"type": "text"
}
]
}
},
{
"name": "Get Supplier",
"request": {
"method": "GET",
"url": "{{baseUrl}}/api/v1/suppliers/1",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer {{adminToken}}",
"type": "text"
}
]
}
},
{
"name": "Create Supplier",
"request": {
"method": "POST",
"url": "{{baseUrl}}/api/v1/suppliers",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer {{adminToken}}",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"supCompany\": \"New Supplier Inc\",\n \"supContactFirstName\": \"John\",\n \"supContactLastName\": \"Smith\",\n \"supEmail\": \"john@newsupplier.com\",\n \"supPhone\": \"555-555-5555\"\n}"
}
}
},
{
"name": "Update Supplier",
"request": {
"method": "PUT",
"url": "{{baseUrl}}/api/v1/suppliers/1",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer {{adminToken}}",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"supCompany\": \"Updated Supplier Co\",\n \"supContactFirstName\": \"Jane\",\n \"supContactLastName\": \"Doe\",\n \"supEmail\": \"jane@updatedsupplier.com\",\n \"supPhone\": \"555-666-7777\"\n}"
}
}
},
{
"name": "Delete Supplier",
"request": {
"method": "DELETE",
"url": "{{baseUrl}}/api/v1/suppliers/1",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer {{adminToken}}",
"type": "text"
}
]
}
},
{
"name": "Bulk Delete Suppliers",
"request": {
"method": "DELETE",
"url": "{{baseUrl}}/api/v1/suppliers",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer {{adminToken}}",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"ids\": [\n 1\n ]\n}"
}
}
},
{
"name": "Get Suppliers Dropdown",
"request": {
"method": "GET",
"url": "{{baseUrl}}/api/v1/dropdowns/suppliers",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer {{adminToken}}",
"type": "text"
}
]
}
}
]
},
{
"name": "Purchase Orders",
"item": [
{
"name": "List Purchase Orders",
"request": {
"method": "GET",
"url": "{{baseUrl}}/api/v1/purchase-orders",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer {{adminToken}}",
"type": "text"
}
]
}
},
{
"name": "Get Purchase Order",
"request": {
"method": "GET",
"url": "{{baseUrl}}/api/v1/purchase-orders/1",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer {{adminToken}}",
"type": "text"
}
]
}
}
]
},
{
"name": "Product-Suppliers",
"item": [
{
"name": "List Product Suppliers",
"request": {
"method": "GET",
"url": "{{baseUrl}}/api/v1/product-suppliers",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer {{adminToken}}",
"type": "text"
}
]
}
},
{
"name": "Get Product Supplier",
"request": {
"method": "GET",
"url": "{{baseUrl}}/api/v1/product-suppliers/1/1",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer {{adminToken}}",
"type": "text"
}
]
}
},
{
"name": "Create Product Supplier",
"request": {
"method": "POST",
"url": "{{baseUrl}}/api/v1/product-suppliers",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer {{adminToken}}",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"productId\": 1,\n \"supplierId\": 2,\n \"cost\": 35.00\n}"
}
}
},
{
"name": "Update Product Supplier",
"request": {
"method": "PUT",
"url": "{{baseUrl}}/api/v1/product-suppliers/1/1",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer {{adminToken}}",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"productId\": 1,\n \"supplierId\": 2,\n \"cost\": 40.00\n}"
}
}
},
{
"name": "Delete Product Supplier",
"request": {
"method": "DELETE",
"url": "{{baseUrl}}/api/v1/product-suppliers/1/1",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer {{adminToken}}",
"type": "text"
}
]
}
},
{
"name": "Bulk Delete Product Suppliers",
"request": {
"method": "DELETE",
"url": "{{baseUrl}}/api/v1/product-suppliers",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer {{adminToken}}",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"keys\": [\n {\"productId\": 1, \"supplierId\": 2},\n {\"productId\": 3, \"supplierId\": 4}\n ]\n}"
}
}
}
]
},
{
"name": "Analytics",
"item": [
{
"name": "Analytics Dashboard",
"request": {
"method": "GET",
"url": "{{baseUrl}}/api/v1/analytics/dashboard",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer {{adminToken}}",
"type": "text"
}
]
}
}
]
}
]
}