API reference

All list endpoints return JSON by default. Add ?format=xml or ?format=csv, or send an Accept header. Static downloads live under /exports/ (e.g. products.csv).

Pagination styles

MethodPathDescription
GET/api/productsList products. Filters: q, category, brand, inStock, min_price, max_price. Sort: price, -price, rating, name, createdAt.
GET/api/products/{id}One product including reviews and related product IDs.
GET/api/blogList blog posts. Filters: q, category, authorName. Sort: publishedAt, title.
GET/api/jobsList jobs. Filters: q, company, remote, employmentType. Sort: salaryMin, salaryMax, postedAt.
GET/api/real-estateList properties. Filters: q, listingType, propertyType, bedrooms, min_price, max_price.
GET/api/rate-limit/{none|mild|strict}Rate-limit demo: unlimited, 60/min, 5/min. Inspect the X-RateLimit-* and Retry-After headers.
GET/api/auth/csrfGet a CSRF token (cookie + JSON).
POST/api/auth/loginLog in with a form post or JSON. Requires the CSRF token.
POST/api/auth/logoutClear the session cookie.
GET/api/auth/meCurrent session, or 401.
POST / GET/api/auth/jwtBearer-token demo: POST credentials to get a JWT, GET with Authorization: Bearer to inspect it.
GET/api/healthHealth check.
GET/api/statsRequest statistics for the serving instance.