Worst Movie is an API that handles the latest movies chosen by the Golden Raspberry Awards.
First you will need to clone this project or download and save it in a directory of your choice.
Then, through a terminal window, access the project directory, and execute the following command:
mvnw spring-boot:run
After that, just have fun accessing the api through your browser on the default port 8080.
The API swagger and documentation can be found at URL: http://localhost:8080/swagger-ui/index.html
Through a terminal window, access the project directory, and execute the following command:
mvnw test
You can import custom movies, that's right! Just in your command line add the file directory.
Through a terminal window, access the project directory, and execute the following command (change "D:\movies" to your movies directory):
mvnw spring-boot:run -Dspring-boot.run.arguments=--goldenraspberryawards.worstmovie.loadmoviesfromfile.csv.path=C:\movies.csv
- year - only the year of the award, and only numbers
- title - movie title
- studios - movie studio, if there is more than one studio, separate them (in the same column) by "," (comma).
- producers - producers of the film, if there is more than one producer, separate them (in the same column) by "," (comma).
- winner - optional if the film is the winner
Do you have any questions, it's simple, just access the example file: movielist.csv