/users

Primary LanguageJavaScript

API Documentation

This documentation provides details on the API routes and their respective endpoints for your application.

Users API

Get All Users

  • Route: /api/v1/users
  • Method: GET
  • Description: Get a list of all users.

Create a New User

  • Route: /api/v1/users
  • Method: POST
  • Description: Create a new user.

Get User by ID

  • Route: /api/v1/users/:id
  • Method: GET
  • Description: Get user information by their ID.

Update User by ID

  • Route: /api/v1/users/:id
  • Method: PATCH
  • Description: Update user information by their ID.

Delete User by ID

  • Route: /api/v1/users/:id
  • Method: DELETE
  • Description: Delete user by their ID.

Courses API

Get All Courses

  • Route: /api/v1/courses
  • Method: GET
  • Description: Get a list of all courses.

Create a New Course

  • Route: /api/v1/courses
  • Method: POST
  • Description: Create a new course.

Get Course by ID

  • Route: /api/v1/courses/:id
  • Method: GET
  • Description: Get course information by its ID.

Update Course by ID

  • Route: /api/v1/courses/:id
  • Method: PATCH
  • Description: Update course information by its ID.

Delete Course by ID

  • Route: /api/v1/courses/:id
  • Method: DELETE
  • Description: Delete course by its ID.

Running the Application

To run the application and start the server, use the following command: