Package org.apache.camel.openapi
Interface RestApiResponseAdapter
- All Known Implementing Classes:
DefaultRestApiResponseAdapter
public interface RestApiResponseAdapter
Adapter for rendering API response
-
Method Summary
Modifier and TypeMethodDescriptionvoid
copyResult
(org.apache.camel.Exchange exchange) Copy content from this adapter into the givenExchange
.io.swagger.v3.oas.models.OpenAPI
Gets the generated OpenAPI modelvoid
There is no Rest DSL and therefore no OpenAPI specvoid
Adds a headervoid
setOpenApi
(io.swagger.v3.oas.models.OpenAPI openApi) Sets the generated OpenAPI modelvoid
writeBytes
(byte[] bytes) The content of the OpenAPI spec as byte array
-
Method Details
-
setOpenApi
void setOpenApi(io.swagger.v3.oas.models.OpenAPI openApi) Sets the generated OpenAPI model -
getOpenApi
io.swagger.v3.oas.models.OpenAPI getOpenApi()Gets the generated OpenAPI model -
setHeader
Adds a header -
writeBytes
The content of the OpenAPI spec as byte array- Throws:
IOException
-
noContent
void noContent()There is no Rest DSL and therefore no OpenAPI spec -
copyResult
void copyResult(org.apache.camel.Exchange exchange) Copy content from this adapter into the givenExchange
.
-