-
Notifications
You must be signed in to change notification settings - Fork 89
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
816a5e8
commit 3257209
Showing
5 changed files
with
902 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
node_modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Description | ||
It is a library API which can be use to manage library data and library management. | ||
|
||
# Installation | ||
First of all clone the repository and navigate to this directory. Then run the following commands | ||
``` | ||
npm i | ||
cd src | ||
node index.js | ||
``` | ||
|
||
# End Points | ||
### GET /api/v1/books | ||
Returns the list of all books present in the library | ||
### POST /api/v1/books | ||
Add books to the library and it takes body parameters | ||
### GET /api/v1/borrowers | ||
Returns the list of all borrowers and their details | ||
### POST /api/v1/borrowers | ||
Add a borrower with details | ||
### GET /api/v1/return/:id | ||
Deletes a borrowers record when he/she had returned it | ||
### GET /api/v1/search | ||
Searches for the given book in the library | ||
|
||
This can be use in real time also if we use Mongo DB |
Oops, something went wrong.