소스 검색

Modified REST statistics GET to return stat.name() (as documented in the Event Statistics key column) rather than the undocumented stat.getKey values).

Adam Jerome 7 년 전
부모
커밋
ad54e23e19
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      server/src/main/java/password/pwm/ws/server/rest/RestStatisticsServer.java

+ 1 - 1
server/src/main/java/password/pwm/ws/server/rest/RestStatisticsServer.java

@@ -137,7 +137,7 @@ public class RestStatisticsServer extends RestServlet
         final Map<String, Object> outputValueMap = new TreeMap<>();
         for ( final Statistic stat : Statistic.values() )
         {
-            outputValueMap.put( stat.getKey(), statisticsBundle.getStatistic( stat ) );
+            outputValueMap.put( stat.name(), statisticsBundle.getStatistic( stat ) );
         }
 
         return outputValueMap;