myFlix API Documentation

Welcome to Cody's Movie Finder. Here you will be able to search for any movie. You can search by actor/actress, year it was made, genre and more. You will also be able to save your favorite movies to your own page.

Business Logic URL HTTP Method Query Params Request Body Response Body
Return list of all movies /movies GET none none return JSON object with all movie data
Return data about single movie by title /movies/:title GET :title none return JSON object with specific movie data
Return data about a genre type by name/title /movies/genre/:genreName GET :genreName none return JSON object with specific movie genre type
Return data about a director by name /movies/directors/:directorName GET :directorName none return JSON object with details about a director
Allow new users to register /users POST none New user input info (username,email and password) in JSON format { "Username": string, "Password": string, "Email": string, "Birthday": date } New user info that was added in JSON format { "_id": "655bcf98e860f03d04debe16", "username": "Sydney_Crosby", "password": "Sid_the_kid", "email": "Sydthekid87@example.com", "birthday": "1987-08-07T00:00:00.000Z", },
Return data about single user by username /users/:Username GET :Username none return JSON object with data about that Username { "_id": "65616fd9edea72e2b146602a", "Username": "Testing45", "Password": "TEtioe", "Email": "wnbjv@test.com", "Birthday": "1987-06-16T06:00:00.000Z", "Favorites": [], "__v": 0 },
Allow users to update their username /users/:id PUT :id Enter updated username in JSON format Updated user info (username) that was added in JSON format
Allow users to add a movie to their favorites /users/:id/movieTitle POST :id :movieTitle none Confirmation that the movie title has been added to favorites
Allow users to delete a movie from their favorites /users/:id/:movieTitle Delete :id :movieTitle none Confirmation that the movie title has been deleted favorites
Allow users to deregister /users/:id Delete :id none Confirmation that user email has been removed