My technical test for Alternova
Frontend & Backend: Python, Django
GET /api/v1/items/
Returns all media items
Parameter | Description |
---|---|
?type | get all items by time |
?name | get all items by name |
?genre | get all items by genre |
GET /api/v1/items/random/
Return a random item
Parameter | Description |
---|---|
GET api/v1/items/:type_prod/:order/
Returns all items sorted by parameter and search type
Parameter | Description |
---|---|
:type_prod | Type of media Movie/Serie |
:order | param for order name/genre/views/rating |
GET api/v1/userinteractions/:id/
Returns all interactions made by the user with media
Parameter | Description |
---|---|
:id | User ID |
GET api/v1/userinteractions/viewed/<int:id>/
Parameter | Description |
---|---|
:id | ID Movie/Serie |
GET api/v1/userinteractions/rate/<int:id>/
Parameter | Description |
---|---|
:id | ID Movie/Serie |