Members
AnimeSchema
Anime Schema object
MovieSchema
Movie Schema object
TVSchema
TV series Schema object
(async) deleteAnime
API call to delete "/users/:id/:animes/:AnimeID" returning user json object with a deleted movie data (anime gets deleted from the FavoriteMovies)
(async) deleteMovie
API call to delete "/users/:id/:movies/:MovieID" returning user json object with a deleted movie data
(async) deleteTV
API call to delete "/users/:id/:tvseries/:tvID" returning user json object with a deleted movie data (tv series gets deleted from the FavoriteMovies)
(async) deleteUser
API call to delete "/users/:id" returning user json object with a deleted user data
(async) getAnimeDirector
API call to get "/animes/directors/directorName" returning json object with an anime director name and bio
(async) getAnimeGenre
API call to get "/animes/genres/animeName" returning json object with an anime genre name and description
(async) getAnimeTitle
API call to get "/animes/:animeTitle" returning json object with an anime
(async) getAnimes
API call to get all "/movies" returning JSON object (Returns all movies)
(async) getDocumentation
API call to get "/" returning documentation html file
(async) getDocumentation
API call to get "/" returning documentation html file
(async) getMovieDirector
API call to get "/movies/directors/:directorName" eturning json object with a movie director name and bio
(async) getMovieGenre
API call to get "/movies/genres/:genreName" returning json object with a movie genre name and description
(async) getMovieTitle
API call to get "/movies/movieTitle" returning json object with a movie
(async) getMovies
API call to get all "/movies" returning JSON object (Returns all movies)
(async) getTVDirector
API call to get "/tvseries/directors/directorName" returning json object with a tv series director name and bio
(async) getTVGenre
API call to get "/tvseries/genres/tvName" returning json object with a tv series genre name and description
(async) getTVSeries
API call to get all "/movies" returning JSON object (Returns all movies)
(async) getTVTitle
API call to get "/tvseries/:tvTitle" returning json object with an TV series
(async) postAnime
API call to post "/users/:id/:animes/:AnimeID" returning user json object with a favorite anime data (anime gets pushed to favoriteMovies)
(async) postMovie
API call to post "/users/:id/:movies/:MovieID" returning user json object with a favorite movie data
(async) postTV
API call to post "/users/:id/:tvseries/:tvID" returning user json object with a favorite movie data (tv series gets pushed to favoriteMovies)
(async) postUser
API call to post "/users" returning json object with a new user
(async) putUser
API call to put "/users/:id" returning user json object with an updated user data
Methods
generateToken(Generates)
Generates a JWT token
Parameters:
Name | Type | Description |
---|---|---|
Generates |
a JWT token |
loginUserAndToken(/users/:id/, Username:, Password:)
API call to login a user with Passport Authentication and generate a token
Parameters:
Name | Type | Description |
---|---|---|
/users/:id/ |
string | |
Username: |
object | string |
Password: |
object | number |