All URIs are relative to http://localhost
Method | HTTP request | Description |
---|---|---|
RenderApiV2TemplatesRenderPost | Post /api/v2/templates/render | Render |
SearchApiV2TemplatesSearchPost | Post /api/v2/templates/search | Search |
interface{} RenderApiV2TemplatesRenderPost(ctx).RenderTemplateRequest(renderTemplateRequest).Execute()
Render
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/yeti-platform/goyeti"
)
func main() {
renderTemplateRequest := *openapiclient.NewRenderTemplateRequest("TemplateName_example") // RenderTemplateRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.TemplatesAPI.RenderApiV2TemplatesRenderPost(context.Background()).RenderTemplateRequest(renderTemplateRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `TemplatesAPI.RenderApiV2TemplatesRenderPost``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `RenderApiV2TemplatesRenderPost`: interface{}
fmt.Fprintf(os.Stdout, "Response from `TemplatesAPI.RenderApiV2TemplatesRenderPost`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiRenderApiV2TemplatesRenderPostRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
renderTemplateRequest | RenderTemplateRequest |
interface{}
OAuth2PasswordBearer, APIKeyCookie
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
TemplateSearchResponse SearchApiV2TemplatesSearchPost(ctx).TemplateSearchRequest(templateSearchRequest).Execute()
Search
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/yeti-platform/goyeti"
)
func main() {
templateSearchRequest := *openapiclient.NewTemplateSearchRequest() // TemplateSearchRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.TemplatesAPI.SearchApiV2TemplatesSearchPost(context.Background()).TemplateSearchRequest(templateSearchRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `TemplatesAPI.SearchApiV2TemplatesSearchPost``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SearchApiV2TemplatesSearchPost`: TemplateSearchResponse
fmt.Fprintf(os.Stdout, "Response from `TemplatesAPI.SearchApiV2TemplatesSearchPost`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiSearchApiV2TemplatesSearchPostRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
templateSearchRequest | TemplateSearchRequest |
OAuth2PasswordBearer, APIKeyCookie
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]