curl -X POST http://localhost:8081/api/v1/products \
-H "Content-Type: application/json" \
-d '{
"sku": "LAPTOP-001",
"name": "Gaming Laptop",
"description": "High-performance gaming laptop",
"price": 1299.99,
"stock": 50,
"categoryId": 1
}'
curl http://localhost:8081/api/v1/products/1
curl "http://localhost:8081/api/v1/products?keyword=laptop&page=0&size=10"
curl -X PUT "http://localhost:8081/api/v1/products/1/stock?quantity=5"
curl -X POST http://localhost:8082/api/v1/orders \
-H "Content-Type: application/json" \
-d '{
"customerId": 101,
"items": [
{
"productId": 1,
"productName": "Gaming Laptop",
"quantity": 1,
"price": 1299.99
}
]
}'
curl http://localhost:8082/api/v1/orders/ORD-1734158400000-abc123de
curl -X POST http://localhost:8082/api/v1/orders/ORD-1734158400000-abc123de/pay
curl -X POST http://localhost:8082/api/v1/orders/ORD-1734158400000-abc123de/ship
curl -X POST "http://localhost:8083/api/v1/bff/checkout?customerId=101" \
-H "Content-Type: application/json" \
-d '[1, 2, 3]'
# Product Service
curl http://localhost:8081/actuator/health
# Order Service
curl http://localhost:8082/actuator/health
# BFF Service
curl http://localhost:8083/actuator/health
# Product Service Metrics
curl http://localhost:8081/actuator/prometheus
# Order Service Metrics
curl http://localhost:8082/actuator/prometheus
# BFF Service Metrics
curl http://localhost:8083/actuator/prometheus