getAllPathsUsingGET
Get all domain paths
Get all available domain paths from given profile
/domain/{profileCode}/paths
Usage and SDK Samples
curl -X GET "https://localhost:8080/hyperon/domain/{profileCode}/paths"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DomainApi;
import java.io.File;
import java.util.*;
public class DomainApiExample {
public static void main(String[] args) {
DomainApi apiInstance = new DomainApi();
String accept = accept_example; // String | Accept application/json header
String profileCode = profileCode_example; // String | profile code from which domain will be taken
try {
GetAllPathsResponse result = apiInstance.getAllPathsUsingGET(accept, profileCode);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DomainApi#getAllPathsUsingGET");
e.printStackTrace();
}
}
}
import io.swagger.client.api.DomainApi;
public class DomainApiExample {
public static void main(String[] args) {
DomainApi apiInstance = new DomainApi();
String accept = accept_example; // String | Accept application/json header
String profileCode = profileCode_example; // String | profile code from which domain will be taken
try {
GetAllPathsResponse result = apiInstance.getAllPathsUsingGET(accept, profileCode);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DomainApi#getAllPathsUsingGET");
e.printStackTrace();
}
}
}
String *accept = accept_example; // Accept application/json header (default to application/json)
String *profileCode = profileCode_example; // profile code from which domain will be taken
DomainApi *apiInstance = [[DomainApi alloc] init];
// Get all domain paths
[apiInstance getAllPathsUsingGETWith:accept
profileCode:profileCode
completionHandler: ^(GetAllPathsResponse output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
var HyperonRestApi = require('hyperon_rest_api');
var api = new HyperonRestApi.DomainApi()
var accept = accept_example; // {String} Accept application/json header
var profileCode = profileCode_example; // {String} profile code from which domain will be taken
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.getAllPathsUsingGET(accept, profileCode, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class getAllPathsUsingGETExample
{
public void main()
{
var apiInstance = new DomainApi();
var accept = accept_example; // String | Accept application/json header (default to application/json)
var profileCode = profileCode_example; // String | profile code from which domain will be taken
try
{
// Get all domain paths
GetAllPathsResponse result = apiInstance.getAllPathsUsingGET(accept, profileCode);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling DomainApi.getAllPathsUsingGET: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\Api\DomainApi();
$accept = accept_example; // String | Accept application/json header
$profileCode = profileCode_example; // String | profile code from which domain will be taken
try {
$result = $api_instance->getAllPathsUsingGET($accept, $profileCode);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DomainApi->getAllPathsUsingGET: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DomainApi;
my $api_instance = WWW::SwaggerClient::DomainApi->new();
my $accept = accept_example; # String | Accept application/json header
my $profileCode = profileCode_example; # String | profile code from which domain will be taken
eval {
my $result = $api_instance->getAllPathsUsingGET(accept => $accept, profileCode => $profileCode);
print Dumper($result);
};
if ($@) {
warn "Exception when calling DomainApi->getAllPathsUsingGET: $@\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.DomainApi()
accept = accept_example # String | Accept application/json header (default to application/json)
profileCode = profileCode_example # String | profile code from which domain will be taken
try:
# Get all domain paths
api_response = api_instance.get_all_paths_using_get(accept, profileCode)
pprint(api_response)
except ApiException as e:
print("Exception when calling DomainApi->getAllPathsUsingGET: %s\n" % e)
Parameters
Name | Description |
---|---|
profileCode* |
String
profile code from which domain will be taken
Required
|
Name | Description |
---|---|
Accept* |
String
Accept application/json header
Required
|