R3play API Documentation

R3play Github repository

R3play API Link

Members

AnimeSchema

Anime Schema object
Source:

MovieSchema

Movie Schema object
Source:

TVSchema

TV series Schema object
Source:

(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)
Source:

(async) deleteMovie

API call to delete "/users/:id/:movies/:MovieID" returning user json object with a deleted movie data
Source:

(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)
Source:

(async) deleteUser

API call to delete "/users/:id" returning user json object with a deleted user data
Source:

(async) getAnimeDirector

API call to get "/animes/directors/directorName" returning json object with an anime director name and bio
Source:

(async) getAnimeGenre

API call to get "/animes/genres/animeName" returning json object with an anime genre name and description
Source:

(async) getAnimeTitle

API call to get "/animes/:animeTitle" returning json object with an anime
Source:

(async) getAnimes

API call to get all "/movies" returning JSON object (Returns all movies)
Source:

(async) getDocumentation

API call to get "/" returning documentation html file
Source:

(async) getDocumentation

API call to get "/" returning documentation html file
Source:

(async) getMovieDirector

API call to get "/movies/directors/:directorName" eturning json object with a movie director name and bio
Source:

(async) getMovieGenre

API call to get "/movies/genres/:genreName" returning json object with a movie genre name and description
Source:

(async) getMovieTitle

API call to get "/movies/movieTitle" returning json object with a movie
Source:

(async) getMovies

API call to get all "/movies" returning JSON object (Returns all movies)
Source:

(async) getTVDirector

API call to get "/tvseries/directors/directorName" returning json object with a tv series director name and bio
Source:

(async) getTVGenre

API call to get "/tvseries/genres/tvName" returning json object with a tv series genre name and description
Source:

(async) getTVSeries

API call to get all "/movies" returning JSON object (Returns all movies)
Source:

(async) getTVTitle

API call to get "/tvseries/:tvTitle" returning json object with an TV series
Source:

(async) postAnime

API call to post "/users/:id/:animes/:AnimeID" returning user json object with a favorite anime data (anime gets pushed to favoriteMovies)
Source:

(async) postMovie

API call to post "/users/:id/:movies/:MovieID" returning user json object with a favorite movie data
Source:

(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)
Source:

(async) postUser

API call to post "/users" returning json object with a new user
Source:

(async) putUser

API call to put "/users/:id" returning user json object with an updated user data
Source:

Methods

generateToken(Generates)

Generates a JWT token
Parameters:
Name Type Description
Generates a JWT token
Source:

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
Source: