Skip to content

Latest commit

 

History

History
77 lines (49 loc) · 1.91 KB

TemplatesAPI.md

File metadata and controls

77 lines (49 loc) · 1.91 KB

\TemplatesAPI

All URIs are relative to https://yasm.prodyna.com:443/api/v1

Method HTTP request Description
GetTemplates Get /templates list of existing templates

GetTemplates

[]string GetTemplates(ctx, text).Execute()

list of existing templates

Example

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)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
text string

Other Parameters

Other parameters are passed through a pointer to a apiGetTemplatesRequest struct via the builder pattern

Name Type Description Notes

Return type

[]string

Authorization

oidcScheme, bearerScheme

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]