kaoto-backend API

CapabilitiesResource

v1CapabilitiesDslSchemaGet

Get validation schema for particular dsl

Returns a validation schema of specified DSL if exists. If not empty string is returned.


/v1/capabilities/{dsl}/schema

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"//v1/capabilities/{dsl}/schema"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.CapabilitiesResourceApi;

import java.io.File;
import java.util.*;

public class CapabilitiesResourceApiExample {

    public static void main(String[] args) {
        
        CapabilitiesResourceApi apiInstance = new CapabilitiesResourceApi();
        String dsl = dsl_example; // String | Target DSL for the validation schema
        try {
            'String' result = apiInstance.v1CapabilitiesDslSchemaGet(dsl);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CapabilitiesResourceApi#v1CapabilitiesDslSchemaGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.CapabilitiesResourceApi;

public class CapabilitiesResourceApiExample {

    public static void main(String[] args) {
        CapabilitiesResourceApi apiInstance = new CapabilitiesResourceApi();
        String dsl = dsl_example; // String | Target DSL for the validation schema
        try {
            'String' result = apiInstance.v1CapabilitiesDslSchemaGet(dsl);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CapabilitiesResourceApi#v1CapabilitiesDslSchemaGet");
            e.printStackTrace();
        }
    }
}
String *dsl = dsl_example; // Target DSL for the validation schema

CapabilitiesResourceApi *apiInstance = [[CapabilitiesResourceApi alloc] init];

// Get validation schema for particular dsl
[apiInstance v1CapabilitiesDslSchemaGetWith:dsl
              completionHandler: ^('String' output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var KaotoBackendApi = require('kaoto_backend_api');

var api = new KaotoBackendApi.CapabilitiesResourceApi()
var dsl = dsl_example; // {{String}} Target DSL for the validation schema

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.v1CapabilitiesDslSchemaGet(dsl, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class v1CapabilitiesDslSchemaGetExample
    {
        public void main()
        {

            var apiInstance = new CapabilitiesResourceApi();
            var dsl = dsl_example;  // String | Target DSL for the validation schema

            try
            {
                // Get validation schema for particular dsl
                'String' result = apiInstance.v1CapabilitiesDslSchemaGet(dsl);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling CapabilitiesResourceApi.v1CapabilitiesDslSchemaGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiCapabilitiesResourceApi();
$dsl = dsl_example; // String | Target DSL for the validation schema

try {
    $result = $api_instance->v1CapabilitiesDslSchemaGet($dsl);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CapabilitiesResourceApi->v1CapabilitiesDslSchemaGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::CapabilitiesResourceApi;

my $api_instance = WWW::SwaggerClient::CapabilitiesResourceApi->new();
my $dsl = dsl_example; # String | Target DSL for the validation schema

eval { 
    my $result = $api_instance->v1CapabilitiesDslSchemaGet(dsl => $dsl);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CapabilitiesResourceApi->v1CapabilitiesDslSchemaGet: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.CapabilitiesResourceApi()
dsl = dsl_example # String | Target DSL for the validation schema

try: 
    # Get validation schema for particular dsl
    api_response = api_instance.v1_capabilities_dsl_schema_get(dsl)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CapabilitiesResourceApi->v1CapabilitiesDslSchemaGet: %s\n" % e)

Parameters

Path parameters
Name Description
dsl*
String
Target DSL for the validation schema
Required

Responses

Status: 200 - OK


v1CapabilitiesGet

Get Languages

Returns a list of all potential supported languages.


/v1/capabilities

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"//v1/capabilities"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.CapabilitiesResourceApi;

import java.io.File;
import java.util.*;

public class CapabilitiesResourceApiExample {

    public static void main(String[] args) {
        
        CapabilitiesResourceApi apiInstance = new CapabilitiesResourceApi();
        try {
            Capabilities result = apiInstance.v1CapabilitiesGet();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CapabilitiesResourceApi#v1CapabilitiesGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.CapabilitiesResourceApi;

public class CapabilitiesResourceApiExample {

    public static void main(String[] args) {
        CapabilitiesResourceApi apiInstance = new CapabilitiesResourceApi();
        try {
            Capabilities result = apiInstance.v1CapabilitiesGet();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CapabilitiesResourceApi#v1CapabilitiesGet");
            e.printStackTrace();
        }
    }
}

CapabilitiesResourceApi *apiInstance = [[CapabilitiesResourceApi alloc] init];

// Get Languages
[apiInstance v1CapabilitiesGetWithCompletionHandler: 
              ^(Capabilities output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var KaotoBackendApi = require('kaoto_backend_api');

var api = new KaotoBackendApi.CapabilitiesResourceApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.v1CapabilitiesGet(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class v1CapabilitiesGetExample
    {
        public void main()
        {

            var apiInstance = new CapabilitiesResourceApi();

            try
            {
                // Get Languages
                Capabilities result = apiInstance.v1CapabilitiesGet();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling CapabilitiesResourceApi.v1CapabilitiesGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiCapabilitiesResourceApi();

try {
    $result = $api_instance->v1CapabilitiesGet();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CapabilitiesResourceApi->v1CapabilitiesGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::CapabilitiesResourceApi;

my $api_instance = WWW::SwaggerClient::CapabilitiesResourceApi->new();

eval { 
    my $result = $api_instance->v1CapabilitiesGet();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CapabilitiesResourceApi->v1CapabilitiesGet: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.CapabilitiesResourceApi()

try: 
    # Get Languages
    api_response = api_instance.v1_capabilities_get()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CapabilitiesResourceApi->v1CapabilitiesGet: %s\n" % e)

Parameters

Responses

Status: 200 - OK


v1CapabilitiesNamespaceGet

Get Namespace

Returns namespace where Kaoto backend is currently running


/v1/capabilities/namespace

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"//v1/capabilities/namespace"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.CapabilitiesResourceApi;

import java.io.File;
import java.util.*;

public class CapabilitiesResourceApiExample {

    public static void main(String[] args) {
        
        CapabilitiesResourceApi apiInstance = new CapabilitiesResourceApi();
        try {
            'String' result = apiInstance.v1CapabilitiesNamespaceGet();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CapabilitiesResourceApi#v1CapabilitiesNamespaceGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.CapabilitiesResourceApi;

public class CapabilitiesResourceApiExample {

    public static void main(String[] args) {
        CapabilitiesResourceApi apiInstance = new CapabilitiesResourceApi();
        try {
            'String' result = apiInstance.v1CapabilitiesNamespaceGet();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CapabilitiesResourceApi#v1CapabilitiesNamespaceGet");
            e.printStackTrace();
        }
    }
}

CapabilitiesResourceApi *apiInstance = [[CapabilitiesResourceApi alloc] init];

// Get Namespace
[apiInstance v1CapabilitiesNamespaceGetWithCompletionHandler: 
              ^('String' output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var KaotoBackendApi = require('kaoto_backend_api');

var api = new KaotoBackendApi.CapabilitiesResourceApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.v1CapabilitiesNamespaceGet(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class v1CapabilitiesNamespaceGetExample
    {
        public void main()
        {

            var apiInstance = new CapabilitiesResourceApi();

            try
            {
                // Get Namespace
                'String' result = apiInstance.v1CapabilitiesNamespaceGet();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling CapabilitiesResourceApi.v1CapabilitiesNamespaceGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiCapabilitiesResourceApi();

try {
    $result = $api_instance->v1CapabilitiesNamespaceGet();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CapabilitiesResourceApi->v1CapabilitiesNamespaceGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::CapabilitiesResourceApi;

my $api_instance = WWW::SwaggerClient::CapabilitiesResourceApi->new();

eval { 
    my $result = $api_instance->v1CapabilitiesNamespaceGet();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CapabilitiesResourceApi->v1CapabilitiesNamespaceGet: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.CapabilitiesResourceApi()

try: 
    # Get Namespace
    api_response = api_instance.v1_capabilities_namespace_get()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CapabilitiesResourceApi->v1CapabilitiesNamespaceGet: %s\n" % e)

Parameters

Responses

Status: 200 - OK


v1CapabilitiesVersionGet

Get Version

Returns the running backend version.


/v1/capabilities/version

Usage and SDK Samples

curl -X GET\
-H "Accept: text/plain"\
"//v1/capabilities/version"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.CapabilitiesResourceApi;

import java.io.File;
import java.util.*;

public class CapabilitiesResourceApiExample {

    public static void main(String[] args) {
        
        CapabilitiesResourceApi apiInstance = new CapabilitiesResourceApi();
        try {
            'String' result = apiInstance.v1CapabilitiesVersionGet();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CapabilitiesResourceApi#v1CapabilitiesVersionGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.CapabilitiesResourceApi;

public class CapabilitiesResourceApiExample {

    public static void main(String[] args) {
        CapabilitiesResourceApi apiInstance = new CapabilitiesResourceApi();
        try {
            'String' result = apiInstance.v1CapabilitiesVersionGet();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CapabilitiesResourceApi#v1CapabilitiesVersionGet");
            e.printStackTrace();
        }
    }
}

CapabilitiesResourceApi *apiInstance = [[CapabilitiesResourceApi alloc] init];

// Get Version
[apiInstance v1CapabilitiesVersionGetWithCompletionHandler: 
              ^('String' output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var KaotoBackendApi = require('kaoto_backend_api');

var api = new KaotoBackendApi.CapabilitiesResourceApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.v1CapabilitiesVersionGet(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class v1CapabilitiesVersionGetExample
    {
        public void main()
        {

            var apiInstance = new CapabilitiesResourceApi();

            try
            {
                // Get Version
                'String' result = apiInstance.v1CapabilitiesVersionGet();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling CapabilitiesResourceApi.v1CapabilitiesVersionGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiCapabilitiesResourceApi();

try {
    $result = $api_instance->v1CapabilitiesVersionGet();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CapabilitiesResourceApi->v1CapabilitiesVersionGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::CapabilitiesResourceApi;

my $api_instance = WWW::SwaggerClient::CapabilitiesResourceApi->new();

eval { 
    my $result = $api_instance->v1CapabilitiesVersionGet();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CapabilitiesResourceApi->v1CapabilitiesVersionGet: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.CapabilitiesResourceApi()

try: 
    # Get Version
    api_response = api_instance.v1_capabilities_version_get()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CapabilitiesResourceApi->v1CapabilitiesVersionGet: %s\n" % e)

Parameters

Responses

Status: 200 - OK


DeploymentsResource

v1DeploymentsGet

Get all Resources

Returns all the resources on the cluster.


/v1/deployments

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"//v1/deployments?namespace="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DeploymentsResourceApi;

import java.io.File;
import java.util.*;

public class DeploymentsResourceApiExample {

    public static void main(String[] args) {
        
        DeploymentsResourceApi apiInstance = new DeploymentsResourceApi();
        String namespace = namespace_example; // String | Namespace of the cluster where the resources are running.
        try {
            array[Deployment] result = apiInstance.v1DeploymentsGet(namespace);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DeploymentsResourceApi#v1DeploymentsGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DeploymentsResourceApi;

public class DeploymentsResourceApiExample {

    public static void main(String[] args) {
        DeploymentsResourceApi apiInstance = new DeploymentsResourceApi();
        String namespace = namespace_example; // String | Namespace of the cluster where the resources are running.
        try {
            array[Deployment] result = apiInstance.v1DeploymentsGet(namespace);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DeploymentsResourceApi#v1DeploymentsGet");
            e.printStackTrace();
        }
    }
}
String *namespace = namespace_example; // Namespace of the cluster where the resources are running. (optional)

DeploymentsResourceApi *apiInstance = [[DeploymentsResourceApi alloc] init];

// Get all Resources
[apiInstance v1DeploymentsGetWith:namespace
              completionHandler: ^(array[Deployment] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var KaotoBackendApi = require('kaoto_backend_api');

var api = new KaotoBackendApi.DeploymentsResourceApi()
var opts = { 
  'namespace': namespace_example // {{String}} Namespace of the cluster where the resources are running.
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.v1DeploymentsGet(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class v1DeploymentsGetExample
    {
        public void main()
        {

            var apiInstance = new DeploymentsResourceApi();
            var namespace = namespace_example;  // String | Namespace of the cluster where the resources are running. (optional) 

            try
            {
                // Get all Resources
                array[Deployment] result = apiInstance.v1DeploymentsGet(namespace);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DeploymentsResourceApi.v1DeploymentsGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiDeploymentsResourceApi();
$namespace = namespace_example; // String | Namespace of the cluster where the resources are running.

try {
    $result = $api_instance->v1DeploymentsGet($namespace);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DeploymentsResourceApi->v1DeploymentsGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DeploymentsResourceApi;

my $api_instance = WWW::SwaggerClient::DeploymentsResourceApi->new();
my $namespace = namespace_example; # String | Namespace of the cluster where the resources are running.

eval { 
    my $result = $api_instance->v1DeploymentsGet(namespace => $namespace);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DeploymentsResourceApi->v1DeploymentsGet: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DeploymentsResourceApi()
namespace = namespace_example # String | Namespace of the cluster where the resources are running. (optional)

try: 
    # Get all Resources
    api_response = api_instance.v1_deployments_get(namespace=namespace)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DeploymentsResourceApi->v1DeploymentsGet: %s\n" % e)

Parameters

Query parameters
Name Description
namespace
String
Namespace of the cluster where the resources are running.

Responses

Status: 200 - OK


v1DeploymentsNameDelete

Stop/Remove

Remove the resource identified by name.


/v1/deployments/{name}

Usage and SDK Samples

curl -X DELETE\
-H "Accept: application/json"\
"//v1/deployments/{name}?namespace=&type="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DeploymentsResourceApi;

import java.io.File;
import java.util.*;

public class DeploymentsResourceApiExample {

    public static void main(String[] args) {
        
        DeploymentsResourceApi apiInstance = new DeploymentsResourceApi();
        String name = name_example; // String | Name of the resource to get.
        String type = type_example; // String | Type of the resource to get
        String namespace = namespace_example; // String | Namespace of the cluster where the resource is running.
        try {
            'Boolean' result = apiInstance.v1DeploymentsNameDelete(name, type, namespace);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DeploymentsResourceApi#v1DeploymentsNameDelete");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DeploymentsResourceApi;

public class DeploymentsResourceApiExample {

    public static void main(String[] args) {
        DeploymentsResourceApi apiInstance = new DeploymentsResourceApi();
        String name = name_example; // String | Name of the resource to get.
        String type = type_example; // String | Type of the resource to get
        String namespace = namespace_example; // String | Namespace of the cluster where the resource is running.
        try {
            'Boolean' result = apiInstance.v1DeploymentsNameDelete(name, type, namespace);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DeploymentsResourceApi#v1DeploymentsNameDelete");
            e.printStackTrace();
        }
    }
}
String *name = name_example; // Name of the resource to get.
String *type = type_example; // Type of the resource to get
String *namespace = namespace_example; // Namespace of the cluster where the resource is running. (optional)

DeploymentsResourceApi *apiInstance = [[DeploymentsResourceApi alloc] init];

// Stop/Remove
[apiInstance v1DeploymentsNameDeleteWith:name
    type:type
    namespace:namespace
              completionHandler: ^('Boolean' output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var KaotoBackendApi = require('kaoto_backend_api');

var api = new KaotoBackendApi.DeploymentsResourceApi()
var name = name_example; // {{String}} Name of the resource to get.
var type = type_example; // {{String}} Type of the resource to get
var opts = { 
  'namespace': namespace_example // {{String}} Namespace of the cluster where the resource is running.
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.v1DeploymentsNameDelete(name, type, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class v1DeploymentsNameDeleteExample
    {
        public void main()
        {

            var apiInstance = new DeploymentsResourceApi();
            var name = name_example;  // String | Name of the resource to get.
            var type = type_example;  // String | Type of the resource to get
            var namespace = namespace_example;  // String | Namespace of the cluster where the resource is running. (optional) 

            try
            {
                // Stop/Remove
                'Boolean' result = apiInstance.v1DeploymentsNameDelete(name, type, namespace);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DeploymentsResourceApi.v1DeploymentsNameDelete: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiDeploymentsResourceApi();
$name = name_example; // String | Name of the resource to get.
$type = type_example; // String | Type of the resource to get
$namespace = namespace_example; // String | Namespace of the cluster where the resource is running.

try {
    $result = $api_instance->v1DeploymentsNameDelete($name, $type, $namespace);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DeploymentsResourceApi->v1DeploymentsNameDelete: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DeploymentsResourceApi;

my $api_instance = WWW::SwaggerClient::DeploymentsResourceApi->new();
my $name = name_example; # String | Name of the resource to get.
my $type = type_example; # String | Type of the resource to get
my $namespace = namespace_example; # String | Namespace of the cluster where the resource is running.

eval { 
    my $result = $api_instance->v1DeploymentsNameDelete(name => $name, type => $type, namespace => $namespace);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DeploymentsResourceApi->v1DeploymentsNameDelete: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DeploymentsResourceApi()
name = name_example # String | Name of the resource to get.
type = type_example # String | Type of the resource to get
namespace = namespace_example # String | Namespace of the cluster where the resource is running. (optional)

try: 
    # Stop/Remove
    api_response = api_instance.v1_deployments_name_delete(name, type, namespace=namespace)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DeploymentsResourceApi->v1DeploymentsNameDelete: %s\n" % e)

Parameters

Path parameters
Name Description
name*
String
Name of the resource to get.
Required
Query parameters
Name Description
namespace
String
Namespace of the cluster where the resource is running.
type*
String
Type of the resource to get
Required

Responses

Status: 200 - OK


v1DeploymentsNameGet

Get CRD

Returns the custom resource identified by name.


/v1/deployments/{name}

Usage and SDK Samples

curl -X GET\
-H "Accept: text/yaml"\
"//v1/deployments/{name}?namespace=&type="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DeploymentsResourceApi;

import java.io.File;
import java.util.*;

public class DeploymentsResourceApiExample {

    public static void main(String[] args) {
        
        DeploymentsResourceApi apiInstance = new DeploymentsResourceApi();
        String name = name_example; // String | Name of the resource to get.
        String type = type_example; // String | Type of the resource to get
        String namespace = namespace_example; // String | Namespace of the cluster where the resource is running.
        try {
            'String' result = apiInstance.v1DeploymentsNameGet(name, type, namespace);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DeploymentsResourceApi#v1DeploymentsNameGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DeploymentsResourceApi;

public class DeploymentsResourceApiExample {

    public static void main(String[] args) {
        DeploymentsResourceApi apiInstance = new DeploymentsResourceApi();
        String name = name_example; // String | Name of the resource to get.
        String type = type_example; // String | Type of the resource to get
        String namespace = namespace_example; // String | Namespace of the cluster where the resource is running.
        try {
            'String' result = apiInstance.v1DeploymentsNameGet(name, type, namespace);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DeploymentsResourceApi#v1DeploymentsNameGet");
            e.printStackTrace();
        }
    }
}
String *name = name_example; // Name of the resource to get.
String *type = type_example; // Type of the resource to get
String *namespace = namespace_example; // Namespace of the cluster where the resource is running. (optional)

DeploymentsResourceApi *apiInstance = [[DeploymentsResourceApi alloc] init];

// Get CRD
[apiInstance v1DeploymentsNameGetWith:name
    type:type
    namespace:namespace
              completionHandler: ^('String' output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var KaotoBackendApi = require('kaoto_backend_api');

var api = new KaotoBackendApi.DeploymentsResourceApi()
var name = name_example; // {{String}} Name of the resource to get.
var type = type_example; // {{String}} Type of the resource to get
var opts = { 
  'namespace': namespace_example // {{String}} Namespace of the cluster where the resource is running.
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.v1DeploymentsNameGet(name, type, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class v1DeploymentsNameGetExample
    {
        public void main()
        {

            var apiInstance = new DeploymentsResourceApi();
            var name = name_example;  // String | Name of the resource to get.
            var type = type_example;  // String | Type of the resource to get
            var namespace = namespace_example;  // String | Namespace of the cluster where the resource is running. (optional) 

            try
            {
                // Get CRD
                'String' result = apiInstance.v1DeploymentsNameGet(name, type, namespace);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DeploymentsResourceApi.v1DeploymentsNameGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiDeploymentsResourceApi();
$name = name_example; // String | Name of the resource to get.
$type = type_example; // String | Type of the resource to get
$namespace = namespace_example; // String | Namespace of the cluster where the resource is running.

try {
    $result = $api_instance->v1DeploymentsNameGet($name, $type, $namespace);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DeploymentsResourceApi->v1DeploymentsNameGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DeploymentsResourceApi;

my $api_instance = WWW::SwaggerClient::DeploymentsResourceApi->new();
my $name = name_example; # String | Name of the resource to get.
my $type = type_example; # String | Type of the resource to get
my $namespace = namespace_example; # String | Namespace of the cluster where the resource is running.

eval { 
    my $result = $api_instance->v1DeploymentsNameGet(name => $name, type => $type, namespace => $namespace);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DeploymentsResourceApi->v1DeploymentsNameGet: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DeploymentsResourceApi()
name = name_example # String | Name of the resource to get.
type = type_example # String | Type of the resource to get
namespace = namespace_example # String | Namespace of the cluster where the resource is running. (optional)

try: 
    # Get CRD
    api_response = api_instance.v1_deployments_name_get(name, type, namespace=namespace)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DeploymentsResourceApi->v1DeploymentsNameGet: %s\n" % e)

Parameters

Path parameters
Name Description
name*
String
Name of the resource to get.
Required
Query parameters
Name Description
namespace
String
Namespace of the cluster where the resource is running.
type*
String
Type of the resource to get
Required

Responses

Status: 200 - OK


v1DeploymentsNameLogsGet

Get logs

Get the resource's log.


/v1/deployments/{name}/logs

Usage and SDK Samples

curl -X GET\
-H "Accept: text/plain"\
"//v1/deployments/{name}/logs?dsl=&lines=&namespace="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DeploymentsResourceApi;

import java.io.File;
import java.util.*;

public class DeploymentsResourceApiExample {

    public static void main(String[] args) {
        
        DeploymentsResourceApi apiInstance = new DeploymentsResourceApi();
        String name = name_example; // String | Name of the resource of which logs should be retrieved.
        String dsl = dsl_example; // String | The log we want is of this DSL type.
        Integer lines = 56; // Integer | Number of last N lines to be retrieved.
        String namespace = namespace_example; // String | Namespace of the cluster where the resource is running.
        try {
            array['String'] result = apiInstance.v1DeploymentsNameLogsGet(name, dsl, lines, namespace);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DeploymentsResourceApi#v1DeploymentsNameLogsGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DeploymentsResourceApi;

public class DeploymentsResourceApiExample {

    public static void main(String[] args) {
        DeploymentsResourceApi apiInstance = new DeploymentsResourceApi();
        String name = name_example; // String | Name of the resource of which logs should be retrieved.
        String dsl = dsl_example; // String | The log we want is of this DSL type.
        Integer lines = 56; // Integer | Number of last N lines to be retrieved.
        String namespace = namespace_example; // String | Namespace of the cluster where the resource is running.
        try {
            array['String'] result = apiInstance.v1DeploymentsNameLogsGet(name, dsl, lines, namespace);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DeploymentsResourceApi#v1DeploymentsNameLogsGet");
            e.printStackTrace();
        }
    }
}
String *name = name_example; // Name of the resource of which logs should be retrieved.
String *dsl = dsl_example; // The log we want is of this DSL type. (optional)
Integer *lines = 56; // Number of last N lines to be retrieved. (optional)
String *namespace = namespace_example; // Namespace of the cluster where the resource is running. (optional)

DeploymentsResourceApi *apiInstance = [[DeploymentsResourceApi alloc] init];

// Get logs
[apiInstance v1DeploymentsNameLogsGetWith:name
    dsl:dsl
    lines:lines
    namespace:namespace
              completionHandler: ^(array['String'] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var KaotoBackendApi = require('kaoto_backend_api');

var api = new KaotoBackendApi.DeploymentsResourceApi()
var name = name_example; // {{String}} Name of the resource of which logs should be retrieved.
var opts = { 
  'dsl': dsl_example, // {{String}} The log we want is of this DSL type.
  'lines': 56, // {{Integer}} Number of last N lines to be retrieved.
  'namespace': namespace_example // {{String}} Namespace of the cluster where the resource is running.
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.v1DeploymentsNameLogsGet(name, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class v1DeploymentsNameLogsGetExample
    {
        public void main()
        {

            var apiInstance = new DeploymentsResourceApi();
            var name = name_example;  // String | Name of the resource of which logs should be retrieved.
            var dsl = dsl_example;  // String | The log we want is of this DSL type. (optional) 
            var lines = 56;  // Integer | Number of last N lines to be retrieved. (optional) 
            var namespace = namespace_example;  // String | Namespace of the cluster where the resource is running. (optional) 

            try
            {
                // Get logs
                array['String'] result = apiInstance.v1DeploymentsNameLogsGet(name, dsl, lines, namespace);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DeploymentsResourceApi.v1DeploymentsNameLogsGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiDeploymentsResourceApi();
$name = name_example; // String | Name of the resource of which logs should be retrieved.
$dsl = dsl_example; // String | The log we want is of this DSL type.
$lines = 56; // Integer | Number of last N lines to be retrieved.
$namespace = namespace_example; // String | Namespace of the cluster where the resource is running.

try {
    $result = $api_instance->v1DeploymentsNameLogsGet($name, $dsl, $lines, $namespace);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DeploymentsResourceApi->v1DeploymentsNameLogsGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DeploymentsResourceApi;

my $api_instance = WWW::SwaggerClient::DeploymentsResourceApi->new();
my $name = name_example; # String | Name of the resource of which logs should be retrieved.
my $dsl = dsl_example; # String | The log we want is of this DSL type.
my $lines = 56; # Integer | Number of last N lines to be retrieved.
my $namespace = namespace_example; # String | Namespace of the cluster where the resource is running.

eval { 
    my $result = $api_instance->v1DeploymentsNameLogsGet(name => $name, dsl => $dsl, lines => $lines, namespace => $namespace);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DeploymentsResourceApi->v1DeploymentsNameLogsGet: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DeploymentsResourceApi()
name = name_example # String | Name of the resource of which logs should be retrieved.
dsl = dsl_example # String | The log we want is of this DSL type. (optional)
lines = 56 # Integer | Number of last N lines to be retrieved. (optional)
namespace = namespace_example # String | Namespace of the cluster where the resource is running. (optional)

try: 
    # Get logs
    api_response = api_instance.v1_deployments_name_logs_get(name, dsl=dsl, lines=lines, namespace=namespace)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DeploymentsResourceApi->v1DeploymentsNameLogsGet: %s\n" % e)

Parameters

Path parameters
Name Description
name*
String
Name of the resource of which logs should be retrieved.
Required
Query parameters
Name Description
dsl
String
The log we want is of this DSL type.
lines
Integer (int32)
Number of last N lines to be retrieved.
namespace
String
Namespace of the cluster where the resource is running.

Responses

Status: 200 - OK


v1DeploymentsNamePost

Start

Deploy and start the given CRD on the cluster. Deployment will be done as a custom resource.


/v1/deployments/{name}

Usage and SDK Samples

curl -X POST\
-H "Accept: text/plain"\
-H "Content-Type: text/yaml"\
"//v1/deployments/{name}?namespace="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DeploymentsResourceApi;

import java.io.File;
import java.util.*;

public class DeploymentsResourceApiExample {

    public static void main(String[] args) {
        
        DeploymentsResourceApi apiInstance = new DeploymentsResourceApi();
        String name = name_example; // String | Name of the resource to start.
        String body = ; // String | 
        String namespace = namespace_example; // String | Namespace of the cluster where we want to deploy it.
        try {
            'String' result = apiInstance.v1DeploymentsNamePost(name, body, namespace);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DeploymentsResourceApi#v1DeploymentsNamePost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DeploymentsResourceApi;

public class DeploymentsResourceApiExample {

    public static void main(String[] args) {
        DeploymentsResourceApi apiInstance = new DeploymentsResourceApi();
        String name = name_example; // String | Name of the resource to start.
        String body = ; // String | 
        String namespace = namespace_example; // String | Namespace of the cluster where we want to deploy it.
        try {
            'String' result = apiInstance.v1DeploymentsNamePost(name, body, namespace);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DeploymentsResourceApi#v1DeploymentsNamePost");
            e.printStackTrace();
        }
    }
}
String *name = name_example; // Name of the resource to start.
String *body = ; //  (optional)
String *namespace = namespace_example; // Namespace of the cluster where we want to deploy it. (optional)

DeploymentsResourceApi *apiInstance = [[DeploymentsResourceApi alloc] init];

// Start
[apiInstance v1DeploymentsNamePostWith:name
    body:body
    namespace:namespace
              completionHandler: ^('String' output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var KaotoBackendApi = require('kaoto_backend_api');

var api = new KaotoBackendApi.DeploymentsResourceApi()
var name = name_example; // {{String}} Name of the resource to start.
var opts = { 
  'body':  // {{String}} 
  'namespace': namespace_example // {{String}} Namespace of the cluster where we want to deploy it.
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.v1DeploymentsNamePost(name, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class v1DeploymentsNamePostExample
    {
        public void main()
        {

            var apiInstance = new DeploymentsResourceApi();
            var name = name_example;  // String | Name of the resource to start.
            var body = new String(); // String |  (optional) 
            var namespace = namespace_example;  // String | Namespace of the cluster where we want to deploy it. (optional) 

            try
            {
                // Start
                'String' result = apiInstance.v1DeploymentsNamePost(name, body, namespace);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DeploymentsResourceApi.v1DeploymentsNamePost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiDeploymentsResourceApi();
$name = name_example; // String | Name of the resource to start.
$body = ; // String | 
$namespace = namespace_example; // String | Namespace of the cluster where we want to deploy it.

try {
    $result = $api_instance->v1DeploymentsNamePost($name, $body, $namespace);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DeploymentsResourceApi->v1DeploymentsNamePost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DeploymentsResourceApi;

my $api_instance = WWW::SwaggerClient::DeploymentsResourceApi->new();
my $name = name_example; # String | Name of the resource to start.
my $body = WWW::SwaggerClient::Object::String->new(); # String | 
my $namespace = namespace_example; # String | Namespace of the cluster where we want to deploy it.

eval { 
    my $result = $api_instance->v1DeploymentsNamePost(name => $name, body => $body, namespace => $namespace);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DeploymentsResourceApi->v1DeploymentsNamePost: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DeploymentsResourceApi()
name = name_example # String | Name of the resource to start.
body =  # String |  (optional)
namespace = namespace_example # String | Namespace of the cluster where we want to deploy it. (optional)

try: 
    # Start
    api_response = api_instance.v1_deployments_name_post(name, body=body, namespace=namespace)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DeploymentsResourceApi->v1DeploymentsNamePost: %s\n" % e)

Parameters

Path parameters
Name Description
name*
String
Name of the resource to start.
Required
Body parameters
Name Description
body
Query parameters
Name Description
namespace
String
Namespace of the cluster where we want to deploy it.

Responses

Status: 200 - OK


IntegrationsResource

v1IntegrationsDslsPost

Get Compatible DSLs

Given the list of steps, returns the list of potential DSL compatible with said list. This is an idempotent operation.


/v1/integrations/dsls

Usage and SDK Samples

curl -X POST\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"//v1/integrations/dsls"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.IntegrationsResourceApi;

import java.io.File;
import java.util.*;

public class IntegrationsResourceApiExample {

    public static void main(String[] args) {
        
        IntegrationsResourceApi apiInstance = new IntegrationsResourceApi();
        array[Step] body = ; // array[Step] | 
        try {
            array['String'] result = apiInstance.v1IntegrationsDslsPost(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling IntegrationsResourceApi#v1IntegrationsDslsPost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.IntegrationsResourceApi;

public class IntegrationsResourceApiExample {

    public static void main(String[] args) {
        IntegrationsResourceApi apiInstance = new IntegrationsResourceApi();
        array[Step] body = ; // array[Step] | 
        try {
            array['String'] result = apiInstance.v1IntegrationsDslsPost(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling IntegrationsResourceApi#v1IntegrationsDslsPost");
            e.printStackTrace();
        }
    }
}
array[Step] *body = ; //  (optional)

IntegrationsResourceApi *apiInstance = [[IntegrationsResourceApi alloc] init];

// Get Compatible DSLs
[apiInstance v1IntegrationsDslsPostWith:body
              completionHandler: ^(array['String'] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var KaotoBackendApi = require('kaoto_backend_api');

var api = new KaotoBackendApi.IntegrationsResourceApi()
var opts = { 
  'body':  // {{array[Step]}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.v1IntegrationsDslsPost(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class v1IntegrationsDslsPostExample
    {
        public void main()
        {

            var apiInstance = new IntegrationsResourceApi();
            var body = new array[Step](); // array[Step] |  (optional) 

            try
            {
                // Get Compatible DSLs
                array['String'] result = apiInstance.v1IntegrationsDslsPost(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling IntegrationsResourceApi.v1IntegrationsDslsPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiIntegrationsResourceApi();
$body = ; // array[Step] | 

try {
    $result = $api_instance->v1IntegrationsDslsPost($body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling IntegrationsResourceApi->v1IntegrationsDslsPost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::IntegrationsResourceApi;

my $api_instance = WWW::SwaggerClient::IntegrationsResourceApi->new();
my $body = [WWW::SwaggerClient::Object::array[Step]->new()]; # array[Step] | 

eval { 
    my $result = $api_instance->v1IntegrationsDslsPost(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling IntegrationsResourceApi->v1IntegrationsDslsPost: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.IntegrationsResourceApi()
body =  # array[Step] |  (optional)

try: 
    # Get Compatible DSLs
    api_response = api_instance.v1_integrations_dsls_post(body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling IntegrationsResourceApi->v1IntegrationsDslsPost: %s\n" % e)

Parameters

Body parameters
Name Description
body

Responses

Status: 200 - OK


v1IntegrationsPost

Get CRD

Returns the associated custom resource definition. This is an idempotent operation.


/v1/integrations

Usage and SDK Samples

curl -X POST\
-H "Accept: application/json,text/yaml"\
-H "Content-Type: text/yaml,application/json"\
"//v1/integrations?dsl="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.IntegrationsResourceApi;

import java.io.File;
import java.util.*;

public class IntegrationsResourceApiExample {

    public static void main(String[] args) {
        
        IntegrationsResourceApi apiInstance = new IntegrationsResourceApi();
        String body = ; // String | 
        String dsl = dsl_example; // String | DSL to use. For example: 'Kamelet Binding'.
        try {
            Integration result = apiInstance.v1IntegrationsPost(body, dsl);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling IntegrationsResourceApi#v1IntegrationsPost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.IntegrationsResourceApi;

public class IntegrationsResourceApiExample {

    public static void main(String[] args) {
        IntegrationsResourceApi apiInstance = new IntegrationsResourceApi();
        String body = ; // String | 
        String dsl = dsl_example; // String | DSL to use. For example: 'Kamelet Binding'.
        try {
            Integration result = apiInstance.v1IntegrationsPost(body, dsl);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling IntegrationsResourceApi#v1IntegrationsPost");
            e.printStackTrace();
        }
    }
}
String *body = ; //  (optional)
String *dsl = dsl_example; // DSL to use. For example: 'Kamelet Binding'. (optional)

IntegrationsResourceApi *apiInstance = [[IntegrationsResourceApi alloc] init];

// Get CRD
[apiInstance v1IntegrationsPostWith:body
    dsl:dsl
              completionHandler: ^(Integration output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var KaotoBackendApi = require('kaoto_backend_api');

var api = new KaotoBackendApi.IntegrationsResourceApi()
var opts = { 
  'body':  // {{String}} 
  'dsl': dsl_example // {{String}} DSL to use. For example: 'Kamelet Binding'.
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.v1IntegrationsPost(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class v1IntegrationsPostExample
    {
        public void main()
        {

            var apiInstance = new IntegrationsResourceApi();
            var body = new String(); // String |  (optional) 
            var dsl = dsl_example;  // String | DSL to use. For example: 'Kamelet Binding'. (optional) 

            try
            {
                // Get CRD
                Integration result = apiInstance.v1IntegrationsPost(body, dsl);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling IntegrationsResourceApi.v1IntegrationsPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiIntegrationsResourceApi();
$body = ; // String | 
$dsl = dsl_example; // String | DSL to use. For example: 'Kamelet Binding'.

try {
    $result = $api_instance->v1IntegrationsPost($body, $dsl);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling IntegrationsResourceApi->v1IntegrationsPost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::IntegrationsResourceApi;

my $api_instance = WWW::SwaggerClient::IntegrationsResourceApi->new();
my $body = WWW::SwaggerClient::Object::String->new(); # String | 
my $dsl = dsl_example; # String | DSL to use. For example: 'Kamelet Binding'.

eval { 
    my $result = $api_instance->v1IntegrationsPost(body => $body, dsl => $dsl);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling IntegrationsResourceApi->v1IntegrationsPost: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.IntegrationsResourceApi()
body =  # String |  (optional)
dsl = dsl_example # String | DSL to use. For example: 'Kamelet Binding'. (optional)

try: 
    # Get CRD
    api_response = api_instance.v1_integrations_post(body=body, dsl=dsl)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling IntegrationsResourceApi->v1IntegrationsPost: %s\n" % e)

Parameters

Body parameters
Name Description
body
Query parameters
Name Description
dsl
String
DSL to use. For example: 'Kamelet Binding'.

Responses

Status: 200 - OK


v2IntegrationsPost

Get CRDs

Returns the associated custom resource definitions. This is an idempotent operation.


/v2/integrations

Usage and SDK Samples

curl -X POST\
-H "Accept: application/json,text/yaml"\
-H "Content-Type: text/yaml,application/json"\
"//v2/integrations?dsl="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.IntegrationsResourceApi;

import java.io.File;
import java.util.*;

public class IntegrationsResourceApiExample {

    public static void main(String[] args) {
        
        IntegrationsResourceApi apiInstance = new IntegrationsResourceApi();
        String body = ; // String | 
        String dsl = dsl_example; // String | DSL to use. For example: 'Kamelet Binding'.
        try {
            FlowsWrapper result = apiInstance.v2IntegrationsPost(body, dsl);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling IntegrationsResourceApi#v2IntegrationsPost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.IntegrationsResourceApi;

public class IntegrationsResourceApiExample {

    public static void main(String[] args) {
        IntegrationsResourceApi apiInstance = new IntegrationsResourceApi();
        String body = ; // String | 
        String dsl = dsl_example; // String | DSL to use. For example: 'Kamelet Binding'.
        try {
            FlowsWrapper result = apiInstance.v2IntegrationsPost(body, dsl);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling IntegrationsResourceApi#v2IntegrationsPost");
            e.printStackTrace();
        }
    }
}
String *body = ; //  (optional)
String *dsl = dsl_example; // DSL to use. For example: 'Kamelet Binding'. (optional)

IntegrationsResourceApi *apiInstance = [[IntegrationsResourceApi alloc] init];

// Get CRDs
[apiInstance v2IntegrationsPostWith:body
    dsl:dsl
              completionHandler: ^(FlowsWrapper output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var KaotoBackendApi = require('kaoto_backend_api');

var api = new KaotoBackendApi.IntegrationsResourceApi()
var opts = { 
  'body':  // {{String}} 
  'dsl': dsl_example // {{String}} DSL to use. For example: 'Kamelet Binding'.
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.v2IntegrationsPost(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class v2IntegrationsPostExample
    {
        public void main()
        {

            var apiInstance = new IntegrationsResourceApi();
            var body = new String(); // String |  (optional) 
            var dsl = dsl_example;  // String | DSL to use. For example: 'Kamelet Binding'. (optional) 

            try
            {
                // Get CRDs
                FlowsWrapper result = apiInstance.v2IntegrationsPost(body, dsl);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling IntegrationsResourceApi.v2IntegrationsPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiIntegrationsResourceApi();
$body = ; // String | 
$dsl = dsl_example; // String | DSL to use. For example: 'Kamelet Binding'.

try {
    $result = $api_instance->v2IntegrationsPost($body, $dsl);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling IntegrationsResourceApi->v2IntegrationsPost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::IntegrationsResourceApi;

my $api_instance = WWW::SwaggerClient::IntegrationsResourceApi->new();
my $body = WWW::SwaggerClient::Object::String->new(); # String | 
my $dsl = dsl_example; # String | DSL to use. For example: 'Kamelet Binding'.

eval { 
    my $result = $api_instance->v2IntegrationsPost(body => $body, dsl => $dsl);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling IntegrationsResourceApi->v2IntegrationsPost: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.IntegrationsResourceApi()
body =  # String |  (optional)
dsl = dsl_example # String | DSL to use. For example: 'Kamelet Binding'. (optional)

try: 
    # Get CRDs
    api_response = api_instance.v2_integrations_post(body=body, dsl=dsl)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling IntegrationsResourceApi->v2IntegrationsPost: %s\n" % e)

Parameters

Body parameters
Name Description
body
Query parameters
Name Description
dsl
String
DSL to use. For example: 'Kamelet Binding'.

Responses

Status: 200 - OK


OpenApiToRestDslResource

v1RestOpenApiToRestPost

Generate REST DSL from Open API specification

Consume Open API specification and generate Camel REST DSL in YAML format.


/v1/rest/openApiToRest

Usage and SDK Samples

curl -X POST\
-H "Accept: text/yaml"\
-H "Content-Type: application/json,text/yaml"\
"//v1/rest/openApiToRest"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.OpenApiToRestDslResourceApi;

import java.io.File;
import java.util.*;

public class OpenApiToRestDslResourceApiExample {

    public static void main(String[] args) {
        
        OpenApiToRestDslResourceApi apiInstance = new OpenApiToRestDslResourceApi();
        String body = ; // String | 
        try {
            'String' result = apiInstance.v1RestOpenApiToRestPost(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling OpenApiToRestDslResourceApi#v1RestOpenApiToRestPost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.OpenApiToRestDslResourceApi;

public class OpenApiToRestDslResourceApiExample {

    public static void main(String[] args) {
        OpenApiToRestDslResourceApi apiInstance = new OpenApiToRestDslResourceApi();
        String body = ; // String | 
        try {
            'String' result = apiInstance.v1RestOpenApiToRestPost(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling OpenApiToRestDslResourceApi#v1RestOpenApiToRestPost");
            e.printStackTrace();
        }
    }
}
String *body = ; //  (optional)

OpenApiToRestDslResourceApi *apiInstance = [[OpenApiToRestDslResourceApi alloc] init];

// Generate REST DSL from Open API specification
[apiInstance v1RestOpenApiToRestPostWith:body
              completionHandler: ^('String' output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var KaotoBackendApi = require('kaoto_backend_api');

var api = new KaotoBackendApi.OpenApiToRestDslResourceApi()
var opts = { 
  'body':  // {{String}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.v1RestOpenApiToRestPost(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class v1RestOpenApiToRestPostExample
    {
        public void main()
        {

            var apiInstance = new OpenApiToRestDslResourceApi();
            var body = new String(); // String |  (optional) 

            try
            {
                // Generate REST DSL from Open API specification
                'String' result = apiInstance.v1RestOpenApiToRestPost(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling OpenApiToRestDslResourceApi.v1RestOpenApiToRestPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiOpenApiToRestDslResourceApi();
$body = ; // String | 

try {
    $result = $api_instance->v1RestOpenApiToRestPost($body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling OpenApiToRestDslResourceApi->v1RestOpenApiToRestPost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::OpenApiToRestDslResourceApi;

my $api_instance = WWW::SwaggerClient::OpenApiToRestDslResourceApi->new();
my $body = WWW::SwaggerClient::Object::String->new(); # String | 

eval { 
    my $result = $api_instance->v1RestOpenApiToRestPost(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling OpenApiToRestDslResourceApi->v1RestOpenApiToRestPost: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.OpenApiToRestDslResourceApi()
body =  # String |  (optional)

try: 
    # Generate REST DSL from Open API specification
    api_response = api_instance.v1_rest_open_api_to_rest_post(body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling OpenApiToRestDslResourceApi->v1RestOpenApiToRestPost: %s\n" % e)

Parameters

Body parameters
Name Description
body

Responses

Status: 200 - OK


StepResource

v1StepsGet

Get all steps

Returns all the available steps that can be added to the integration.


/v1/steps

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"//v1/steps?dsl=&followingStep=&kind=&limit=&previousStep=&start=&type="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.StepResourceApi;

import java.io.File;
import java.util.*;

public class StepResourceApiExample {

    public static void main(String[] args) {
        
        StepResourceApi apiInstance = new StepResourceApi();
        String dsl = dsl_example; // String | Filter by Domain Specific Language (DSL). Examples: 'KameletBinding' 'KameletBinding,Kamelet'
        String followingStep = followingStep_example; // String | Provides context: following step, if exists.
        String kind = kind_example; // String | Filter by kind of step. Examples: 'Kamelet' 'Kamelet,KameletBinding'
        Long limit = 789; // Long | Maximum number of elements to return.
        String previousStep = previousStep_example; // String | Provides context: previous step, if exists.
        Long start = 789; // Long | Start returning from the nth element (combine with limit).
        String type = type_example; // String | Filter by step type. Example: 'START' 'MIDDLE,END
        try {
            array[Step_Summary] result = apiInstance.v1StepsGet(dsl, followingStep, kind, limit, previousStep, start, type);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling StepResourceApi#v1StepsGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.StepResourceApi;

public class StepResourceApiExample {

    public static void main(String[] args) {
        StepResourceApi apiInstance = new StepResourceApi();
        String dsl = dsl_example; // String | Filter by Domain Specific Language (DSL). Examples: 'KameletBinding' 'KameletBinding,Kamelet'
        String followingStep = followingStep_example; // String | Provides context: following step, if exists.
        String kind = kind_example; // String | Filter by kind of step. Examples: 'Kamelet' 'Kamelet,KameletBinding'
        Long limit = 789; // Long | Maximum number of elements to return.
        String previousStep = previousStep_example; // String | Provides context: previous step, if exists.
        Long start = 789; // Long | Start returning from the nth element (combine with limit).
        String type = type_example; // String | Filter by step type. Example: 'START' 'MIDDLE,END
        try {
            array[Step_Summary] result = apiInstance.v1StepsGet(dsl, followingStep, kind, limit, previousStep, start, type);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling StepResourceApi#v1StepsGet");
            e.printStackTrace();
        }
    }
}
String *dsl = dsl_example; // Filter by Domain Specific Language (DSL). Examples: 'KameletBinding' 'KameletBinding,Kamelet' (optional)
String *followingStep = followingStep_example; // Provides context: following step, if exists. (optional)
String *kind = kind_example; // Filter by kind of step. Examples: 'Kamelet' 'Kamelet,KameletBinding' (optional)
Long *limit = 789; // Maximum number of elements to return. (optional)
String *previousStep = previousStep_example; // Provides context: previous step, if exists. (optional)
Long *start = 789; // Start returning from the nth element (combine with limit). (optional)
String *type = type_example; // Filter by step type. Example: 'START' 'MIDDLE,END (optional)

StepResourceApi *apiInstance = [[StepResourceApi alloc] init];

// Get all steps
[apiInstance v1StepsGetWith:dsl
    followingStep:followingStep
    kind:kind
    limit:limit
    previousStep:previousStep
    start:start
    type:type
              completionHandler: ^(array[Step_Summary] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var KaotoBackendApi = require('kaoto_backend_api');

var api = new KaotoBackendApi.StepResourceApi()
var opts = { 
  'dsl': dsl_example, // {{String}} Filter by Domain Specific Language (DSL). Examples: 'KameletBinding' 'KameletBinding,Kamelet'
  'followingStep': followingStep_example, // {{String}} Provides context: following step, if exists.
  'kind': kind_example, // {{String}} Filter by kind of step. Examples: 'Kamelet' 'Kamelet,KameletBinding'
  'limit': 789, // {{Long}} Maximum number of elements to return.
  'previousStep': previousStep_example, // {{String}} Provides context: previous step, if exists.
  'start': 789, // {{Long}} Start returning from the nth element (combine with limit).
  'type': type_example // {{String}} Filter by step type. Example: 'START' 'MIDDLE,END
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.v1StepsGet(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class v1StepsGetExample
    {
        public void main()
        {

            var apiInstance = new StepResourceApi();
            var dsl = dsl_example;  // String | Filter by Domain Specific Language (DSL). Examples: 'KameletBinding' 'KameletBinding,Kamelet' (optional) 
            var followingStep = followingStep_example;  // String | Provides context: following step, if exists. (optional) 
            var kind = kind_example;  // String | Filter by kind of step. Examples: 'Kamelet' 'Kamelet,KameletBinding' (optional) 
            var limit = 789;  // Long | Maximum number of elements to return. (optional) 
            var previousStep = previousStep_example;  // String | Provides context: previous step, if exists. (optional) 
            var start = 789;  // Long | Start returning from the nth element (combine with limit). (optional) 
            var type = type_example;  // String | Filter by step type. Example: 'START' 'MIDDLE,END (optional) 

            try
            {
                // Get all steps
                array[Step_Summary] result = apiInstance.v1StepsGet(dsl, followingStep, kind, limit, previousStep, start, type);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling StepResourceApi.v1StepsGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiStepResourceApi();
$dsl = dsl_example; // String | Filter by Domain Specific Language (DSL). Examples: 'KameletBinding' 'KameletBinding,Kamelet'
$followingStep = followingStep_example; // String | Provides context: following step, if exists.
$kind = kind_example; // String | Filter by kind of step. Examples: 'Kamelet' 'Kamelet,KameletBinding'
$limit = 789; // Long | Maximum number of elements to return.
$previousStep = previousStep_example; // String | Provides context: previous step, if exists.
$start = 789; // Long | Start returning from the nth element (combine with limit).
$type = type_example; // String | Filter by step type. Example: 'START' 'MIDDLE,END

try {
    $result = $api_instance->v1StepsGet($dsl, $followingStep, $kind, $limit, $previousStep, $start, $type);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling StepResourceApi->v1StepsGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::StepResourceApi;

my $api_instance = WWW::SwaggerClient::StepResourceApi->new();
my $dsl = dsl_example; # String | Filter by Domain Specific Language (DSL). Examples: 'KameletBinding' 'KameletBinding,Kamelet'
my $followingStep = followingStep_example; # String | Provides context: following step, if exists.
my $kind = kind_example; # String | Filter by kind of step. Examples: 'Kamelet' 'Kamelet,KameletBinding'
my $limit = 789; # Long | Maximum number of elements to return.
my $previousStep = previousStep_example; # String | Provides context: previous step, if exists.
my $start = 789; # Long | Start returning from the nth element (combine with limit).
my $type = type_example; # String | Filter by step type. Example: 'START' 'MIDDLE,END

eval { 
    my $result = $api_instance->v1StepsGet(dsl => $dsl, followingStep => $followingStep, kind => $kind, limit => $limit, previousStep => $previousStep, start => $start, type => $type);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling StepResourceApi->v1StepsGet: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.StepResourceApi()
dsl = dsl_example # String | Filter by Domain Specific Language (DSL). Examples: 'KameletBinding' 'KameletBinding,Kamelet' (optional)
followingStep = followingStep_example # String | Provides context: following step, if exists. (optional)
kind = kind_example # String | Filter by kind of step. Examples: 'Kamelet' 'Kamelet,KameletBinding' (optional)
limit = 789 # Long | Maximum number of elements to return. (optional)
previousStep = previousStep_example # String | Provides context: previous step, if exists. (optional)
start = 789 # Long | Start returning from the nth element (combine with limit). (optional)
type = type_example # String | Filter by step type. Example: 'START' 'MIDDLE,END (optional)

try: 
    # Get all steps
    api_response = api_instance.v1_steps_get(dsl=dsl, followingStep=followingStep, kind=kind, limit=limit, previousStep=previousStep, start=start, type=type)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling StepResourceApi->v1StepsGet: %s\n" % e)

Parameters

Query parameters
Name Description
dsl
String
Filter by Domain Specific Language (DSL). Examples: 'KameletBinding' 'KameletBinding,Kamelet'
followingStep
String
Provides context: following step, if exists.
kind
String
Filter by kind of step. Examples: 'Kamelet' 'Kamelet,KameletBinding'
limit
Long (int64)
Maximum number of elements to return.
previousStep
String
Provides context: previous step, if exists.
start
Long (int64)
Start returning from the nth element (combine with limit).
type
String
Filter by step type. Example: 'START' 'MIDDLE,END

Responses

Status: 200 - OK


v1StepsIdIdGet

Get step by ID

Returns all the details of a specific step based on the identifier.


/v1/steps/id/{id}

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"//v1/steps/id/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.StepResourceApi;

import java.io.File;
import java.util.*;

public class StepResourceApiExample {

    public static void main(String[] args) {
        
        StepResourceApi apiInstance = new StepResourceApi();
        String id = id_example; // String | Identifier of the step we want to retrieve.
        try {
            Step_Complete_Summary result = apiInstance.v1StepsIdIdGet(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling StepResourceApi#v1StepsIdIdGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.StepResourceApi;

public class StepResourceApiExample {

    public static void main(String[] args) {
        StepResourceApi apiInstance = new StepResourceApi();
        String id = id_example; // String | Identifier of the step we want to retrieve.
        try {
            Step_Complete_Summary result = apiInstance.v1StepsIdIdGet(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling StepResourceApi#v1StepsIdIdGet");
            e.printStackTrace();
        }
    }
}
String *id = id_example; // Identifier of the step we want to retrieve.

StepResourceApi *apiInstance = [[StepResourceApi alloc] init];

// Get step by ID
[apiInstance v1StepsIdIdGetWith:id
              completionHandler: ^(Step_Complete_Summary output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var KaotoBackendApi = require('kaoto_backend_api');

var api = new KaotoBackendApi.StepResourceApi()
var id = id_example; // {{String}} Identifier of the step we want to retrieve.

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.v1StepsIdIdGet(id, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class v1StepsIdIdGetExample
    {
        public void main()
        {

            var apiInstance = new StepResourceApi();
            var id = id_example;  // String | Identifier of the step we want to retrieve.

            try
            {
                // Get step by ID
                Step_Complete_Summary result = apiInstance.v1StepsIdIdGet(id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling StepResourceApi.v1StepsIdIdGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiStepResourceApi();
$id = id_example; // String | Identifier of the step we want to retrieve.

try {
    $result = $api_instance->v1StepsIdIdGet($id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling StepResourceApi->v1StepsIdIdGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::StepResourceApi;

my $api_instance = WWW::SwaggerClient::StepResourceApi->new();
my $id = id_example; # String | Identifier of the step we want to retrieve.

eval { 
    my $result = $api_instance->v1StepsIdIdGet(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling StepResourceApi->v1StepsIdIdGet: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.StepResourceApi()
id = id_example # String | Identifier of the step we want to retrieve.

try: 
    # Get step by ID
    api_response = api_instance.v1_steps_id_id_get(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling StepResourceApi->v1StepsIdIdGet: %s\n" % e)

Parameters

Path parameters
Name Description
id*
String
Identifier of the step we want to retrieve.
Required

Responses

Status: 200 - OK


v1StepsNameNameGet

Get step by name

Returns all the details of steps based on the name. There may be more than one step with the same name, although configuration of catalogs should try to avoid duplications.


/v1/steps/name/{name}

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"//v1/steps/name/{name}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.StepResourceApi;

import java.io.File;
import java.util.*;

public class StepResourceApiExample {

    public static void main(String[] args) {
        
        StepResourceApi apiInstance = new StepResourceApi();
        String name = name_example; // String | Name of the steps we want to retrieve.
        try {
            array[Step_Complete_Summary] result = apiInstance.v1StepsNameNameGet(name);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling StepResourceApi#v1StepsNameNameGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.StepResourceApi;

public class StepResourceApiExample {

    public static void main(String[] args) {
        StepResourceApi apiInstance = new StepResourceApi();
        String name = name_example; // String | Name of the steps we want to retrieve.
        try {
            array[Step_Complete_Summary] result = apiInstance.v1StepsNameNameGet(name);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling StepResourceApi#v1StepsNameNameGet");
            e.printStackTrace();
        }
    }
}
String *name = name_example; // Name of the steps we want to retrieve.

StepResourceApi *apiInstance = [[StepResourceApi alloc] init];

// Get step by name
[apiInstance v1StepsNameNameGetWith:name
              completionHandler: ^(array[Step_Complete_Summary] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var KaotoBackendApi = require('kaoto_backend_api');

var api = new KaotoBackendApi.StepResourceApi()
var name = name_example; // {{String}} Name of the steps we want to retrieve.

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.v1StepsNameNameGet(name, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class v1StepsNameNameGetExample
    {
        public void main()
        {

            var apiInstance = new StepResourceApi();
            var name = name_example;  // String | Name of the steps we want to retrieve.

            try
            {
                // Get step by name
                array[Step_Complete_Summary] result = apiInstance.v1StepsNameNameGet(name);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling StepResourceApi.v1StepsNameNameGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiStepResourceApi();
$name = name_example; // String | Name of the steps we want to retrieve.

try {
    $result = $api_instance->v1StepsNameNameGet($name);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling StepResourceApi->v1StepsNameNameGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::StepResourceApi;

my $api_instance = WWW::SwaggerClient::StepResourceApi->new();
my $name = name_example; # String | Name of the steps we want to retrieve.

eval { 
    my $result = $api_instance->v1StepsNameNameGet(name => $name);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling StepResourceApi->v1StepsNameNameGet: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.StepResourceApi()
name = name_example # String | Name of the steps we want to retrieve.

try: 
    # Get step by name
    api_response = api_instance.v1_steps_name_name_get(name)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling StepResourceApi->v1StepsNameNameGet: %s\n" % e)

Parameters

Path parameters
Name Description
name*
String
Name of the steps we want to retrieve.
Required

Responses

Status: 200 - OK


ViewDefinitionResource

v1ViewDefinitionsPost

Get views based on steps

Get view definitions for a specific resource. This is an idempotent operation.


/v1/view-definitions

Usage and SDK Samples

curl -X POST\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"//v1/view-definitions"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ViewDefinitionResourceApi;

import java.io.File;
import java.util.*;

public class ViewDefinitionResourceApiExample {

    public static void main(String[] args) {
        
        ViewDefinitionResourceApi apiInstance = new ViewDefinitionResourceApi();
        array[Step] body = ; // array[Step] | 
        try {
            array[ViewDefinition] result = apiInstance.v1ViewDefinitionsPost(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ViewDefinitionResourceApi#v1ViewDefinitionsPost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ViewDefinitionResourceApi;

public class ViewDefinitionResourceApiExample {

    public static void main(String[] args) {
        ViewDefinitionResourceApi apiInstance = new ViewDefinitionResourceApi();
        array[Step] body = ; // array[Step] | 
        try {
            array[ViewDefinition] result = apiInstance.v1ViewDefinitionsPost(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ViewDefinitionResourceApi#v1ViewDefinitionsPost");
            e.printStackTrace();
        }
    }
}
array[Step] *body = ; //  (optional)

ViewDefinitionResourceApi *apiInstance = [[ViewDefinitionResourceApi alloc] init];

// Get views based on steps
[apiInstance v1ViewDefinitionsPostWith:body
              completionHandler: ^(array[ViewDefinition] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var KaotoBackendApi = require('kaoto_backend_api');

var api = new KaotoBackendApi.ViewDefinitionResourceApi()
var opts = { 
  'body':  // {{array[Step]}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.v1ViewDefinitionsPost(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class v1ViewDefinitionsPostExample
    {
        public void main()
        {

            var apiInstance = new ViewDefinitionResourceApi();
            var body = new array[Step](); // array[Step] |  (optional) 

            try
            {
                // Get views based on steps
                array[ViewDefinition] result = apiInstance.v1ViewDefinitionsPost(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ViewDefinitionResourceApi.v1ViewDefinitionsPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiViewDefinitionResourceApi();
$body = ; // array[Step] | 

try {
    $result = $api_instance->v1ViewDefinitionsPost($body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ViewDefinitionResourceApi->v1ViewDefinitionsPost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ViewDefinitionResourceApi;

my $api_instance = WWW::SwaggerClient::ViewDefinitionResourceApi->new();
my $body = [WWW::SwaggerClient::Object::array[Step]->new()]; # array[Step] | 

eval { 
    my $result = $api_instance->v1ViewDefinitionsPost(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ViewDefinitionResourceApi->v1ViewDefinitionsPost: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.ViewDefinitionResourceApi()
body =  # array[Step] |  (optional)

try: 
    # Get views based on steps
    api_response = api_instance.v1_view_definitions_post(body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ViewDefinitionResourceApi->v1ViewDefinitionsPost: %s\n" % e)

Parameters

Body parameters
Name Description
body

Responses

Status: 200 - OK