This documentation provides details on the API routes and their respective endpoints for your application.
- Route:
/api/v1/users
- Method:
GET
- Description: Get a list of all users.
- Route:
/api/v1/users
- Method:
POST
- Description: Create a new user.
- Route:
/api/v1/users/:id
- Method:
GET
- Description: Get user information by their ID.
- Route:
/api/v1/users/:id
- Method:
PATCH
- Description: Update user information by their ID.
- Route:
/api/v1/users/:id
- Method:
DELETE
- Description: Delete user by their ID.
- Route:
/api/v1/courses
- Method:
GET
- Description: Get a list of all courses.
- Route:
/api/v1/courses
- Method:
POST
- Description: Create a new course.
- Route:
/api/v1/courses/:id
- Method:
GET
- Description: Get course information by its ID.
- Route:
/api/v1/courses/:id
- Method:
PATCH
- Description: Update course information by its ID.
- Route:
/api/v1/courses/:id
- Method:
DELETE
- Description: Delete course by its ID.
To run the application and start the server, use the following command: