Documentation ¶
Index ¶
- Variables
- func Annotate(t *openapi3.T)
- func Handle_CreateNewUserRequest(c *fiber.Ctx) error
- func Handle_GetUserRequest(c *fiber.Ctx) error
- func Handle_GetUsersRequest(c *fiber.Ctx) error
- func Handle_UpdateUserRequest(c *fiber.Ctx) error
- func Mount(app *fiber.App)
- type CreateNewUserRequest
- type CreateNewUserResponse
- type DetailedURLParameters
- type GetUserResponse
- type GetUsersQueryParameters
- type GetUsersResponse
- type UpdateUserRequest
- type UpdateUserResponse
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // URLParamsRegex is a regular expression to match URL parameters in the openapi spec format (e.g. {id}). // It allows to replace the parameters with the gin-gonic format (e.g. :id). URLParamsRegex = regexp.MustCompile(`\{([a-zA-Z0-9]+)\}`) )
Functions ¶
func Handle_CreateNewUserRequest ¶
func Handle_CreateNewUserRequest(c *fiber.Ctx) error
func Handle_GetUserRequest ¶
func Handle_GetUserRequest(c *fiber.Ctx) error
func Handle_GetUsersRequest ¶
func Handle_GetUsersRequest(c *fiber.Ctx) error
func Handle_UpdateUserRequest ¶
func Handle_UpdateUserRequest(c *fiber.Ctx) error
Types ¶
type CreateNewUserRequest ¶
type CreateNewUserResponse ¶
type DetailedURLParameters ¶
type DetailedURLParameters struct {
UserID string `json:"id" validate:"required"`
}
type GetUserResponse ¶
type GetUsersQueryParameters ¶
type GetUsersResponse ¶
type GetUsersResponse struct { Total int `json:"total"` Docs []GetUserResponse `json:"docs"` }
type UpdateUserRequest ¶
type UpdateUserResponse ¶
Click to show internal directories.
Click to hide internal directories.