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 |
TemplateDTO exportTemplate(id)
Exports a template
// 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();
}
Name | Type | Description | Notes |
---|---|---|---|
id | String | The template id. |
No authorization required
- Content-Type: /
- Accept: application/xml
TemplateEntity removeTemplate(id)
Deletes a template
// 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();
}
Name | Type | Description | Notes |
---|---|---|---|
id | String | The template id. |
No authorization required
- Content-Type: /
- Accept: application/json