Skip to content

Latest commit

 

History

History
146 lines (92 loc) · 3.77 KB

File metadata and controls

146 lines (92 loc) · 3.77 KB

\DslApi

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

ExportTemplateToXFile(ctx, templateId).ExportTemplate(exportTemplate).Execute()

Example

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

Path Parameters

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

Other Parameters

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

Name Type Description Notes

exportTemplate | bool | |

Return type

(empty response body)

Authorization

basicAuth, patAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

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

PreviewExportTemplateToXFile

PreviewExportTemplateToXFile(ctx, templateId).ExportTemplate(exportTemplate).Execute()

Example

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

Path Parameters

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

Other Parameters

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

Name Type Description Notes

exportTemplate | bool | |

Return type

(empty response body)

Authorization

basicAuth, patAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

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