get kinosaal
This commit is contained in:
2
pom.xml
2
pom.xml
@@ -35,7 +35,7 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>de.infinimotion</groupId>
|
<groupId>de.infinimotion</groupId>
|
||||||
<artifactId>model-backend</artifactId>
|
<artifactId>model-backend</artifactId>
|
||||||
<version>0.0.55</version>
|
<version>0.0.56</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<!-- Quarkus -->
|
<!-- Quarkus -->
|
||||||
|
|||||||
@@ -23,6 +23,16 @@ public class KinosaalResource {
|
|||||||
return CommandListKinosaalResponse.deserialize(response).getList();
|
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
|
@POST
|
||||||
public Kinosaal createKinosaal(Kinosaal hall) throws IOException, ExecutionException, InterruptedException {
|
public Kinosaal createKinosaal(Kinosaal hall) throws IOException, ExecutionException, InterruptedException {
|
||||||
CommandCreateKinosaal request = new CommandCreateKinosaal();
|
CommandCreateKinosaal request = new CommandCreateKinosaal();
|
||||||
|
|||||||
Reference in New Issue
Block a user