Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow user created @PATCH, @GET ...etc annotations #1679

Merged
merged 1 commit into from Feb 25, 2016

Conversation

ed0906
Copy link
Contributor

@ed0906 ed0906 commented Feb 24, 2016

Solution to defect: #1643.

Currently Javax does not support the PATCH annotation so some users have created their own in the form below to avoid them coupling their code to Swaggers io.swagger.jaxrs.PATCH:

@Target({ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
@HttpMethod("PATCH")
public @interface PATCH{ 
}

Which is picked up by Jersey but not by Swagger. This change makes swagger check through all resource method annotations to find the HttpMethod like above.

@webron
Copy link
Contributor

webron commented Feb 24, 2016

@frantuma - can you review this please?

@frantuma
Copy link
Member

@webron looks ok, it adds additional option as source of http verb for operation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants