Web application for cinema. The application is designed to work with movies and seances.
The project consists of two cooperating applications, designed to work with information about movies and seances.
cinemarest.war — REST service providing access to a database of movies and seances.
cinemaweb.war — Web application providing an interface for working with the REST service.
- JDK 1.8
- Spring 4 Framework
- Maven v3.2.2
- Jetty v.9.4.8
- H2 database v1.4.196
$mvn clean install
$mvn -pl rest/ jetty:run
$ curl -H "Content-Type: application/json" -X POST -d '{"movieName":"Movie 42","movieDescription":"Ha-Ha"}' -v localhost:8088/movies
$ curl -v localhost:8088/movies
$ curl -v localhost:8088/movies/1
$ curl -X PUT -H "Content-Type: application/json" -d '{"movieId":"1","movieName":"New Movie","movieDescription":"Ho-Ho"}' -v localhost:8088/movies
$ curl -X PUT -H "Content-Type: application/json" -d '{}' -v localhost:8088/movies/1
$mvn -pl web-app/ jetty:run
http://localhost:8080/movies
EPAM Java Course, Brest 2018
by Oleg Datskevich
e-mail: olegdac@gmail.com
tel: +375(29)5266584