openapi_base library

Functions

operationFromString(String operation) Operation

Typedefs

ApiEndpointCallback<ENDPOINT extends ApiEndpoint, RET> = Future<RET> Function(ENDPOINT impl)
ClientCreator = Client Function()
Allows to customize how a Client is created. For example acn be used to use UserAgentClient to add user agent header.
ResponseMap<T, R> = R Function(T response)
ResponseParser<T extends OpenApiResponse> = Future<T> Function(OpenApiClientResponse response)
RouteHandler = Future<OpenApiResponse> Function(OpenApiRequest request)

Exceptions / Errors

ConflictException
MissingParameterException
NotFoundException
OpenApiResponseException
Base class for exceptions which can be thrown by endpoint implementations with special handling in the server implementations (e.g. OpenApiShelfServer).
UnauthorizedException
Server exception which can be thrown by implementations of the server endpoint to indicate a 401 response status.
UnexpectedResponseException