Java Programming Exercise
- Java 17
- Maven 4.0.0
mvn spring-boot:run
mvn spring-boot:run -Dspring-boot.run.arguments="--db.fileExtension=.yaml"
mvn test
- /swagger-ui/index.html#/
- /v3/api-docs
/movies // Get all movies
/movies/add // Add a movie
/movies/{category} // Get movies by category
/movies/id/{movieId} // Get movies by imdbId. Also fetches data from omdbApi.
/movies/delete?id={movieId} // Delete movie by imdbId
/movies/update?id={movieId} // Update movie by imdbId
/orders // Get all orders
/orders/stats // Get statistics
/orders/{orderId} // Get order by orderId
/orders/extend/{orderId} // Add new item to the order
/orders/delete?id={orderId} // Delete order with provided orderId
/orders/checkout?orderId={orderId} // Close order and checkout
/orders/stats/clear?movieId={movieId} // Clear movie statisticss
Jackson parsing errors:
- movies.json should contain at least an empty object {} before running the app.
- orders.json should contain at least an empty object {} before running the app.
- movies.yaml should contain --- at the top and at least an an empty object [] before running the app.
- orders.yaml should contain --- at the top and at least an an empty object [] before running the app.