An open API service indexing awesome lists of open source software.

https://github.com/ptyadana/django-rest-api-books-info

A simple REST API for getting the lists of books information in JSON hosted on herokuapp
https://github.com/ptyadana/django-rest-api-books-info

books django django-application django-project django-rest-framework django3 heroku-deployment herokuapp json python3 rest rest-api simple

Last synced: 7 months ago
JSON representation

A simple REST API for getting the lists of books information in JSON hosted on herokuapp

Awesome Lists containing this project

README

          

# Books Info REST API Project

A simple REST API for getting the lists of books information using
+ Python 3
+ Django 3
+ Django REST framework

[Visit BooksInfo API on heroku](https://booksbyptyadana.herokuapp.com/books/)
### Base URL
base URL for all endpoints: ```https://booksbyptyadana.herokuapp.com/```

### Endpoints
```/books``` get all books

#### Sample JSON
```javascript
HTTP 200 OK
Allow: GET, POST, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

[
{
"id": 1,
"book_name": "Flip It: How to Get the Best Out of Everything",
"author_name": "Michael Heppell",
"book_price": 15,
"book_quantity": 1000
},
{
"id": 2,
"book_name": "Harry Potter Paperback Box Set (Books 1-7)",
"author_name": "J. K. Rowling",
"book_price": 55,
"book_quantity": 71
}
]
```