A CRUD Restful API using the NodeJs , ExpressJs and MongoDB -> Mongoose.
Create .env file with your configuration keys to "configuration/.env" like .env.example
httpPort=<Port Number>
mongoURI='<MongoDB Connection String>'
mongoDBName='<Your DB Name>'
npm install
# production mode
$ npm start
# development mode
$ npm run dev
-
Get All Books
GET
/book
-
Get Book by ISBN
GET
/book/:ISBN
-
Add Book
POST
/book
Body { "ISBN" : "isbn" , "title" : "book title" , "description" : "book description" , "publishYear" : 2000 }
-
Edit Book
PUT
/book/:ISBN
Body { "title" : "new book title" }
-
Delete Book
DELETE
/book/:ISBN
1.0.0
This project is licensed under the MIT License