diff --git a/pom.xml b/pom.xml index c381764..89dd48c 100644 --- a/pom.xml +++ b/pom.xml @@ -35,7 +35,7 @@ de.infinimotion model-backend - 0.0.55 + 0.0.56 diff --git a/src/main/java/de/infinimotion/backend/KinosaalResource.java b/src/main/java/de/infinimotion/backend/KinosaalResource.java index 4f14e95..6a4aa13 100644 --- a/src/main/java/de/infinimotion/backend/KinosaalResource.java +++ b/src/main/java/de/infinimotion/backend/KinosaalResource.java @@ -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();