This is a sample project how to work with akka-http
{
"imdbId": "tt0111161",
"availableSeats": 100,
"screenId": "screen_123456"
}
{
"imdbId": "tt0111161",
"screenId": "screen_123456"
}
{
"imdbId": "tt0111161",
"screenId": "screen_123456"
}
To run tests type "sbt test" in the root project folder.
To run the application type "sbt run" in the root project folder.
curl -H "Content-Type: application/json" -X POST -d '{"imdbId":"tt0137523", "availableSeats":10, "screenId":"screen_123456"}' http://localhost:8080/tickets/register
curl -H "Content-Type: application/json" -X POST -d '{"imdbId":"tt0137523", "screenId":"screen_123456"}' http://localhost:8080/tickets/reserve
curl -H "Content-Type: application/json" -X GET -d '{"imdbId":"tt0137523", "screenId":"screen_123456"}' http://localhost:8080/tickets/state