get kinosaal

This commit is contained in:
2025-10-24 23:34:47 +02:00
parent 9a53f3bda8
commit f29e669e25
2 changed files with 11 additions and 1 deletions

View File

@@ -35,7 +35,7 @@
<dependency>
<groupId>de.infinimotion</groupId>
<artifactId>model-backend</artifactId>
<version>0.0.55</version>
<version>0.0.56</version>
</dependency>
<!-- Quarkus -->

View File

@@ -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();