All URIs are relative to http://localhost:5516
Method | HTTP request | Description |
---|---|---|
ExportTemplateToXFile | Get /api/v1/dsl/export/{templateId} | |
PreviewExportTemplateToXFile | Get /api/v1/dsl/preview/{templateId} |
ExportTemplateToXFile(ctx, templateId).ExportTemplate(exportTemplate).Execute()
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
templateId := "templateId_example" // string |
exportTemplate := true // bool | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
r, err := apiClient.DslApi.ExportTemplateToXFile(context.Background(), templateId).ExportTemplate(exportTemplate).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DslApi.ExportTemplateToXFile``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
templateId | string |
Other parameters are passed through a pointer to a apiExportTemplateToXFileRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
exportTemplate | bool | |
(empty response body)
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
PreviewExportTemplateToXFile(ctx, templateId).ExportTemplate(exportTemplate).Execute()
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
templateId := "templateId_example" // string |
exportTemplate := true // bool | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
r, err := apiClient.DslApi.PreviewExportTemplateToXFile(context.Background(), templateId).ExportTemplate(exportTemplate).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DslApi.PreviewExportTemplateToXFile``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
templateId | string |
Other parameters are passed through a pointer to a apiPreviewExportTemplateToXFileRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
exportTemplate | bool | |
(empty response body)
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]