You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 14, 2022. It is now read-only.
Hi,
I have two different paths for the generation of swagger.json.
GET /swaggerusers.json controllers.ApiHelpController.getResource(path = "/users")
GET /swaggerclients.json controllers.ApiHelpController.getResource(path = "/clients")
Each swagger has only endpoints from the specified path as expected but also gets the "tag" declarations from irrelevant paths.
E.g.:
/users
@Api(tags = {"User"}, produces = "application/json",consumes = "application/json")
public class UsersController{
..
public Result methodA(){
..
}
}
@Api(tags = {"Clients"}, produces = "application/json",consumes = "application/json")
public class ClientsController{
..
public Result methodB(){
..
}
}
So, if I call endpoint
/swaggerusers.json
Swagger file contains endpoints from UsersController as expected but also the "tag" from ClientsController which I don't want to display in this swagger.
Is there any way I can properly separate this two swaggers?
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hi,
I have two different paths for the generation of swagger.json.
Each swagger has only endpoints from the specified path as expected but also gets the "tag" declarations from irrelevant paths.
E.g.:
/users
@Api(tags = {"User"}, produces = "application/json",consumes = "application/json")
public class UsersController{
..
public Result methodA(){
..
}
}
@Api(tags = {"Clients"}, produces = "application/json",consumes = "application/json")
public class ClientsController{
..
public Result methodB(){
..
}
}
So, if I call endpoint
/swaggerusers.json
Swagger file contains endpoints from UsersController as expected but also the "tag" from ClientsController which I don't want to display in this swagger.
Is there any way I can properly separate this two swaggers?
The text was updated successfully, but these errors were encountered: