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

feature request: add ElementType.TYPE target to @ApiResponses and @ApiResponse #1382

Closed
iguanito opened this issue Aug 20, 2015 · 0 comments
Closed
Labels
Milestone

Comments

@iguanito
Copy link

In order to avoid code duplication, it could be interesting to have ApiResponses and ApiResponse annotations on class or interface. Furthermore, it would be interesting to add such annotation on exceptions since it's quite common to map an exception to a specific HTTP response. Methods throwing annotated exception would be automatically documented.
Obviously it would imply some drawbacks such as a more scattered code documentation.

I didn't find any issue or discussion in the google group on this topic. If it was discussed before, feel free to tell me what was the conclusion and close the issue.

@webron webron added the Feature label Aug 20, 2015
@webron webron added this to the v1.5.4 milestone Aug 20, 2015
@fehguy fehguy modified the milestones: v1.5.5, v1.5.4 Oct 19, 2015
@fehguy fehguy modified the milestones: v1.5.5, v1.5.6 Dec 23, 2015
@fehguy fehguy modified the milestones: v1.5.6, v1.5.7 Jan 6, 2016
@fehguy fehguy modified the milestones: v1.5.7, v1.5.8 Feb 5, 2016
frantuma added a commit that referenced this issue Mar 7, 2016
Close #1382 - @ApiResponse at class level
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants