Skip to content

Latest commit

 

History

History
100 lines (66 loc) · 2.14 KB

TemplatesApi.md

File metadata and controls

100 lines (66 loc) · 2.14 KB

TemplatesApi

All URIs are relative to http://localhost/nifi-api

Method HTTP request Description
exportTemplate GET /templates/{id}/download Exports a template
removeTemplate DELETE /templates/{id} Deletes a template

exportTemplate

TemplateDTO exportTemplate(id)

Exports a template

Example

// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.TemplatesApi;


TemplatesApi apiInstance = new TemplatesApi();
String id = "id_example"; // String | The template id.
try {
    TemplateDTO result = apiInstance.exportTemplate(id);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling TemplatesApi#exportTemplate");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
id String The template id.

Return type

TemplateDTO

Authorization

No authorization required

HTTP request headers

  • Content-Type: /
  • Accept: application/xml

removeTemplate

TemplateEntity removeTemplate(id)

Deletes a template

Example

// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.TemplatesApi;


TemplatesApi apiInstance = new TemplatesApi();
String id = "id_example"; // String | The template id.
try {
    TemplateEntity result = apiInstance.removeTemplate(id);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling TemplatesApi#removeTemplate");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
id String The template id.

Return type

TemplateEntity

Authorization

No authorization required

HTTP request headers

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