Building RESTful API's using Express
Creating Routes/Endpoints REST API's Using express JS and using GET, PUT, POST, DELETE methods and testing them with Postman.
Here I have created an array of object for example and assigning routes to it
I have used Joi NPM package to validate the input validation and also used express.json() middleware for body parser.
To delete the course with a specific ID.
Testing the API with postman with errors and proper request made to it