Permalink
Browse files

[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 19, 2017
1 parent e038c34 commit 449b8703c456b84b23afebc84cca04dba20c3c9e
@@ -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;

0 comments on commit 449b870

Please sign in to comment.