https://github.com/eugeniusms/bookshelf-api
Bookshelf API is a storage service and book data management tool.
https://github.com/eugeniusms/bookshelf-api
api backend dicoding dicoding-academy hapi nodejs
Last synced: 3 months ago
JSON representation
Bookshelf API is a storage service and book data management tool.
- Host: GitHub
- URL: https://github.com/eugeniusms/bookshelf-api
- Owner: eugeniusms
- Created: 2022-08-23T04:37:29.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-08-23T17:04:17.000Z (over 2 years ago)
- Last Synced: 2025-01-03T21:41:20.738Z (5 months ago)
- Topics: api, backend, dicoding, dicoding-academy, hapi, nodejs
- Language: JavaScript
- Homepage:
- Size: 72.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Bookshelf API
https://github.com/eugeniusms/bookshelf-api
 `hapi`  `nodejs`Bookshelf API is a storage service and book data management tool.
## Installation
Bookshelf API requires [Node.js](https://nodejs.org/) v16.14+ to run.
Clone the repository
```sh
git clone https://github.com/eugeniusms/bookshelf-api
```Install the dependencies and devDependencies and start the server.
```sh
cd bookshelf-api
npm i
npm run start
```
Server will be running on localhost:8001 (Default)
## API
Instructions on how to use API in your own application are linked below.| Method | Route | Explanation |
| ------ | ------ | ------ |
| GET | /books | Get all the books available |
| GET | /books/{id} | Get details of a book based on ID |
| POST | /books | Add a new book |
| PUT | /books/{id} | Edit a available book based on ID |
| DEL | /books/{id} | Remove a available book based on ID |## Query
Instructions on how to use query in your own application are linked below.| Method | Route | Query | Explanation |
| ------ | ------ | ------ | ------ |
| GET | /books | ?name= | Get all books with spesific name |
| GET | /books | ?reading= | Get all books with spesific reading mode |
| GET | /books | ?finished= | Get all books with spesific finished mode |@ 2022 Open Source Project by Eugenius Mario S
[//]: # (These are reference links used in the body of this note and get stripped out when the markdown processor does its job. There is no need to format nicely because it shouldn't be seen. Thanks SO - http://stackoverflow.com/questions/4823468/store-comments-in-markdown-syntax)
[node.js]: