Something here doesn’t make sense.

You’re using swagger-core 1.5.9 and swagger-springmvc – you can’t really use 
both.

Based on your code, it’s a Spring MVC project. Swagger-springmvc is very old 
and produces an old version of Swagger which may not translate well in 
swagger-ui.

Consider upgrading to https://github.com/springfox/springfox/.

 

 

 

From: <[email protected]> on behalf of 
"[email protected]" <[email protected]>
Reply-To: "[email protected]" 
<[email protected]>
Date: Thursday, 28 July 2016 at 08:03
To: Swagger <[email protected]>
Subject: @ApiOperation annotation does not cause swagger ui to render 
descriptions

 

 
I cannot seem to get the annotations I am adding to be seen by swagger-ui.  I 
am specifically having trouble with the annotations to update the method 
descriptions and implementation notes.  Everything compiles and runs, but my 
descriptions do not show.
 
As an example, I would expect the method below to update the Implementation 
notes section to "Returns news items".  Instead it is set to "entries" (the 
name of the method).
 
@RequestMapping(value = "/qtl/hey", method = RequestMethod.GET)
@ApiOperation(value = "Get News", notes = "Returns news items")
Collection<NewsEntry> entries() {
    return this.entries.values();
}
 

 

I am using Java Spring rest controllers and my gradle config is below.  any 
help is appreciated 

 

compile group: 'com.mangofactory', name: 'swagger-springmvc', version: '1.0.2'
compile group: 'io.swagger', name: 'swagger-core', version: '1.5.9'
 

-- 
You received this message because you are subscribed to the Google Groups 
"Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to