All URIs are relative to https://yasm.prodyna.com:443/api/v1
Method | HTTP request | Description |
---|---|---|
GetTemplates | Get /templates | list of existing templates |
[]string GetTemplates(ctx, text).Execute()
list of existing templates
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/prodyna-yasm/yasm-api-go"
)
func main() {
text := "text_example" // string |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.TemplatesAPI.GetTemplates(context.Background(), text).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `TemplatesAPI.GetTemplates``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetTemplates`: []string
fmt.Fprintf(os.Stdout, "Response from `TemplatesAPI.GetTemplates`: %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 apiGetTemplatesRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
[]string
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]