The API documentation is now available through Swagger UI. You can access it by:
- Starting the application
- Navigating to
http://localhost:3000/api-docsin your web browser
Most endpoints require authentication using JWT bearer tokens. To authenticate:
- Create a user account using
/usersPOST endpoint - Login using
/users/auth/loginto get a JWT token - Include the token in subsequent requests using the Authorization header:
Authorization: Bearer your-jwt-token
The API provides the following main resources:
- Users
- Teachers
- Authentication
Each resource has its own set of endpoints documented in the Swagger UI interface.
# Install dependencies
pnpm install
# Start the server
pnpm startThe API will be available at http://localhost:3000 and the documentation at /api-docs.