@@ -25,7 +25,7 @@ private ResourceParameters() {
25
25
public static List <String > getResourceSpecificParams (HttpServletRequest servletRequest ) {
26
26
String uri = servletRequest .getRequestURI ();
27
27
List <String > possibleParams = new LinkedList <>(Arrays .asList ("bboxes" , "bcircles" , "bpolys" ,
28
- "types" , "keys" , "values" , " timeout" , "time" , "showMetadata" , "filter" ));
28
+ "timeout" , "time" , "showMetadata" , "filter" ));
29
29
if (uri .contains ("/count" ) || uri .contains ("/length" ) || uri .contains ("/area" )
30
30
|| uri .contains ("/perimeter" )) {
31
31
possibleParams .add ("format" );
@@ -37,21 +37,12 @@ public static List<String> getResourceSpecificParams(HttpServletRequest servletR
37
37
possibleParams .add ("groupByKeys" );
38
38
} else if (uri .contains ("/ratio" )) {
39
39
possibleParams .add ("filter2" );
40
- possibleParams .add ("keys2" );
41
- possibleParams .add ("types2" );
42
- possibleParams .add ("values2" );
43
40
} else if (uri .contains ("/bbox" ) || uri .contains ("/centroid" ) || uri .contains ("/geometry" )) {
44
41
possibleParams .add ("properties" );
45
42
possibleParams .add ("clipGeometry" );
46
43
}
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" );
55
46
}
56
47
if (uri .contains ("/users" )) {
57
48
possibleParams .add ("contributionType" );
0 commit comments