Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Request ¶
type Request struct {
// Query is the search query string.
//
// Required: true
Query string `json:"query" binding:"required,min=1"`
}
Request represents a search request.
type Response ¶
type Response struct {
// Results is a list of categories matching the search query.
//
// Required: true
Results []category.Category `json:"results"`
// Query is the search query that was executed.
//
// Required: true
Query string `json:"query"`
// Count is the number of results returned.
//
// Required: true
Count int `json:"count"`
}
Response represents the results of a search.
Click to show internal directories.
Click to hide internal directories.