Skip to content

Commit 449b870

Browse files
committed
[breaking] DELETE endpoint parameters should be looked up in QUERY parameters instead of BODY content when no @param is provided (default behaviour)
1 parent e038c34 commit 449b870

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

restx-core-annotation-processor/src/main/java/restx/annotations/processor/RestxAnnotationProcessor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ private void buildResourceMethodParams(ResourceMethodAnnotation annotation, Reso
200200
pathParamNamesToMatch.remove(reqParamName);
201201
parameterKind = ResourceMethodParameterKind.PATH;
202202
} else if (parameterKind == null) {
203-
if (ImmutableList.of("GET", "HEAD").contains(resourceMethod.httpMethod)) {
203+
if (ImmutableList.of("GET", "HEAD", "DELETE").contains(resourceMethod.httpMethod)) {
204204
parameterKind = ResourceMethodParameterKind.QUERY;
205205
} else {
206206
parameterKind = ResourceMethodParameterKind.BODY;

0 commit comments

Comments
 (0)