The challenge goal is to create a Rest API with Node JS using the express framework with the following routes and Middlewares:
-
GET /repositories: to list all repositories;
-
GET /repositories/:id: to list a repository by its id;
-
POST /repositories: to register a new repository;
-
PUT /repositories/:id: to update the title and repository url by its id;
-
DELETE /repositories/:id: to delete a repository by its id;
-
POST /repositories/:id/like: to register repository likes;
-
Middleware to check if a id is a valid uuid;
If you have the Insomnia Rest installed, click on the link below to load the configuration in your app ๐.