/ng_task

Primary LanguagePython

Movie Database Application based on REST API

Endpoints:

Movie Endpoints

- GET /api/movie - shows all movie within database with information
- POST /api/movie - show information about movie based on provided title. App will create an new record in case when movie with provided title non exist in database. Need 'title' field in request.

Comments Endpoints

- GET /api/comment - provide all comments in database.
- GET /api/comment/ - provide all comments related with given film.
- POST /api/comment/ - create new comment for given movie. Need 'text' field in request.

Top Endpoints

- GET /api/top - provide rankings for all movies within database, based on number of comments.
- GET /api/top/ - provide ranking based on comment from given date.
- GET /api/top// - provide ranking based on comment in given date range.