-
Notifications
You must be signed in to change notification settings - Fork 449
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
swagger.json generate only with tags section #467
Comments
Hi, |
@mcicolella looks like you are using a fairly outdated version (3.0.0), latest is 3.1.5 |
@danieleorler updated to 3.1.5 but the build fails |
@mcicolella yeah the location definition has changed a bit: from: <locations>com.freedomotic.plugins.devices.restapiv3.resources</locations> to <locations>
<location>com.freedomotic.plugins.devices.restapiv3.resources</location>
</locations> |
We have the same problem. And it does not help by updating to 3.1.5. It simply does not recognize all the annotations I had.
|
Since it looks like you are using Jax/RS, try instead of @RequestMapping(value = "/") @RequestMapping(path = "/") |
Thanks @thlaegler! I'm using Spring Boot and it works when I use |
Hi, Even Changing to value its not working, Do u have any working example of spring boot with static doc generation |
The code is proprietary, so I cannot give you the original one. But I can give you a simplified and modified version. The controller class basically looks like this:
If this doesn't work for you then estimatedly it's caused by your different Maven dependency configuration or by the Swagger plugin version you use. |
Thanks, that helps |
Hi,
I get build success, but a very partial json swagger is create. Namely it look like my @ApiOperation annotation is completely missed or ignored.
When I compile I see the following print:
--- swagger-maven-plugin:3.1.4:generate (default) @ backend ---
[INFO] Reflections took 126 ms to scan 1 urls, producing 9 keys and 12 values
[INFO] Reflections took 5 ms to scan 1 urls, producing 9 keys and 12 values
[INFO] Reflections took 5 ms to scan 1 urls, producing 9 keys and 12 values
[INFO] Reflections took 5 ms to scan 1 urls, producing 9 keys and 12 values
Using
com.github.kongchen
swagger-maven-plugin
3.1.4
Swagger annotations, swagger core and springfox
io.swagger swagger-annotations 1.5.6And My code:
`
@Api(tags = "Greetings", description = "Greeting Resource")
@RestController
@RequestMapping(value = "api/greetings" , produces = "application/json")
public interface GreetingsController {
}
`
when I run my app and check /api-docs - I see the correct full json.
Please help
The text was updated successfully, but these errors were encountered: