mongodb statistics
This commit is contained in:
@@ -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