mongodb statistics

This commit is contained in:
2025-11-14 01:19:31 +01:00
parent 2068c12db2
commit fe15d11d7b
2 changed files with 25 additions and 1 deletions

View File

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

View File

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