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
- Host: GitHub
- URL: https://github.com/ptyadana/django-rest-api-books-info
- Owner: ptyadana
- License: mit
- Created: 2020-03-19T03:26:11.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-12-08T04:04:44.000Z (almost 3 years ago)
- Last Synced: 2025-01-15T15:54:19.897Z (9 months ago)
- Topics: books, django, django-application, django-project, django-rest-framework, django3, heroku-deployment, herokuapp, json, python3, rest, rest-api, simple
- Language: Python
- Homepage: https://booksbyptyadana.herokuapp.com/books/
- Size: 35.2 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
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
}
]
```