All URIs are relative to http://localhost:8080/api/v1
Method | HTTP request | Description |
---|---|---|
SearchAll | Get /search/all/{text} | Fulltext search on all kinds of objects |
SearchResult SearchAll(ctx, text).Skip(skip).Limit(limit).Execute()
Fulltext search on all kinds of objects
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/prodyna-yasm/yasm-api-go"
)
func main() {
text := "text_example" // string |
skip := int32(0) // int32 | (optional) (default to 0)
limit := int32(20) // int32 | (optional) (default to 20)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SearchAPI.SearchAll(context.Background(), text).Skip(skip).Limit(limit).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SearchAPI.SearchAll``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SearchAll`: SearchResult
fmt.Fprintf(os.Stdout, "Response from `SearchAPI.SearchAll`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
text | string |
Other parameters are passed through a pointer to a apiSearchAllRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
skip | int32 | | [default to 0] limit | int32 | | [default to 20]
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]