REST API that allows a user to comment on characters and episodes in the Rick & Morty universe.
- python3.9
- docker-compose
Run the app and mariadb
make run
Create the database
make create_database
Import data from :
- scripts/json_data/rick_morty-chracters_v1.json
- scripts/json_data/rick_morty-episodes_v1.json
make import_data
http://localhost:8080/api/swagger
Some examples :
-
Get list of characters : http://localhost:8080/characters
-
Get list of episodes : http://localhost:8080/episodes
-
Get list of comments : http://localhost:8080/comments
-
Export comments: http://localhost:8080/comments/export
Create virtual environment from python3.9 and install requirements
make install_env
Running the tests locally
make test