@@ -69,13 +69,17 @@ private List<TallyPack<String>> findStatTalliesRoute(Request request, Response r
6969 public void register () {
7070
7171 String findTopLevelDefinitionsPath = mkPath (BASE_URL , "definition" );
72+ String findDefinitionPath = mkPath (BASE_URL , "definition" , ":id" );
7273 String findRelatedStatDefinitionsPath = mkPath (BASE_URL , "definition" , ":statId" , "related" );
7374 String findStatValuesBySelectorPath = mkPath (BASE_URL , "value" , ":statId" );
7475 String findStatTalliesPath = mkPath (BASE_URL , "tally" );
7576
7677 ListRoute <EntityStatisticDefinition > findTopLevelDefinitionsRoute = (request , response )
7778 -> entityStatisticService .findTopLevelDefinitions ();
7879
80+ DatumRoute <EntityStatisticDefinition > findDefinitionRoute = (request , response )
81+ -> entityStatisticService .findDefinition (getId (request ));
82+
7983 ListRoute <EntityStatisticValue > findStatValuesForAppSelectorRoute = (request , response )
8084 -> entityStatisticService .getStatisticValuesForAppIdSelector (getLong (request , "statId" ), readOptionsFromBody (request ));
8185
@@ -86,6 +90,7 @@ public void register() {
8690 postForList (findStatValuesBySelectorPath , findStatValuesForAppSelectorRoute );
8791 postForList (findStatTalliesPath , this ::findStatTalliesRoute );
8892 getForDatum (findRelatedStatDefinitionsPath , findRelatedStatDefinitionsRoute );
93+ getForDatum (findDefinitionPath , findDefinitionRoute );
8994 }
9095
9196}
0 commit comments