Skip to content

hantaray/myflix_api_java

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

*** MyFlixApi Java ***

A movie database API built with Java and Spring Boot.

Endpoints

Welcome

  • GET / - Welcome to MyFlix.

Movies

  • GET /movies - Retrieve all movies.
  • GET /movies/:title - Get a specific movie by title. (JWT authentication required)
  • GET /movies/genre/:name - Get movies by genre. (JWT authentication required)
  • GET /movies/director/:name - Get movies by director. (JWT authentication required)

Users

  • POST /users - Register a new user.
    • Fields: username, password, email (birthday is optional)
  • PUT /users/:username - Update user information. (JWT authentication required)
  • DELETE /users/:username - Delete a user. (JWT authentication required)

Favorite Movies

  • POST /users/:username/movies/:movieName - Add a movie to favorites. (JWT authentication required)
  • DELETE /users/:username/movies/:movieName - Remove a movie from favorites. (JWT authentication required)

Notes

Remember to secure sensitive data like your MongoDB connection string using environment variables or other secure methods.

About

REST API for the MyFlix Apps made with Java

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages