Skip to content
This repository was archived by the owner on Sep 14, 2022. It is now read-only.
This repository was archived by the owner on Sep 14, 2022. It is now read-only.

controllers.ApiHelpController.getResource(path = "/users") picks up tags from other pathes #221

@akkihan

Description

@akkihan

Hi,
I have two different paths for the generation of swagger.json.

  1. GET /swaggerusers.json controllers.ApiHelpController.getResource(path = "/users")
  2. 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.:

  1. /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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions