All URIs are relative to https://yasm.prodyna.com:443/api/graph/v1
Method | HTTP request | Description |
---|---|---|
Search | Post /search | Fulltext search on all kinds of objects |
SearchResult Search(ctx).Search(search).Execute()
Fulltext search on all kinds of objects
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/prodyna-yasm/yasm-api-go"
)
func main() {
search := *openapiclient.NewSearch(int32(123), int32(123)) // Search |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SearchAPI.Search(context.Background()).Search(search).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SearchAPI.Search``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `Search`: SearchResult
fmt.Fprintf(os.Stdout, "Response from `SearchAPI.Search`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiSearchRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
search | Search |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]