Skip to content

Add support for BasePathAwareController #1383

Closed
@crizzis-unordinal

Description

@crizzis-unordinal

Describe the feature
Using @BasePathAwareController does not result in any endpoints generated in the OpenAPI

To Reproduce

  • Create a @BasePathAwareController-annotated controller
  • Start app and navigate to generated API Docs

Expected behavior

  • Operations defined inside @BasePathAwareController get declared in the generated API Docs

Screenshots

Assume there is a base repository rest resource user-profile declared as @RepositoryRestResource(collectionResourceRel = "profiles", path = "profiles"). When declaring an extension to the base API using:

@Tag(name = "user-profile-projects", description = "Managing user profile projects")
@RestController

we get:

Zrzut ekranu 2021-12-14 o 12 43 20

However, switching to:

@Tag(name = "user-profile-projects", description = "Managing user profile projects")
@BasePathAwareController

results in:
Zrzut ekranu 2021-12-14 o 12 44 25

where user-profile-projects is gone.

Additional context

Tried with both 1.5.2 and 1.6.0. This bug probably means @RepostoryRestController is ignored, too.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions