Skip to content

Commit

Permalink
Add PATCH request mapping (#81)
Browse files Browse the repository at this point in the history
  • Loading branch information
wkennedy committed Jul 25, 2014
1 parent ead17dc commit 7c621bb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ trait SpringMVCApiReader extends ClassReader with ClassReaderUtils {
val requestMapping = if(requestMappingAnnotation != null && !requestMappingAnnotation.method().isEmpty) requestMappingAnnotation.method()(0) else "GET"
if(RequestMethod.GET.equals(requestMapping)) "GET"
else if(RequestMethod.DELETE.equals(requestMapping)) "DELETE"
// else if(method.getAnnotation(classOf[PATCH]) != RequestMethod.) "PATCH"
else if(RequestMethod.PATCH.equals(requestMapping)) "PATCH"
else if(RequestMethod.POST.equals(requestMapping)) "POST"
else if(RequestMethod.PUT.equals(requestMapping)) "PUT"
else if(RequestMethod.HEAD.equals(requestMapping)) "HEAD"
Expand Down

0 comments on commit 7c621bb

Please sign in to comment.