(sub)attributes
Obtain a list of (sub)attributes within specified repo, hub and category
/attributes/{repository}/{hub}/{category}
Usage and SDK Samples
curl -X GET "https://trackfind.elixir.no/api/v1/attributes/{repository}/{hub}/{category}?path="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.MetamodelApi;
import java.io.File;
import java.util.*;
public class MetamodelApiExample {
public static void main(String[] args) {
MetamodelApi apiInstance = new MetamodelApi();
String repository = repository_example; // String |
String hub = hub_example; // String |
String category = category_example; // String |
String path = path_example; // String | Path to the attribute to get sub-attributes of
try {
array['String'] result = apiInstance.(sub)attributes(repository, hub, category, path);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling MetamodelApi#(sub)attributes");
e.printStackTrace();
}
}
}
import io.swagger.client.api.MetamodelApi;
public class MetamodelApiExample {
public static void main(String[] args) {
MetamodelApi apiInstance = new MetamodelApi();
String repository = repository_example; // String |
String hub = hub_example; // String |
String category = category_example; // String |
String path = path_example; // String | Path to the attribute to get sub-attributes of
try {
array['String'] result = apiInstance.(sub)attributes(repository, hub, category, path);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling MetamodelApi#(sub)attributes");
e.printStackTrace();
}
}
}
String *repository = repository_example; //
String *hub = hub_example; //
String *category = category_example; //
String *path = path_example; // Path to the attribute to get sub-attributes of (optional)
MetamodelApi *apiInstance = [[MetamodelApi alloc] init];
[apiInstance (sub)attributesWith:repository
hub:hub
category:category
path:path
completionHandler: ^(array['String'] output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
var TrackFindApi = require('track_find_api');
var api = new TrackFindApi.MetamodelApi()
var repository = repository_example; // {String}
var hub = hub_example; // {String}
var category = category_example; // {String}
var opts = {
'path': path_example // {String} Path to the attribute to get sub-attributes of
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.(sub)attributes(repository, hub, category, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class (sub)attributesExample
{
public void main()
{
var apiInstance = new MetamodelApi();
var repository = repository_example; // String |
var hub = hub_example; // String |
var category = category_example; // String |
var path = path_example; // String | Path to the attribute to get sub-attributes of (optional)
try
{
array['String'] result = apiInstance.(sub)attributes(repository, hub, category, path);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling MetamodelApi.(sub)attributes: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\Api\MetamodelApi();
$repository = repository_example; // String |
$hub = hub_example; // String |
$category = category_example; // String |
$path = path_example; // String | Path to the attribute to get sub-attributes of
try {
$result = $api_instance->(sub)attributes($repository, $hub, $category, $path);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling MetamodelApi->(sub)attributes: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::MetamodelApi;
my $api_instance = WWW::SwaggerClient::MetamodelApi->new();
my $repository = repository_example; # String |
my $hub = hub_example; # String |
my $category = category_example; # String |
my $path = path_example; # String | Path to the attribute to get sub-attributes of
eval {
my $result = $api_instance->(sub)attributes(repository => $repository, hub => $hub, category => $category, path => $path);
print Dumper($result);
};
if ($@) {
warn "Exception when calling MetamodelApi->(sub)attributes: $@\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.MetamodelApi()
repository = repository_example # String |
hub = hub_example # String |
category = category_example # String |
path = path_example # String | Path to the attribute to get sub-attributes of (optional)
try:
api_response = api_instance.(sub)attributes(repository, hub, category, path=path)
pprint(api_response)
except ApiException as e:
print("Exception when calling MetamodelApi->(sub)attributes: %s\n" % e)
Parameters
Path parameters
Name | Description |
---|---|
repository* |
String
Required
|
hub* |
String
Required
|
category* |
String
Required
|
Query parameters
Name | Description |
---|---|
path |
String
Path to the attribute to get sub-attributes of
|