BASE URL : http://localhost:3000
- For running the server : npm run dev
- For running the compiler : npm run watch-ts
-
[GET] Get all contact
endpoint : /api/books
example : http://localhost:3000/api/books
-
[POST] Insert New Books
endpoint : /api/books
example : http://localhost:3000/api/books
-
[PUT] Update New Book
endpoint : /api/books/id
example : http://localhost:3000/api/books/12345
-
[DELETE] Delete Contact based on ID
endpoint : /api/books/id
example : http://localhost:3000/api/books/12345
-
[GET] Search Name / Genre / Publisher / Author
endpoint : /api/search?q=value