package
1.11.1-bazel-1.2
Repository: https://github.com/sgnl-ai/oapi-codegen.git
Documentation: pkg.go.dev
# Functions
GetSwagger returns the Swagger specification corresponding to the generated code in this file.
Creates a new Client, with reasonable defaults.
NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling.
NewGetPetRequest generates requests for GetPet.
NewValidatePetsRequest calls the generic ValidatePets builder with application/json body.
NewValidatePetsRequestWithBody generates requests for ValidatePets with any type of body.
ParseGetPetResponse parses an HTTP response from a GetPetWithResponse call.
ParseValidatePetsResponse parses an HTTP response from a ValidatePetsWithResponse call.
Constructs a synthetic filesystem for resolving external references when loading openapi specifications.
RegisterHandlers adds each server route to the EchoRouter.
Registers handlers, and prepends BaseURL to the paths, so that the paths can be served under a prefix.
WithBaseURL overrides the baseURL.
WithHTTPClient allows overriding the default Doer, which is automatically created using http.Client.
WithRequestEditorFn allows setting up a callback function, which will be called right before sending the request.
# Structs
Client which conforms to the OpenAPI3 specification for this service.
ClientWithResponses builds on ClientInterface to offer response payloads.
Error defines model for Error.
No description provided by the author
Pet defines model for Pet.
PetNames defines model for PetNames.
ServerInterfaceWrapper converts echo contexts to parameters.
No description provided by the author
# Interfaces
The interface specification for the client above.
ClientWithResponsesInterface is the interface specification for the client with responses above.
This is a simple interface which specifies echo.Route addition functions which are present on both echo.Echo and echo.Group, since we want to allow using either of them for path registration.
Doer performs HTTP requests.
ServerInterface represents all server handlers.
# Type aliases
ClientOption allows setting custom parameters during construction.
RequestEditorFn is the function signature for the RequestEditor callback function.
ValidatePetsJSONRequestBody defines body for ValidatePets for application/json ContentType.