BookList API
BookList API project made with Django Rest Framework
To run the project:
- Clone the repository
- Create a virtual environment and install the requirements
- if you use pipenv:
pipenv shell
thenpipenv install
- if you use pip:
pip install -r requirements.txt
- if you use pipenv:
- Make the migrations:
python manage.py makemigrations
- Run the migrations:
python manage.py migrate
- Run the server:
python manage.py runserver
- Go to any of the 2 API endpoints (use a browser or any tool like Insomnia or Postman):
- Get all books:
http://localhost:8000/api/books/
- Get a single book:
http://localhost:8000/api/books/<id>/
- Get all books:
Credits
This project was made following the course from APIs on Coursera by Meta