get kinosaal
This commit is contained in:
@@ -23,6 +23,16 @@ public class KinosaalResource {
|
||||
return CommandListKinosaalResponse.deserialize(response).getList();
|
||||
}
|
||||
|
||||
@GET
|
||||
@Path("/{id}")
|
||||
public Kinosaal getKinosaal(@PathParam("id") Integer id) throws IOException, ExecutionException, InterruptedException {
|
||||
CommandGetKinosaal request = new CommandGetKinosaal();
|
||||
request.setId(id);
|
||||
|
||||
CommandWrapper response = requester.request(request.serialize().generateIds().commit());
|
||||
return CommandGetKinosaalResponse.deserialize(response).getHall();
|
||||
}
|
||||
|
||||
@POST
|
||||
public Kinosaal createKinosaal(Kinosaal hall) throws IOException, ExecutionException, InterruptedException {
|
||||
CommandCreateKinosaal request = new CommandCreateKinosaal();
|
||||
|
||||
Reference in New Issue
Block a user