Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterRoutes ¶
RegisterRoutes mounts static routes for OpenAPI discovery (same package).
Types ¶
type CreateUserRequest ¶
type CreateUserRequest struct {
Name string
Email string
OrgID string `path:"org_id"`
Token string `header:"Authorization"`
}
CreateUserRequest exercises default input, path, and header for OpenAPI mapping.
type CreateUserResponse ¶
type CreateUserResponse struct {
ID string `json:"id"`
Name string `json:"name"`
Email string `json:"email"`
}
CreateUserResponse is the success body for create user.
type SearchRequest ¶
type SearchRequest struct {
Keyword string `query:"keyword"`
Page int `query:"page"`
Filter string `payload:"filter"`
}
SearchRequest uses restricted query/payload sources.
type SearchResponse ¶
type SearchResponse struct {
Keyword string `json:"keyword"`
Page int `json:"page"`
Filter string `json:"filter"`
}
SearchResponse is returned from search.
Click to show internal directories.
Click to hide internal directories.