This is a Next.js project with API routes for user management and a webhook implementation.
-
User API Routes:
POST /api/users: Create a new user.GET /api/users: Retrieve all users.GET /api/users/{id}: Retrieve a specific user by ID.
-
Authentication:
- Bearer token is required for accessing the API routes listed above.
-
Webhook Implementation:
POST /api/webhook: A webhook endpoint that validates incoming requests via a signature.
To get started, install the required dependencies:
npm install