Skip to content

ryuz4k1/movie-api

Repository files navigation

Build status

MOVIE API

Movies

Route HTTP Verb POST body Description
/api/movies GET Empty List all movies.
/api/movies/add POST {'title':'foo', 'category':'bar', 'country':'Turkey', year:1990, director:"id", imdbScore: 9.7 } Create a new movie.
/api/movies/:movieId GET Empty Get a movie.
/api/movies/:movieId PUT {'name':'foo', 'surname':'bar'} Update a movie with new info.
/api/movies/delete/:movieId DELETE Empty Delete a movie.
/api/movies/top10 GET Empty Get the top 10 movies.
/api/movies/between/:start_year/:end_year GET Empty Movies between two dates.

Directors

Route HTTP Verb POST body Description
/api/directors GET Empty List all directors.
/api/directors/add POST { name: 'foo', surname:'bar', bio:'lorem ipsum' } Create a new director.
/api/directors/:directorId GET Empty Get a director.
/api/directors/edit/:directorId PUT {'name':'foo', 'surname':'bar', 'bio': 'lorem'} Update a director with new info.
/api/directors/delete/:directorId DELETE Empty Delete a director.
/api/directors/:directorId/best10movie GET Empty The director's top 10 films.

Index

Route HTTP Verb POST body Description
/register POST { username: 'foo', password:'1234' } Create a new user.
/authenticate POST { username: 'foo', password:'1234' } Generate a token.

Releases

No releases published

Packages

No packages published

Languages