Java RESTful API developed using spark - a simple expressive microframework for Java. The API allows for adding and fetching films and film reviews from a database.
The API includes following endpoints:
/films
getting all films or adding a new film/films/{filmId}
getting a film with specificfilmId
/films/{filmId}/reviews
getting all reviews for given a film or adding a review for a film/reviews
getting all reviews
The project uses sql2o
to execute sql statements against JDBC compliant database. For the purpose of the project, a local H2 database was used. The database is initialized using init.sql
script.
Java 14
Spark, Sql2o, Gson, H2
JUnit 5
Radoslaw Soltan