Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateHelloRequest ¶
CreateHelloRequest is the request object for POST /hello
func (*CreateHelloRequest) Valid ¶
func (r *CreateHelloRequest) Valid() error
Valid satisfies the Validator interface which allows incoming requests to be be made to parse a basic validation check
type GetAreaTypesRequest ¶
type GetAreaTypesRequest struct { PaginationParams Dataset string `schema:"dataset"` }
GetAreaTypesRequest defines the schema for the GET /area-types query parameter
func (*GetAreaTypesRequest) Valid ¶
func (r *GetAreaTypesRequest) Valid() error
Valid validates the values given in the request
type GetAreaTypesResponse ¶
type GetAreaTypesResponse struct { PaginationResponse AreaTypes []model.AreaType `json:"area-types"` }
GetAreaTypesResponse is the response object for GET /area-types
type GetAreasRequest ¶
type GetAreasRequest struct { Dataset string `schema:"dataset"` AreaType string `schema:"area-type"` Text string `schema:"text"` }
GetAreasRequest defines the schema for the GET /areas query parameter
type GetAreasResponse ¶
GetAreasResponse is the response object for GET /areas
type GetHelloResponse ¶
type GetHelloResponse struct {
Message string `json:"message"`
}
GetHelloResponse is the response object for GET /hello
type PaginationParams ¶
type PaginationResponse ¶
type PaginationResponse struct { PaginationParams Count int `json:"count"` TotalCount int `json:"total_count"` }
Click to show internal directories.
Click to hide internal directories.