Bookself api is an api project that can store books containing name, year, author, publisher, number of pages, pages read, and whether the book has been read or not
- Clone this project
- Run
npm install
in your terminal - Run
npm run start
in your terminal - open your postman
- Method : POST
- URL : /books
- Body Request :
{
"name": string,
"year": number,
"author": string,
"summary": string,
"publisher": string,
"pageCount": number,
"readPage": number,
"reading": boolean
}
- Method : GET
- URL : /books
if there is no book you gonna get response body
{
"status": "success",
"data": {
"books": []
}
}
- Method : GET
- URL : /books/{Bookid}
- Method : PUT
- URL : /books/{Bookid}
- Request Body :
{
"name": string,
"year": number,
"author": string,
"summary": string,
"publisher": string,
"pageCount": number,
"readPage": number,
"reading": boolean
}
- Method : DELETE
- URL : /books/{Bookid}
- Integrated with database
- ui