API Reference
All endpoints are relative to the domain root.
Response format: JSON
Authentication
POST api/register
POST api/login
Products
GET api/products
GET api/products/{id}
🔒 Protected Methods
Requires Authorization: Bearer <token> or Cookie.
POST api/products
Body: { "name": "Item", "price": 10, "image": "📦" }
PUT api/products/{id}
PATCH api/products/{id}
DELETE api/products/{id}
System
POST api/reset