@@ -25,7 +25,7 @@ private ResourceParameters() {
2525 public static List <String > getResourceSpecificParams (HttpServletRequest servletRequest ) {
2626 String uri = servletRequest .getRequestURI ();
2727 List <String > possibleParams = new LinkedList <>(Arrays .asList ("bboxes" , "bcircles" , "bpolys" ,
28- "types" , "keys" , "values" , " timeout" , "time" , "showMetadata" , "filter" ));
28+ "timeout" , "time" , "showMetadata" , "filter" ));
2929 if (uri .contains ("/count" ) || uri .contains ("/length" ) || uri .contains ("/area" )
3030 || uri .contains ("/perimeter" )) {
3131 possibleParams .add ("format" );
@@ -37,21 +37,12 @@ public static List<String> getResourceSpecificParams(HttpServletRequest servletR
3737 possibleParams .add ("groupByKeys" );
3838 } else if (uri .contains ("/ratio" )) {
3939 possibleParams .add ("filter2" );
40- possibleParams .add ("keys2" );
41- possibleParams .add ("types2" );
42- possibleParams .add ("values2" );
4340 } else if (uri .contains ("/bbox" ) || uri .contains ("/centroid" ) || uri .contains ("/geometry" )) {
4441 possibleParams .add ("properties" );
4542 possibleParams .add ("clipGeometry" );
4643 }
47- if (uri .contains ("/contributions" )) {
48- // removing deprecated params from newer endpoint
49- possibleParams .remove ("types" );
50- possibleParams .remove ("keys" );
51- possibleParams .remove ("values" );
52- if (uri .contains ("/count" )) {
53- possibleParams .add ("contributionType" );
54- }
44+ if (uri .contains ("/contributions" ) && uri .contains ("/count" )) {
45+ possibleParams .add ("contributionType" );
5546 }
5647 if (uri .contains ("/users" )) {
5748 possibleParams .add ("contributionType" );
0 commit comments