public interface SpincastOpenApiManager
| Modifier and Type | Method and Description |
|---|---|
void |
clearCache()
Clears the cache.
|
io.swagger.v3.oas.models.OpenAPI |
getOpenApi()
The generated specifications as a
OpenAPI object.
|
String |
getOpenApiAsJson()
The generated specifications as pretty
formatted JSON.
|
String |
getOpenApiAsJson(boolean prettyFormatted)
The generated specifications as JSON.
|
String |
getOpenApiAsYaml()
The generated specifications as pretty
formatted YAML.
|
String |
getOpenApiAsYaml(boolean prettyFormatted)
The generated specifications as YAML.
|
void |
ignoreRoutesByIds(String... ids)
Ignore routes using their ids.
|
void |
ignoreRouteUsingHttpMethodAndPath(HttpMethod method,
String path)
Ignore a route using its HTTP method and path.
|
void |
resetAll()
Reset everything : delete caches, delete ignored routes, etc.
|
void |
setOpenApiBase(io.swagger.v3.oas.models.OpenAPI baseOpenApiInfo)
The base OpenAPI informations for the generated
specs file.
|
void setOpenApiBase(io.swagger.v3.oas.models.OpenAPI baseOpenApiInfo)
This can be a full and standalone OpenAPI object, containing your paths, models, etc. Or it can be the base information to which specs specific to each routes will be added.
io.swagger.v3.oas.models.OpenAPI getOpenApi()
String getOpenApiAsJson()
String getOpenApiAsJson(boolean prettyFormatted)
String getOpenApiAsYaml()
String getOpenApiAsYaml(boolean prettyFormatted)
void ignoreRoutesByIds(String... ids)
void ignoreRouteUsingHttpMethodAndPath(HttpMethod method, String path)
method - If null, all
HTTP methods will be used.void clearCache()
void resetAll()
Copyright © 2019. All rights reserved.