I have a Spring REST application. I am using Swagger for API documentation purpose.
What I have any my REST controllers are, methods with @RequestMapping
.
I have two overloaded methods, they differ in terms of arguments.
But Swagger UI only shows one.
Is it my approach which is wrong (overloading controller methods) or it is a bug in Swagger?
It is a limitation in swagger specification. However if you are using springfox, you can configure your Docket
with docket.enableUrlTemplating(true)
. This will allow your overloaded methods to show up in the service document.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With