$ cd mongoose-crud
$ npm install
$ npm start
Route |
Http |
Descriptin |
/books |
GET |
Get all the books |
/books/:id |
GET |
Get one books |
/books |
POST |
Create / Add a Book |
/books/:id |
DELETE |
Delete a Book |
/books |
PUT |
Update a Book |
Route |
Http |
Descriptin |
/customers |
GET |
Get all the customers |
/customers/:id |
GET |
Get one customer |
/bocustomersoks |
POST |
Create / Add a customer |
/customers/:id |
DELETE |
Delete a customer |
/customers |
PUT |
Update a customer |
Route |
Http |
Descriptin |
/transaksi |
GET |
Get all the transaksi |
/transaksi/:id |
GET |
Get one transaksi |
/transaksi |
POST |
Create / Add a transaksi |
/transaksi/:id |
DELETE |
Delete a transaksi |
/transaksi |
PUT |
Update a transaksi |