This is an API for managing appointments built with Node.js and Express.js.
Make sure you have the following installed on your machine
-
Clone the repository:
git clone <repository-url>
-
Change to the project directory:
cd appointment -
Install the dependencies:
npm install
To start the API server, run the following command:
npm startThe server will start running on http://localhost:5003.
- GET /appointments - Get a list of all appointments.
- GET /appointments/:id - Get details of a specific appointment.
- POST /appointments - Create a new appointment.
- DELETE /appointments - Delete an appointment.
Make sure to replace :id with the actual ID of the appointment in the above endpoints.
To run the automated tests, use the following command:
npm run testThe tests are located in the tests directory and are implemented using a testing framework Jest.
Contributions are welcome! If you find any issues or want to enhance the functionality of the API, please submit a pull request.