1.9 KiB
1.9 KiB
\SearchApi
All URIs are relative to http://127.0.0.1:80
| Method | HTTP request | Description |
|---|---|---|
| AnswerApiV1SearchGet | Get /answer/api/v1/search | search object |
AnswerApiV1SearchGet
AnswerApiV1SearchGet200Response AnswerApiV1SearchGet(ctx).Q(q).Order(order).Execute()
search object
Example
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
q := "q_example" // string | query string
order := "order_example" // string | order
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SearchApi.AnswerApiV1SearchGet(context.Background()).Q(q).Order(order).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SearchApi.AnswerApiV1SearchGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `AnswerApiV1SearchGet`: AnswerApiV1SearchGet200Response
fmt.Fprintf(os.Stdout, "Response from `SearchApi.AnswerApiV1SearchGet`: %v\n", resp)
}
Path Parameters
Other Parameters
Other parameters are passed through a pointer to a apiAnswerApiV1SearchGetRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| q | string | query string | |
| order | string | order |
Return type
AnswerApiV1SearchGet200Response
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]