-
Notifications
You must be signed in to change notification settings - Fork 38
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
support swagger annotated resources/models classes #12
Comments
Just to confirm, i can't use : @ApiResponses(value = { it will be ignored by the doclet right? there is any alternative to generate response api? also for return types like: @ApiOperation(value = "FindById",, response = SomeEntity.class) thanks in advance. |
yes these will be ignored until I have a chance to add support for them which is unlikely to be until the new year to be honest. /** Out of curiosity if you already have source that uses the swagger annotations wouldn't you just use the swagger jaxrs e.g. like in this article: http://jmchung.github.io/blog/2013/12/14/integrating-swagger-into-jax-rs-with-java-ee-6-specification/ or are you using it but want offline documentation? |
I dont have swagger annotations, i was just wondering how to add response to the api. I really prefer using javadoc instead of proprietary annotations. I also found in examples
to document return type. Where these javadoc annotations come from? many thanks! |
If you take a look at the readme.md file https://github.com/Carma-Public/swagger-jaxrs-doclet#supported-javadoc-tags-and-annotations you will see a full list of all the supported javadoc tags. These tags are specific to this project. |
ahh i think i may have misunderstood you. Swagger supports both a default response model and a specific response model per different response code. The @responseType tag is for the normal response model. Using the @responseMessage tag allows you to add a different response model (usually a custom error entity) on a per response code basis |
Yes, this was just what i was looking for.
am i missing something? |
solved my problem(returning a string with content type json made swagger ui to hang). sorry to spam this issue and thanks for your help. |
support swagger annotated resources/models classes, e.g. support swagger annotations so people can use this for their api json instead of all the additional javadoc tags, this would allow this to act as an alternative to other swagger tools
The text was updated successfully, but these errors were encountered: