{"modulePath":"github.com/grbit/swagger-example","version":"v0.0.0-20260826195332-5db34ffe95c9","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package oapi_echo_server\n\nPackage oapi\\_echo\\_server 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 GetSwagger() (swagger *openapi3.T, err error)\n```\nGetSwagger returns the Swagger specification corresponding to the generated code in this file. The external references of Swagger specification are resolved. The logic of resolving external references is tightly connected to \"import-mapping\" feature. Externally referenced files must be embedded in the corresponding golang packages. Urls can be supported but this task was out of the scope.\n\n```go\nfunc PathToRawSpec(pathToFile string) map[string]func() ([]byte, error)\n```\nConstructs a synthetic filesystem for resolving external references when loading openapi specifications.\n\n```go\nfunc RegisterHandlers(router EchoRouter, si ServerInterface)\n```\nRegisterHandlers adds each server route to the EchoRouter.\n\n```go\nfunc RegisterHandlersWithBaseURL(router EchoRouter, si ServerInterface, baseURL string)\n```\nRegisters handlers, and prepends BaseURL to the paths, so that the paths can be served under a prefix.\n\n## Types\n\n```go\ntype CreateUpdatePropertyInfoById200JSONResponse PropertyInfoResponse\n```\n\n```go\nfunc (response CreateUpdatePropertyInfoById200JSONResponse) VisitCreateUpdatePropertyInfoByIdResponse(w http.ResponseWriter) error\n```\n\n```go\ntype CreateUpdatePropertyInfoById400JSONResponse GenericErrorResponse\n```\n\n```go\nfunc (response CreateUpdatePropertyInfoById400JSONResponse) VisitCreateUpdatePropertyInfoByIdResponse(w http.ResponseWriter) error\n```\n\n```go\ntype CreateUpdatePropertyInfoById404Response struct {\n}\n```\n\n```go\nfunc (response CreateUpdatePropertyInfoById404Response) VisitCreateUpdatePropertyInfoByIdResponse(w http.ResponseWriter) error\n```\n\n```go\ntype CreateUpdatePropertyInfoById500JSONResponse GenericErrorResponse\n```\n\n```go\nfunc (response CreateUpdatePropertyInfoById500JSONResponse) VisitCreateUpdatePropertyInfoByIdResponse(w http.ResponseWriter) error\n```\n\n```go\ntype CreateUpdatePropertyInfoById501JSONResponse GenericErrorResponse\n```\n\n```go\nfunc (response CreateUpdatePropertyInfoById501JSONResponse) VisitCreateUpdatePropertyInfoByIdResponse(w http.ResponseWriter) error\n```\n\n```go\ntype CreateUpdatePropertyInfoByIdRequestObject struct {\n\tPropertyId string `json:\"propertyId\"`\n\tBody       *CreateUpdatePropertyInfoByIdJSONRequestBody\n}\n```\n\n```go\ntype CreateUpdatePropertyInfoByIdResponseObject interface {\n\tVisitCreateUpdatePropertyInfoByIdResponse(w http.ResponseWriter) error\n}\n```\n\n```go\ntype CreateUpdatePropertyInfoByIddefaultResponse struct {\n\tStatusCode int\n}\n```\n\n```go\nfunc (response CreateUpdatePropertyInfoByIddefaultResponse) VisitCreateUpdatePropertyInfoByIdResponse(w http.ResponseWriter) error\n```\n\n```go\ntype EchoRouter interface {\n\tCONNECT(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route\n\tDELETE(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route\n\tGET(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route\n\tHEAD(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route\n\tOPTIONS(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route\n\tPATCH(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route\n\tPOST(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route\n\tPUT(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route\n\tTRACE(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route\n}\n```\nThis 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\n\n```go\ntype GetPropertiesInfo200JSONResponse PropertiesInfoResponse\n```\n\n```go\nfunc (response GetPropertiesInfo200JSONResponse) VisitGetPropertiesInfoResponse(w http.ResponseWriter) error\n```\n\n```go\ntype GetPropertiesInfo400JSONResponse GenericErrorResponse\n```\n\n```go\nfunc (response GetPropertiesInfo400JSONResponse) VisitGetPropertiesInfoResponse(w http.ResponseWriter) error\n```\n\n```go\ntype GetPropertiesInfo404Response struct {\n}\n```\n\n```go\nfunc (response GetPropertiesInfo404Response) VisitGetPropertiesInfoResponse(w http.ResponseWriter) error\n```\n\n```go\ntype GetPropertiesInfo500JSONResponse GenericErrorResponse\n```\n\n```go\nfunc (response GetPropertiesInfo500JSONResponse) VisitGetPropertiesInfoResponse(w http.ResponseWriter) error\n```\n\n```go\ntype GetPropertiesInfo501JSONResponse GenericErrorResponse\n```\n\n```go\nfunc (response GetPropertiesInfo501JSONResponse) VisitGetPropertiesInfoResponse(w http.ResponseWriter) error\n```\n\n```go\ntype GetPropertiesInfoRequestObject struct {\n}\n```\n\n```go\ntype GetPropertiesInfoResponseObject interface {\n\tVisitGetPropertiesInfoResponse(w http.ResponseWriter) error\n}\n```\n\n```go\ntype GetPropertiesInfodefaultResponse struct {\n\tStatusCode int\n}\n```\n\n```go\nfunc (response GetPropertiesInfodefaultResponse) VisitGetPropertiesInfoResponse(w http.ResponseWriter) error\n```\n\n```go\ntype GetPropertyInfoById200JSONResponse PropertyInfoResponse\n```\n\n```go\nfunc (response GetPropertyInfoById200JSONResponse) VisitGetPropertyInfoByIdResponse(w http.ResponseWriter) error\n```\n\n```go\ntype GetPropertyInfoById400JSONResponse GenericErrorResponse\n```\n\n```go\nfunc (response GetPropertyInfoById400JSONResponse) VisitGetPropertyInfoByIdResponse(w http.ResponseWriter) error\n```\n\n```go\ntype GetPropertyInfoById404Response struct {\n}\n```\n\n```go\nfunc (response GetPropertyInfoById404Response) VisitGetPropertyInfoByIdResponse(w http.ResponseWriter) error\n```\n\n```go\ntype GetPropertyInfoById500JSONResponse GenericErrorResponse\n```\n\n```go\nfunc (response GetPropertyInfoById500JSONResponse) VisitGetPropertyInfoByIdResponse(w http.ResponseWriter) error\n```\n\n```go\ntype GetPropertyInfoById501JSONResponse GenericErrorResponse\n```\n\n```go\nfunc (response GetPropertyInfoById501JSONResponse) VisitGetPropertyInfoByIdResponse(w http.ResponseWriter) error\n```\n\n```go\ntype GetPropertyInfoByIdRequestObject struct {\n\tPropertyId string `json:\"propertyId\"`\n}\n```\n\n```go\ntype GetPropertyInfoByIdResponseObject interface {\n\tVisitGetPropertyInfoByIdResponse(w http.ResponseWriter) error\n}\n```\n\n```go\ntype GetPropertyInfoByIddefaultResponse struct {\n\tStatusCode int\n}\n```\n\n```go\nfunc (response GetPropertyInfoByIddefaultResponse) VisitGetPropertyInfoByIdResponse(w http.ResponseWriter) error\n```\n\n```go\ntype ServerInterface interface {\n\t// Retrieves properties information\n\t// (GET /property)\n\tGetPropertiesInfo(ctx echo.Context) error\n\t// Retrieves property information by ID\n\t// (GET /property/{propertyId})\n\tGetPropertyInfoById(ctx echo.Context, propertyId string) error\n\t// Set/Update property information by ID\n\t// (POST /property/{propertyId})\n\tCreateUpdatePropertyInfoById(ctx echo.Context, propertyId string) error\n}\n```\nServerInterface represents all server handlers.\n\n```go\nfunc NewStrictHandler(ssi StrictServerInterface, middlewares []StrictMiddlewareFunc) ServerInterface\n```\n\n```go\ntype ServerInterfaceWrapper struct {\n\tHandler ServerInterface\n}\n```\nServerInterfaceWrapper converts echo contexts to parameters.\n\n```go\nfunc (w *ServerInterfaceWrapper) CreateUpdatePropertyInfoById(ctx echo.Context) error\n```\nCreateUpdatePropertyInfoById converts echo context to params.\n\n```go\nfunc (w *ServerInterfaceWrapper) GetPropertiesInfo(ctx echo.Context) error\n```\nGetPropertiesInfo converts echo context to params.\n\n```go\nfunc (w *ServerInterfaceWrapper) GetPropertyInfoById(ctx echo.Context) error\n```\nGetPropertyInfoById converts echo context to params.\n\n```go\ntype StrictHandlerFunc func(ctx echo.Context, args interface{}) (interface{}, error)\n```\n\n```go\ntype StrictMiddlewareFunc func(f StrictHandlerFunc, operationID string) StrictHandlerFunc\n```\n\n```go\ntype StrictServerInterface interface {\n\t// Retrieves properties information\n\t// (GET /property)\n\tGetPropertiesInfo(ctx context.Context, request GetPropertiesInfoRequestObject) (GetPropertiesInfoResponseObject, error)\n\t// Retrieves property information by ID\n\t// (GET /property/{propertyId})\n\tGetPropertyInfoById(ctx context.Context, request GetPropertyInfoByIdRequestObject) (GetPropertyInfoByIdResponseObject, error)\n\t// Set/Update property information by ID\n\t// (POST /property/{propertyId})\n\tCreateUpdatePropertyInfoById(ctx context.Context, request CreateUpdatePropertyInfoByIdRequestObject) (CreateUpdatePropertyInfoByIdResponseObject, error)\n}\n```\nStrictServerInterface represents all server handlers.\n\n","path":"github.com/grbit/swagger-example/internal/codegen/server/echo","name":"oapi_echo_server","synopsis":"Package oapi_echo_server provides primitives to interact with the openapi HTTP API.","isRedistributable":true}
