Next.js API Example

This page demonstrates how to interact with Next.js API routes.

Test API Endpoints

Open /api/hello

Create New User

Available API Endpoints:

  • GET /api/hello - Simple hello endpoint
  • GET /api/users - Get all users
  • POST /api/users - Create a new user
  • GET /api/users/[id] - Get a specific user
  • PUT /api/users/[id] - Update a user
  • DELETE /api/users/[id] - Delete a user

Try testing these endpoints with tools like Postman, curl, or the browser!