Run rest server:
mvn jetty:run
Soap test client application:
com.epam.cinema.client.soap.Runner
curl request:
curl --header "content-type: text/xml" -d @addUserRequest.xml http://localhost:8080/ws
curl --header "content-type: text/xml" -d @getUsersRequest.xml http://localhost:8080/ws
Run rest server:
mvn jetty:run
Run RestTemplate application:
mvn jar:jar
java -cp target/cinema-1.0-SNAPSHOT.jar com.epam.cinema.client.rest.Runner
Rest with pdf:
http://localhost:8080/rest/tickets/get
mvn jetty:run
http://localhost:8080/
http://localhost:8080/login
http://localhost:8080/events
After login go to user profile, there is Add money filed.
Go to events page
http://localhost:8080/events
Click book ticket and fill seat number. After all click submit.
+--------------------+-------------+
| email | password |
+--------------------+-------------+
| admin@mail.com | 123 |
| user@mail.com | 123 |
| manager@mail.com | 123 |
+----------------------------------+
- There are two json files for uploading (user.json and event.json)
mvn clean install
java -jar target/cinema-1.0-SNAPSHOT.jar
Database schema: https://image.ibb.co/fykp1R/cinemadb.png
Create new user
create-user --firstName Bob --lastName Smith --email Bob@mail.com --birthday 1998-02-10
Lets sign in
sign-in --email Bob@mail.com
Then book some tickets:
book-ticket --eventId 1 --time 2017-10-01T18:30 --seats 5
book-ticket --eventId 1 --time 2017-10-01T18:30 --seats 10
book-ticket --eventId 1 --time 2017-10-01T18:30 --seats 15
Then we can check user's messages for win free tickets:
users
Or we can check discounts, that we have got early
stat-disk
Then we can request event by name or get event's price by name:
events --name Kingsman\ 2
event-price --name Kingsman\ 2
See result:
stat-count
sign-in --email Siarhei_Blashuk@epam.com book-ticket --eventId 0 --time 2017-10-01T18:30 --seats 10
events --name Kingsman\ 2 event-price --name Kingsman\ 2
Hello, let's create new user:
create-user --firstName Bob --lastName Smith --email Bob@mail.com --birthday 1998-02-10
Get all users:
users --all
users
We need admin privileges to create some staff:
sign-in --email Siarhei_Blashuk@epam.com
Then we can add new Auditorium:
create-auditorium --name Vip --seats 10 --vip 1,2,3,4,5
Get all auditoriums:
auditoriums --all
auditoriums
After let's go create Event:
create-event --name Star_Wars_9 --rating HIGH --basePrice 5
Then we need to add auditorium to event:
add-event-auditorium --eventId 1 --auditoriumId 2 --time 2017-02-11T18:30:00
Now, we can see our event with auditory:
events --all
events
After all we want buy some tickets First, you need sign in
sign-in --email Bob@mail.com
Second, let's buy tickets
book-ticket --eventId 1 --time 2017-02-11T18:30:00 --seats 10
Check our tickets:
who-am-i
And log out
log-out
jenkins 1