Skip to content

v3 programmatic interface #2193

Open
Open
@arthurdm

Description

@arthurdm

[Updated based on Leo's comments]

interface OpenAPIController

OpenAPIConfig bootstrap();

where bootstrap() can be used to return an OpenAPIConfig object which encapsulates all configurations (for Reader, Scanner, OpenAPI, etc) along with a predefined OpenAPI definition (optional) to start-off (similar to beforeScan in v2).

OpenAPIConfig class will have getters and setters for configurable items:

getOpenAPI()
setOpenAPI(OpenAPI)
getClasses()
setClasses(Set<Class<?>>)
isScan()
setScan(boolean)
getFilterClass()
setFilterClass(String)
isPrettyPrint()
setPrettyPrint(boolean)
getIgnoredRoutes()
setIgnoredRoutes(Collection)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions