API Services Playground
API Services Playground
Test API contracts, schema validation, and backend data integrity. This playground exposes the same product and order endpoints that power the Legacy App Playground — with intentional contract violations built in.
Available Endpoints
GET /api/products
GET /api/products/:id
GET /api/products?category=electronics
GET /api/products?search=headphones
POST /api/cart/items
PUT /api/cart/items/:id
DELETE /api/cart/items/:id
POST /api/orders
GET /api/orders/:id
GET /api/reports
Interactive Request Viewer
Response headers
// Response appears here
Known Intentional Issues (8)
Product detail price differs from listing price
Compare price field in list response vs detail response for the same product ID
Inactive products returned in search results
Assert no product in the response has active=false
Cart accepts invalid quantity values
POST to /api/cart/items with quantity: 0 and assert status 400
Duplicate cart rows created for the same product
Add the same product twice and assert cart has one row with quantity 2, not two rows
Order endpoint returns 200 on partial failure
Submit order for out-of-stock item and assert status is not 200
Inventory can go negative
Order quantity greater than inventory and assert inventory does not go below 0
Category casing inconsistent across endpoints
Assert category casing in response matches category casing accepted as filter param
imageUrl field is null but no null handling in contract
Assert products with null imageUrl are handled without frontend error