mongodb statistics
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.89</version>
|
<version>0.0.101</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<!-- Quarkus -->
|
<!-- Quarkus -->
|
||||||
|
|||||||
@@ -0,0 +1,24 @@
|
|||||||
|
package de.infinimotion.backend.endpoint;
|
||||||
|
|
||||||
|
import de.infinimotion.model.backend.*;
|
||||||
|
import jakarta.enterprise.context.ApplicationScoped;
|
||||||
|
import jakarta.inject.Inject;
|
||||||
|
import jakarta.ws.rs.GET;
|
||||||
|
import jakarta.ws.rs.Path;
|
||||||
|
|
||||||
|
@ApplicationScoped
|
||||||
|
@Path("/statistics")
|
||||||
|
public class Statistics {
|
||||||
|
|
||||||
|
@Inject
|
||||||
|
RequestReply requester;
|
||||||
|
|
||||||
|
@GET
|
||||||
|
@Path("/list")
|
||||||
|
public CommandListStatisticsResponse list() throws Exception {
|
||||||
|
CommandListStatistics request = new CommandListStatistics();
|
||||||
|
CommandWrapper requestWrapper = request.serialize().generateIds().commit();
|
||||||
|
return CommandListStatisticsResponse.deserialize(requester.request(requestWrapper));
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user