This page demonstrates Next.js API Routes. Click the buttons below to test different HTTP methods and endpoints.
GET Request
POST Request
Query Parameters
Available API Endpoints
- GET /api/test - Basic GET endpoint
- POST /api/test - POST with JSON body
- PUT /api/test - PUT with JSON body
- DELETE /api/test - DELETE endpoint
- GET /api/test/query?name=...&age=... - Query parameters