A movie database API built with Java and Spring Boot.
GET /
- Welcome to MyFlix.
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)
POST /users
- Register a new user.- Fields:
username
,password
,email
(birthday is optional)
- Fields:
PUT /users/:username
- Update user information. (JWT authentication required)DELETE /users/:username
- Delete a user. (JWT authentication required)
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)
Remember to secure sensitive data like your MongoDB connection string using environment variables or other secure methods.