{"modulePath":"github.com/grbit/swagger-example","version":"v0.0.0-20260826195332-5db34ffe95c9","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package oapi_client\n\nPackage oapi\\_client provides primitives to interact with the openapi HTTP API.\n\nCode generated by github.com/deepmap/oapi-codegen version v1.12.4 DO NOT EDIT.\n\n## Functions\n\n```go\nfunc NewCreateUpdatePropertyInfoByIdRequest(server string, propertyId string, body CreateUpdatePropertyInfoByIdJSONRequestBody) (*http.Request, error)\n```\nNewCreateUpdatePropertyInfoByIdRequest calls the generic CreateUpdatePropertyInfoById builder with application/json body\n\n```go\nfunc NewCreateUpdatePropertyInfoByIdRequestWithBody(server string, propertyId string, contentType string, body io.Reader) (*http.Request, error)\n```\nNewCreateUpdatePropertyInfoByIdRequestWithBody generates requests for CreateUpdatePropertyInfoById with any type of body\n\n```go\nfunc NewGetPropertiesInfoRequest(server string) (*http.Request, error)\n```\nNewGetPropertiesInfoRequest generates requests for GetPropertiesInfo\n\n```go\nfunc NewGetPropertyInfoByIdRequest(server string, propertyId string) (*http.Request, error)\n```\nNewGetPropertyInfoByIdRequest generates requests for GetPropertyInfoById\n\n## Types\n\n```go\ntype Client struct {\n\t// The endpoint of the server conforming to this interface, with scheme,\n\t// https://api.deepmap.com for example. This can contain a path relative\n\t// to the server, such as https://api.deepmap.com/dev-test, and all the\n\t// paths in the swagger spec will be appended to the server.\n\tServer string\n\n\t// Doer for performing requests, typically a *http.Client with any\n\t// customized settings, such as certificate chains.\n\tClient HttpRequestDoer\n\n\t// A list of callbacks for modifying requests which are generated before sending over\n\t// the network.\n\tRequestEditors []RequestEditorFn\n}\n```\nClient which conforms to the OpenAPI3 specification for this service.\n\n```go\nfunc NewClient(server string, opts ...ClientOption) (*Client, error)\n```\nCreates a new Client, with reasonable defaults\n\n```go\nfunc (c *Client) CreateUpdatePropertyInfoById(ctx context.Context, propertyId string, body CreateUpdatePropertyInfoByIdJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)\n```\n\n```go\nfunc (c *Client) CreateUpdatePropertyInfoByIdWithBody(ctx context.Context, propertyId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)\n```\n\n```go\nfunc (c *Client) GetPropertiesInfo(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)\n```\n\n```go\nfunc (c *Client) GetPropertyInfoById(ctx context.Context, propertyId string, reqEditors ...RequestEditorFn) (*http.Response, error)\n```\n\n```go\ntype ClientInterface interface {\n\t// GetPropertiesInfo request\n\tGetPropertiesInfo(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)\n\n\t// GetPropertyInfoById request\n\tGetPropertyInfoById(ctx context.Context, propertyId string, reqEditors ...RequestEditorFn) (*http.Response, error)\n\n\t// CreateUpdatePropertyInfoById request with any body\n\tCreateUpdatePropertyInfoByIdWithBody(ctx context.Context, propertyId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)\n\n\tCreateUpdatePropertyInfoById(ctx context.Context, propertyId string, body CreateUpdatePropertyInfoByIdJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)\n}\n```\nThe interface specification for the client above.\n\n```go\ntype ClientOption func(*Client) error\n```\nClientOption allows setting custom parameters during construction\n\n```go\nfunc WithBaseURL(baseURL string) ClientOption\n```\nWithBaseURL overrides the baseURL.\n\n```go\nfunc WithHTTPClient(doer HttpRequestDoer) ClientOption\n```\nWithHTTPClient allows overriding the default Doer, which is automatically created using http.Client. This is useful for tests.\n\n```go\nfunc WithRequestEditorFn(fn RequestEditorFn) ClientOption\n```\nWithRequestEditorFn allows setting up a callback function, which will be called right before sending the request. This can be used to mutate the request.\n\n```go\ntype ClientWithResponses struct {\n\tClientInterface\n}\n```\nClientWithResponses builds on ClientInterface to offer response payloads\n\n```go\nfunc NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error)\n```\nNewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling\n\n```go\nfunc (c *ClientWithResponses) CreateUpdatePropertyInfoByIdWithBodyWithResponse(ctx context.Context, propertyId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateUpdatePropertyInfoByIdResponse, error)\n```\nCreateUpdatePropertyInfoByIdWithBodyWithResponse request with arbitrary body returning \\*CreateUpdatePropertyInfoByIdResponse\n\n```go\nfunc (c *ClientWithResponses) CreateUpdatePropertyInfoByIdWithResponse(ctx context.Context, propertyId string, body CreateUpdatePropertyInfoByIdJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateUpdatePropertyInfoByIdResponse, error)\n```\n\n```go\nfunc (c *ClientWithResponses) GetPropertiesInfoWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetPropertiesInfoResponse, error)\n```\nGetPropertiesInfoWithResponse request returning \\*GetPropertiesInfoResponse\n\n```go\nfunc (c *ClientWithResponses) GetPropertyInfoByIdWithResponse(ctx context.Context, propertyId string, reqEditors ...RequestEditorFn) (*GetPropertyInfoByIdResponse, error)\n```\nGetPropertyInfoByIdWithResponse request returning \\*GetPropertyInfoByIdResponse\n\n```go\ntype ClientWithResponsesInterface interface {\n\t// GetPropertiesInfo request\n\tGetPropertiesInfoWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetPropertiesInfoResponse, error)\n\n\t// GetPropertyInfoById request\n\tGetPropertyInfoByIdWithResponse(ctx context.Context, propertyId string, reqEditors ...RequestEditorFn) (*GetPropertyInfoByIdResponse, error)\n\n\t// CreateUpdatePropertyInfoById request with any body\n\tCreateUpdatePropertyInfoByIdWithBodyWithResponse(ctx context.Context, propertyId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateUpdatePropertyInfoByIdResponse, error)\n\n\tCreateUpdatePropertyInfoByIdWithResponse(ctx context.Context, propertyId string, body CreateUpdatePropertyInfoByIdJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateUpdatePropertyInfoByIdResponse, error)\n}\n```\nClientWithResponsesInterface is the interface specification for the client with responses above.\n\n```go\ntype CreateUpdatePropertyInfoByIdResponse struct {\n\tBody         []byte\n\tHTTPResponse *http.Response\n\tJSON200      *PropertyInfoResponse\n\tJSON400      *GenericErrorResponse\n\tJSON500      *GenericErrorResponse\n\tJSON501      *GenericErrorResponse\n}\n```\n\n```go\nfunc ParseCreateUpdatePropertyInfoByIdResponse(rsp *http.Response) (*CreateUpdatePropertyInfoByIdResponse, error)\n```\nParseCreateUpdatePropertyInfoByIdResponse parses an HTTP response from a CreateUpdatePropertyInfoByIdWithResponse call\n\n```go\nfunc (r CreateUpdatePropertyInfoByIdResponse) Status() string\n```\nStatus returns HTTPResponse.Status\n\n```go\nfunc (r CreateUpdatePropertyInfoByIdResponse) StatusCode() int\n```\nStatusCode returns HTTPResponse.StatusCode\n\n```go\ntype GetPropertiesInfoResponse struct {\n\tBody         []byte\n\tHTTPResponse *http.Response\n\tJSON200      *PropertiesInfoResponse\n\tJSON400      *GenericErrorResponse\n\tJSON500      *GenericErrorResponse\n\tJSON501      *GenericErrorResponse\n}\n```\n\n```go\nfunc ParseGetPropertiesInfoResponse(rsp *http.Response) (*GetPropertiesInfoResponse, error)\n```\nParseGetPropertiesInfoResponse parses an HTTP response from a GetPropertiesInfoWithResponse call\n\n```go\nfunc (r GetPropertiesInfoResponse) Status() string\n```\nStatus returns HTTPResponse.Status\n\n```go\nfunc (r GetPropertiesInfoResponse) StatusCode() int\n```\nStatusCode returns HTTPResponse.StatusCode\n\n```go\ntype GetPropertyInfoByIdResponse struct {\n\tBody         []byte\n\tHTTPResponse *http.Response\n\tJSON200      *PropertyInfoResponse\n\tJSON400      *GenericErrorResponse\n\tJSON500      *GenericErrorResponse\n\tJSON501      *GenericErrorResponse\n}\n```\n\n```go\nfunc ParseGetPropertyInfoByIdResponse(rsp *http.Response) (*GetPropertyInfoByIdResponse, error)\n```\nParseGetPropertyInfoByIdResponse parses an HTTP response from a GetPropertyInfoByIdWithResponse call\n\n```go\nfunc (r GetPropertyInfoByIdResponse) Status() string\n```\nStatus returns HTTPResponse.Status\n\n```go\nfunc (r GetPropertyInfoByIdResponse) StatusCode() int\n```\nStatusCode returns HTTPResponse.StatusCode\n\n```go\ntype HttpRequestDoer interface {\n\tDo(req *http.Request) (*http.Response, error)\n}\n```\nDoer performs HTTP requests.\n\nThe standard http.Client implements this interface.\n\n```go\ntype RequestEditorFn func(ctx context.Context, req *http.Request) error\n```\nRequestEditorFn  is the function signature for the RequestEditor callback function\n\n","path":"github.com/grbit/swagger-example/pkg/codegen/client","name":"oapi_client","synopsis":"Package oapi_client provides primitives to interact with the openapi HTTP API.","isRedistributable":true}
