This documentation provides details about the Movie Database API, which is based on MongoDB's sample movie database. The API is designed to provide information about movies, comments, and related metadata.
Swagger Doc : https://mflixpopcornflicks.up.railway.app/api-docs/
The API specifications are based on Swagger. The following sections outline the various endpoints and their functionalities:
The following endpoints are related to movie data:
GET /mflix/banners
: Returns the BannersGET /mflix/home_page
: Returns the list of components to show on the pageGET /mflix/movies_page_lang/{lang}
: Returns the list of components for a specific languageGET /mflix/movies_page_genre/{genre}
: Returns the list of components for a specific genreGET /mflix/top_rated_movies/{pageNo}/{limit}
: Returns the top-rated movies according to IMDBGET /mflix/new_releases/{pageNo}/{limit}
: Returns the new movie releasesGET /mflix/get_movies/{pageNo}/{limit}
: Returns movies based on specified language and genreGET /mflix/genres
: Returns the available genresGET /mflix/languages
: Returns the available languagesGET /mflix/search/{pageNo}/{limit}
: Returns movies based on the specified queryGET /mflix/get_movie/{movieId}
: Returns the movie with the specified IDDELETE /mflix/movie/{movieId}
: Deletes a movie with the specified IDPATCH /mflix/movie/{movieId}
: Updates a movie with the specified ID
The following endpoints are related to comments:
GET /mflix/comments/{pageNo}/{limit}/{movieId}
: Returns comments according to the specified movie IDPOST /mflix/post_comment/{movieId}
: Posts a comment to a movie
POST /mflix/movie
: Adds a movie
The project is structured as follows:
- The
MovieController
directory contains the controllers for various movie-related endpoints. - The
MovieThumb
,AddMovie
,Movie
,Comment
,Imdb
,Award
,TomatoesViewer
,TomatoesCritic
,Tomatoes
,PostComment
,Header
,Movies
,Languages
, andGenres
schemas define the structure of the movie-related data.
For detailed instructions on setting up the API, refer to the project documentation.
To use the Movie Database API, you can make requests to the various endpoints listed above. Make sure to provide the required parameters and follow the provided guidelines.