kongchen / swagger-maven-plugin

JAX-RS & SpringMVC supported maven build plugin, helps you generate Swagger JSON and API document in build phase.
http://kongchen.github.io/swagger-maven-plugin/
Apache License 2.0
761 stars 451 forks source link

JAX-RS: Support custom HTTP verb annotations #187

Open sudohippie opened 9 years ago

sudohippie commented 9 years ago

JAX-RS annotations do not represent all the HTTP verbs, for example @java.ws.rs.PATCH is missing.

A custom annotation may be created and it must be annotated with @javax.ws.rs.HTTPMethod("<VERB>") annotation.

swagger-core has its own implementation, @io.swagger.jaxrs.PATCH. However, most of us have created our own versions as well (@com.company.project.PATCH). The plugin must support them.

sudohippie commented 9 years ago

I have a fix for this. Will submit a PR shortly.

sudohippie commented 9 years ago

@who, @kongchen - submitted PR to resolve this.