In the project directory, you can run:
Runs the app in the development mode.
The page will reload when you make changes.
You may also see any lint errors in the console.
Generates the JS output in dist
folder.
Runs the js code from dist
folder.
-
POST
/api/v1/books/create
-
body
{
"title": "To Kill a Mokingbird",
"author": "Harper Lee",
"datePublished": "1960",
"genre": "Thriller",
}
GET
/api/v1/books
GET
/api/v1/books/:id
-
PUT
/api/v1/books/update/:id
-
body
{
"title": "To Kill a Mokingbird again",
"author": "Harper Lee",
"datePublished": "1962",
"genre": "Thriller",
}
DEL
/api/v1/books/delete/:id
Note: we get id from the response