Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[breaking] DELETE endpoint parameters should be looked up in QUERY pa…
…rameters instead of BODY content when no @param is provided (default behaviour)
  • Loading branch information
fcamblor committed Jan 22, 2017
1 parent e038c34 commit 449b870
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -200,7 +200,7 @@ private void buildResourceMethodParams(ResourceMethodAnnotation annotation, Reso
pathParamNamesToMatch.remove(reqParamName);
parameterKind = ResourceMethodParameterKind.PATH;
} else if (parameterKind == null) {
if (ImmutableList.of("GET", "HEAD").contains(resourceMethod.httpMethod)) {
if (ImmutableList.of("GET", "HEAD", "DELETE").contains(resourceMethod.httpMethod)) {
parameterKind = ResourceMethodParameterKind.QUERY;
} else {
parameterKind = ResourceMethodParameterKind.BODY;
Expand Down

0 comments on commit 449b870

Please sign in to comment.