78 lines
1.9 KiB
Markdown
78 lines
1.9 KiB
Markdown
# \SearchApi
|
|
|
|
All URIs are relative to *http://localhost*
|
|
|
|
Method | HTTP request | Description
|
|
------------- | ------------- | -------------
|
|
[**AnswerApiV1SearchGet**](SearchApi.md#AnswerApiV1SearchGet) | **Get** /answer/api/v1/search | search object
|
|
|
|
|
|
|
|
## AnswerApiV1SearchGet
|
|
|
|
> AnswerApiV1SearchGet200Response AnswerApiV1SearchGet(ctx).Q(q).Order(order).Execute()
|
|
|
|
search object
|
|
|
|
|
|
|
|
### Example
|
|
|
|
```go
|
|
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**](AnswerApiV1SearchGet200Response.md)
|
|
|
|
### Authorization
|
|
|
|
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
|
|
### HTTP request headers
|
|
|
|
- **Content-Type**: Not defined
|
|
- **Accept**: application/json
|
|
|
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
|
|
[[Back to Model list]](../README.md#documentation-for-models)
|
|
[[Back to README]](../README.md)
|
|
|