A production-grade REST API built for learning
Postman & Playwright API testing.
4 modules · 5 auth types · 3 roles · 50+ endpoints_
4 modules with full CRUD. Public routes need no auth. Protected routes need Bearer token.
Practice all auth patterns used in real companies — JWT, Refresh Tokens, Basic Auth, API Keys.
Every error returns a consistent JSON structure with status, error name, message, and timestamp.
Open Postman and follow these steps. No setup required.
POST /auth/login with customer@testapi.in / customer@123
Copy accessToken from response.
Authorization tab → Bearer Token → paste accessToken. Now all requests use it.
GET /products — no auth needed. Add ?category=electronics or ?search=laptop to filter.
No token → 401. Customer token on admin route → 403. Great for negative testing!
Use POST /auth/refresh with your refreshToken to get a new accessToken when it expires.
GET /basic/users with Basic Auth. GET /apikey/products with X-API-Key header or ?api_key= param.
Auto-seeded on first startup. Start testing immediately — no need to create data manually.