A Django API that will serve data from imdb movies csv.
- Clone the repository and create a python3 venv (I'm using 3.8.10)
- Run the command : pip install -r requirements.txt
- Run the migrations using the command : python manage.py migrate
- Run the command : python manage.py runserver
- To load the data use the command : python manage.py load_movies_csv
- To make sure that everything went well use the automated tests : ./manage.py test
After run the api you will be able to access the endpoints movies/ and documentation/
Accesing documentarion you will see this :
On movies you will be able to get the list of movies on pages of 1000 rows. The table has 85855 rows, so it would not be a good idea to bring all them at once.
You can filter by the values of : imdb_id, title, genre, duration, country, language, date_published
Example : http://127.0.0.1:8000/movies/?search=Maciste
You can also order by the columns : date_published, reviews, votes
Example : http://127.0.0.1:8000/movies/?ordering=reviews
Fee free to combine the filters and use the others CRUD options as well
Source : https://www.kaggle.com/stefanoleone992/imdb-extensive-dataset