Eclipse CDO Graph REST API

Commits

commitGraphBatch

Apply one atomic graph modification batch.

Writes target the selected branch head as one atomic CDO commit. A batch may create resource folders, resources, and graph objects, then attach and modify them by temporary ID. Resource-node names and uniqueness follow CDO namespace rules; REST names and path segments reject slash, empty, dot, and dot-dot segments. Detaching an object recursively detaches its containment subtree; non-containment references do not cascade. The REST layer enforces configured request and response-processing limits and Ecore upper bounds but does not run an EValidator or impose lower-bound validation. GET /api/cdo/v1/capabilities reports the effective configured limits. A successful commit remains committed even if its HTTP response cannot be delivered.


/api/cdo/v1/repositories/{repository}/commits

Usage and SDK Samples

curl -X POST \
 -H "Accept: application/json,application/problem+json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/cdo/v1/repositories/{repository}/commits?branch=branch_example" \
 -d '{
  "operations" : [ {
    "op" : "",
    "type" : {
      "package" : "https://openapi-generator.tech",
      "name" : "name"
    },
    "feature" : "feature"
  }, {
    "op" : "",
    "type" : {
      "package" : "https://openapi-generator.tech",
      "name" : "name"
    },
    "feature" : "feature"
  } ],
  "expectedVersions" : {
    "key" : 0
  }
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.CommitsApi;

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

public class CommitsApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        CommitsApi apiInstance = new CommitsApi();
        String repository = repository_example; // String | REST alias configured for one CDO repository.
        CommitBatch commitBatch = {"expectedVersions":{"opaque-object-id":7},"operations":[{"op":"set","object":"opaque-object-id","feature":"name","value":"Updated through REST"}]}; // CommitBatch | 
        String branch = branch_example; // String | Branch path name. Defaults to the main branch.

        try {
            CommitResult result = apiInstance.commitGraphBatch(repository, commitBatch, branch);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CommitsApi#commitGraphBatch");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final String repository = new String(); // String | REST alias configured for one CDO repository.
final CommitBatch commitBatch = new CommitBatch(); // CommitBatch | 
final String branch = new String(); // String | Branch path name. Defaults to the main branch.

try {
    final result = await api_instance.commitGraphBatch(repository, commitBatch, branch);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->commitGraphBatch: $e\n');
}

import org.openapitools.client.api.CommitsApi;

public class CommitsApiExample {
    public static void main(String[] args) {
        CommitsApi apiInstance = new CommitsApi();
        String repository = repository_example; // String | REST alias configured for one CDO repository.
        CommitBatch commitBatch = {"expectedVersions":{"opaque-object-id":7},"operations":[{"op":"set","object":"opaque-object-id","feature":"name","value":"Updated through REST"}]}; // CommitBatch | 
        String branch = branch_example; // String | Branch path name. Defaults to the main branch.

        try {
            CommitResult result = apiInstance.commitGraphBatch(repository, commitBatch, branch);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CommitsApi#commitGraphBatch");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
CommitsApi *apiInstance = [[CommitsApi alloc] init];
String *repository = repository_example; // REST alias configured for one CDO repository. (default to null)
CommitBatch *commitBatch = {"expectedVersions":{"opaque-object-id":7},"operations":[{"op":"set","object":"opaque-object-id","feature":"name","value":"Updated through REST"}]}; // 
String *branch = branch_example; // Branch path name. Defaults to the main branch. (optional) (default to null)

// Apply one atomic graph modification batch.
[apiInstance commitGraphBatchWith:repository
    commitBatch:commitBatch
    branch:branch
              completionHandler: ^(CommitResult output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var EclipseCdoGraphRestApi = require('eclipse_cdo_graph_rest_api');

// Create an instance of the API class
var api = new EclipseCdoGraphRestApi.CommitsApi()
var repository = repository_example; // {String} REST alias configured for one CDO repository.
var commitBatch = {"expectedVersions":{"opaque-object-id":7},"operations":[{"op":"set","object":"opaque-object-id","feature":"name","value":"Updated through REST"}]}; // {CommitBatch} 
var opts = {
  'branch': branch_example // {String} Branch path name. Defaults to the main branch.
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.commitGraphBatch(repository, commitBatch, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

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

            // Create an instance of the API class
            var apiInstance = new CommitsApi();
            var repository = repository_example;  // String | REST alias configured for one CDO repository. (default to null)
            var commitBatch = new CommitBatch(); // CommitBatch | 
            var branch = branch_example;  // String | Branch path name. Defaults to the main branch. (optional)  (default to null)

            try {
                // Apply one atomic graph modification batch.
                CommitResult result = apiInstance.commitGraphBatch(repository, commitBatch, branch);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling CommitsApi.commitGraphBatch: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\CommitsApi();
$repository = repository_example; // String | REST alias configured for one CDO repository.
$commitBatch = {"expectedVersions":{"opaque-object-id":7},"operations":[{"op":"set","object":"opaque-object-id","feature":"name","value":"Updated through REST"}]}; // CommitBatch | 
$branch = branch_example; // String | Branch path name. Defaults to the main branch.

try {
    $result = $api_instance->commitGraphBatch($repository, $commitBatch, $branch);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CommitsApi->commitGraphBatch: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::CommitsApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::CommitsApi->new();
my $repository = repository_example; # String | REST alias configured for one CDO repository.
my $commitBatch = WWW::OPenAPIClient::Object::CommitBatch->new(); # CommitBatch | 
my $branch = branch_example; # String | Branch path name. Defaults to the main branch.

eval {
    my $result = $api_instance->commitGraphBatch(repository => $repository, commitBatch => $commitBatch, branch => $branch);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CommitsApi->commitGraphBatch: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.CommitsApi()
repository = repository_example # String | REST alias configured for one CDO repository. (default to null)
commitBatch = {"expectedVersions":{"opaque-object-id":7},"operations":[{"op":"set","object":"opaque-object-id","feature":"name","value":"Updated through REST"}]} # CommitBatch | 
branch = branch_example # String | Branch path name. Defaults to the main branch. (optional) (default to null)

try:
    # Apply one atomic graph modification batch.
    api_response = api_instance.commit_graph_batch(repository, commitBatch, branch=branch)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CommitsApi->commitGraphBatch: %s\n" % e)
extern crate CommitsApi;

pub fn main() {
    let repository = repository_example; // String
    let commitBatch = {"expectedVersions":{"opaque-object-id":7},"operations":[{"op":"set","object":"opaque-object-id","feature":"name","value":"Updated through REST"}]}; // CommitBatch
    let branch = branch_example; // String

    let mut context = CommitsApi::Context::default();
    let result = client.commitGraphBatch(repository, commitBatch, branch, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
repository*
String
REST alias configured for one CDO repository.
Required
Body parameters
Name Description
commitBatch *

Query parameters
Name Description
branch
String
Branch path name. Defaults to the main branch.

Responses

Name Type Format Description
WWW-Authenticate String Optional challenge supplied by the configured authenticator.


Discovery

discoverCDORest

Discover the supported REST API version and capabilities.


/

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json,application/problem+json" \
 "http://localhost/"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DiscoveryApi;

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

public class DiscoveryApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        DiscoveryApi apiInstance = new DiscoveryApi();

        try {
            Discovery result = apiInstance.discoverCDORest();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DiscoveryApi#discoverCDORest");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();


try {
    final result = await api_instance.discoverCDORest();
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->discoverCDORest: $e\n');
}

import org.openapitools.client.api.DiscoveryApi;

public class DiscoveryApiExample {
    public static void main(String[] args) {
        DiscoveryApi apiInstance = new DiscoveryApi();

        try {
            Discovery result = apiInstance.discoverCDORest();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DiscoveryApi#discoverCDORest");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
DiscoveryApi *apiInstance = [[DiscoveryApi alloc] init];

// Discover the supported REST API version and capabilities.
[apiInstance discoverCDORestWithCompletionHandler: 
              ^(Discovery output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var EclipseCdoGraphRestApi = require('eclipse_cdo_graph_rest_api');

// Create an instance of the API class
var api = new EclipseCdoGraphRestApi.DiscoveryApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.discoverCDORest(callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

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

            // Create an instance of the API class
            var apiInstance = new DiscoveryApi();

            try {
                // Discover the supported REST API version and capabilities.
                Discovery result = apiInstance.discoverCDORest();
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DiscoveryApi.discoverCDORest: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DiscoveryApi();

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DiscoveryApi->new();

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

# Create an instance of the API class
api_instance = openapi_client.DiscoveryApi()

try:
    # Discover the supported REST API version and capabilities.
    api_response = api_instance.discover_cdo_rest()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DiscoveryApi->discoverCDORest: %s\n" % e)
extern crate DiscoveryApi;

pub fn main() {

    let mut context = DiscoveryApi::Context::default();
    let result = client.discoverCDORest(&context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Responses


discoverCDORestWellKnown

Discover the supported REST API version and capabilities.


/.well-known/cdo-rest

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json,application/problem+json" \
 "http://localhost/.well-known/cdo-rest"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DiscoveryApi;

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

public class DiscoveryApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        DiscoveryApi apiInstance = new DiscoveryApi();

        try {
            Discovery result = apiInstance.discoverCDORestWellKnown();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DiscoveryApi#discoverCDORestWellKnown");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();


try {
    final result = await api_instance.discoverCDORestWellKnown();
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->discoverCDORestWellKnown: $e\n');
}

import org.openapitools.client.api.DiscoveryApi;

public class DiscoveryApiExample {
    public static void main(String[] args) {
        DiscoveryApi apiInstance = new DiscoveryApi();

        try {
            Discovery result = apiInstance.discoverCDORestWellKnown();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DiscoveryApi#discoverCDORestWellKnown");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
DiscoveryApi *apiInstance = [[DiscoveryApi alloc] init];

// Discover the supported REST API version and capabilities.
[apiInstance discoverCDORestWellKnownWithCompletionHandler: 
              ^(Discovery output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var EclipseCdoGraphRestApi = require('eclipse_cdo_graph_rest_api');

// Create an instance of the API class
var api = new EclipseCdoGraphRestApi.DiscoveryApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.discoverCDORestWellKnown(callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

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

            // Create an instance of the API class
            var apiInstance = new DiscoveryApi();

            try {
                // Discover the supported REST API version and capabilities.
                Discovery result = apiInstance.discoverCDORestWellKnown();
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DiscoveryApi.discoverCDORestWellKnown: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DiscoveryApi();

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DiscoveryApi->new();

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

# Create an instance of the API class
api_instance = openapi_client.DiscoveryApi()

try:
    # Discover the supported REST API version and capabilities.
    api_response = api_instance.discover_cdo_rest_well_known()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DiscoveryApi->discoverCDORestWellKnown: %s\n" % e)
extern crate DiscoveryApi;

pub fn main() {

    let mut context = DiscoveryApi::Context::default();
    let result = client.discoverCDORestWellKnown(&context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Responses


getCapabilities

Return capabilities for API version 1.


/api/cdo/v1/capabilities

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json,application/problem+json" \
 "http://localhost/api/cdo/v1/capabilities"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DiscoveryApi;

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

public class DiscoveryApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        DiscoveryApi apiInstance = new DiscoveryApi();

        try {
            Capabilities result = apiInstance.getCapabilities();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DiscoveryApi#getCapabilities");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();


try {
    final result = await api_instance.getCapabilities();
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->getCapabilities: $e\n');
}

import org.openapitools.client.api.DiscoveryApi;

public class DiscoveryApiExample {
    public static void main(String[] args) {
        DiscoveryApi apiInstance = new DiscoveryApi();

        try {
            Capabilities result = apiInstance.getCapabilities();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DiscoveryApi#getCapabilities");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
DiscoveryApi *apiInstance = [[DiscoveryApi alloc] init];

// Return capabilities for API version 1.
[apiInstance getCapabilitiesWithCompletionHandler: 
              ^(Capabilities output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var EclipseCdoGraphRestApi = require('eclipse_cdo_graph_rest_api');

// Create an instance of the API class
var api = new EclipseCdoGraphRestApi.DiscoveryApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getCapabilities(callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

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

            // Create an instance of the API class
            var apiInstance = new DiscoveryApi();

            try {
                // Return capabilities for API version 1.
                Capabilities result = apiInstance.getCapabilities();
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DiscoveryApi.getCapabilities: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DiscoveryApi();

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DiscoveryApi->new();

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

# Create an instance of the API class
api_instance = openapi_client.DiscoveryApi()

try:
    # Return capabilities for API version 1.
    api_response = api_instance.get_capabilities()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DiscoveryApi->getCapabilities: %s\n" % e)
extern crate DiscoveryApi;

pub fn main() {

    let mut context = DiscoveryApi::Context::default();
    let result = client.getCapabilities(&context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Responses


getCapabilitiesAtVersionRoot

Return capabilities for API version 1.


/api/cdo/v1

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json,application/problem+json" \
 "http://localhost/api/cdo/v1"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DiscoveryApi;

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

public class DiscoveryApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        DiscoveryApi apiInstance = new DiscoveryApi();

        try {
            Capabilities result = apiInstance.getCapabilitiesAtVersionRoot();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DiscoveryApi#getCapabilitiesAtVersionRoot");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();


try {
    final result = await api_instance.getCapabilitiesAtVersionRoot();
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->getCapabilitiesAtVersionRoot: $e\n');
}

import org.openapitools.client.api.DiscoveryApi;

public class DiscoveryApiExample {
    public static void main(String[] args) {
        DiscoveryApi apiInstance = new DiscoveryApi();

        try {
            Capabilities result = apiInstance.getCapabilitiesAtVersionRoot();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DiscoveryApi#getCapabilitiesAtVersionRoot");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
DiscoveryApi *apiInstance = [[DiscoveryApi alloc] init];

// Return capabilities for API version 1.
[apiInstance getCapabilitiesAtVersionRootWithCompletionHandler: 
              ^(Capabilities output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var EclipseCdoGraphRestApi = require('eclipse_cdo_graph_rest_api');

// Create an instance of the API class
var api = new EclipseCdoGraphRestApi.DiscoveryApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getCapabilitiesAtVersionRoot(callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

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

            // Create an instance of the API class
            var apiInstance = new DiscoveryApi();

            try {
                // Return capabilities for API version 1.
                Capabilities result = apiInstance.getCapabilitiesAtVersionRoot();
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DiscoveryApi.getCapabilitiesAtVersionRoot: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DiscoveryApi();

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DiscoveryApi->new();

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

# Create an instance of the API class
api_instance = openapi_client.DiscoveryApi()

try:
    # Return capabilities for API version 1.
    api_response = api_instance.get_capabilities_at_version_root()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DiscoveryApi->getCapabilitiesAtVersionRoot: %s\n" % e)
extern crate DiscoveryApi;

pub fn main() {

    let mut context = DiscoveryApi::Context::default();
    let result = client.getCapabilitiesAtVersionRoot(&context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Responses


getOpenAPISpecification

Retrieve this OpenAPI 3.1 document.


/api/cdo/v1/openapi.json

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/vnd.oai.openapi+json;version=3.1,application/problem+json" \
 "http://localhost/api/cdo/v1/openapi.json"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DiscoveryApi;

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

public class DiscoveryApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        DiscoveryApi apiInstance = new DiscoveryApi();

        try {
            Object result = apiInstance.getOpenAPISpecification();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DiscoveryApi#getOpenAPISpecification");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();


try {
    final result = await api_instance.getOpenAPISpecification();
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->getOpenAPISpecification: $e\n');
}

import org.openapitools.client.api.DiscoveryApi;

public class DiscoveryApiExample {
    public static void main(String[] args) {
        DiscoveryApi apiInstance = new DiscoveryApi();

        try {
            Object result = apiInstance.getOpenAPISpecification();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DiscoveryApi#getOpenAPISpecification");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
DiscoveryApi *apiInstance = [[DiscoveryApi alloc] init];

// Retrieve this OpenAPI 3.1 document.
[apiInstance getOpenAPISpecificationWithCompletionHandler: 
              ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var EclipseCdoGraphRestApi = require('eclipse_cdo_graph_rest_api');

// Create an instance of the API class
var api = new EclipseCdoGraphRestApi.DiscoveryApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getOpenAPISpecification(callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

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

            // Create an instance of the API class
            var apiInstance = new DiscoveryApi();

            try {
                // Retrieve this OpenAPI 3.1 document.
                Object result = apiInstance.getOpenAPISpecification();
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DiscoveryApi.getOpenAPISpecification: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DiscoveryApi();

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DiscoveryApi->new();

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

# Create an instance of the API class
api_instance = openapi_client.DiscoveryApi()

try:
    # Retrieve this OpenAPI 3.1 document.
    api_response = api_instance.get_open_api_specification()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DiscoveryApi->getOpenAPISpecification: %s\n" % e)
extern crate DiscoveryApi;

pub fn main() {

    let mut context = DiscoveryApi::Context::default();
    let result = client.getOpenAPISpecification(&context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Responses


Graph

readObjectGraph

Read an object and the requested portion of its graph.


/api/cdo/v1/repositories/{repository}/objects/{objectId}

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json,application/problem+json" \
 "http://localhost/api/cdo/v1/repositories/{repository}/objects/{objectId}?branch=branch_example×tamp=789&depth=56&referenceDepth=56&collectionLimit=56&offset=56&metadata=metadata_example&features=features_example"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.GraphApi;

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

public class GraphApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        GraphApi apiInstance = new GraphApi();
        String repository = repository_example; // String | REST alias configured for one CDO repository.
        String objectId = objectId_example; // String | Opaque CDO Object ID serialized by CDOIDUtil.
        String branch = branch_example; // String | Branch path name. Defaults to the main branch.
        Long timestamp = 789; // Long | Historical branch point in milliseconds. Reads require repository auditing; future timestamps and writes are rejected.
        Integer depth = 56; // Integer | Containment expansion depth. Containment edges at depth zero remain references.
        Integer referenceDepth = 56; // Integer | Non-containment reference expansion depth. Reference edges at depth zero remain references.
        Integer collectionLimit = 56; // Integer | Maximum values returned from each selected many-valued feature or folder listing.
        Integer offset = 56; // Integer | Collection page offset applied to each selected many-valued feature and resource-folder listing.
        String metadata = metadata_example; // String | Comma-separated metadata fields, `all`, or `none`. Supported fields: version, branch, created, revised, resource, container, containerFeature, permission. Permission is the effective CDO permission at the selected branch point.
        String features = features_example; // String | Comma-separated feature names to include. Omitted features are excluded from serialization and traversal.

        try {
            Graph result = apiInstance.readObjectGraph(repository, objectId, branch, timestamp, depth, referenceDepth, collectionLimit, offset, metadata, features);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling GraphApi#readObjectGraph");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final String repository = new String(); // String | REST alias configured for one CDO repository.
final String objectId = new String(); // String | Opaque CDO Object ID serialized by CDOIDUtil.
final String branch = new String(); // String | Branch path name. Defaults to the main branch.
final Long timestamp = new Long(); // Long | Historical branch point in milliseconds. Reads require repository auditing; future timestamps and writes are rejected.
final Integer depth = new Integer(); // Integer | Containment expansion depth. Containment edges at depth zero remain references.
final Integer referenceDepth = new Integer(); // Integer | Non-containment reference expansion depth. Reference edges at depth zero remain references.
final Integer collectionLimit = new Integer(); // Integer | Maximum values returned from each selected many-valued feature or folder listing.
final Integer offset = new Integer(); // Integer | Collection page offset applied to each selected many-valued feature and resource-folder listing.
final String metadata = new String(); // String | Comma-separated metadata fields, `all`, or `none`. Supported fields: version, branch, created, revised, resource, container, containerFeature, permission. Permission is the effective CDO permission at the selected branch point.
final String features = new String(); // String | Comma-separated feature names to include. Omitted features are excluded from serialization and traversal.

try {
    final result = await api_instance.readObjectGraph(repository, objectId, branch, timestamp, depth, referenceDepth, collectionLimit, offset, metadata, features);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->readObjectGraph: $e\n');
}

import org.openapitools.client.api.GraphApi;

public class GraphApiExample {
    public static void main(String[] args) {
        GraphApi apiInstance = new GraphApi();
        String repository = repository_example; // String | REST alias configured for one CDO repository.
        String objectId = objectId_example; // String | Opaque CDO Object ID serialized by CDOIDUtil.
        String branch = branch_example; // String | Branch path name. Defaults to the main branch.
        Long timestamp = 789; // Long | Historical branch point in milliseconds. Reads require repository auditing; future timestamps and writes are rejected.
        Integer depth = 56; // Integer | Containment expansion depth. Containment edges at depth zero remain references.
        Integer referenceDepth = 56; // Integer | Non-containment reference expansion depth. Reference edges at depth zero remain references.
        Integer collectionLimit = 56; // Integer | Maximum values returned from each selected many-valued feature or folder listing.
        Integer offset = 56; // Integer | Collection page offset applied to each selected many-valued feature and resource-folder listing.
        String metadata = metadata_example; // String | Comma-separated metadata fields, `all`, or `none`. Supported fields: version, branch, created, revised, resource, container, containerFeature, permission. Permission is the effective CDO permission at the selected branch point.
        String features = features_example; // String | Comma-separated feature names to include. Omitted features are excluded from serialization and traversal.

        try {
            Graph result = apiInstance.readObjectGraph(repository, objectId, branch, timestamp, depth, referenceDepth, collectionLimit, offset, metadata, features);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling GraphApi#readObjectGraph");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
GraphApi *apiInstance = [[GraphApi alloc] init];
String *repository = repository_example; // REST alias configured for one CDO repository. (default to null)
String *objectId = objectId_example; // Opaque CDO Object ID serialized by CDOIDUtil. (default to null)
String *branch = branch_example; // Branch path name. Defaults to the main branch. (optional) (default to null)
Long *timestamp = 789; // Historical branch point in milliseconds. Reads require repository auditing; future timestamps and writes are rejected. (optional) (default to null)
Integer *depth = 56; // Containment expansion depth. Containment edges at depth zero remain references. (optional) (default to null)
Integer *referenceDepth = 56; // Non-containment reference expansion depth. Reference edges at depth zero remain references. (optional) (default to null)
Integer *collectionLimit = 56; // Maximum values returned from each selected many-valued feature or folder listing. (optional) (default to null)
Integer *offset = 56; // Collection page offset applied to each selected many-valued feature and resource-folder listing. (optional) (default to null)
String *metadata = metadata_example; // Comma-separated metadata fields, `all`, or `none`. Supported fields: version, branch, created, revised, resource, container, containerFeature, permission. Permission is the effective CDO permission at the selected branch point. (optional) (default to version)
String *features = features_example; // Comma-separated feature names to include. Omitted features are excluded from serialization and traversal. (optional) (default to null)

// Read an object and the requested portion of its graph.
[apiInstance readObjectGraphWith:repository
    objectId:objectId
    branch:branch
    timestamp:timestamp
    depth:depth
    referenceDepth:referenceDepth
    collectionLimit:collectionLimit
    offset:offset
    metadata:metadata
    features:features
              completionHandler: ^(Graph output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var EclipseCdoGraphRestApi = require('eclipse_cdo_graph_rest_api');

// Create an instance of the API class
var api = new EclipseCdoGraphRestApi.GraphApi()
var repository = repository_example; // {String} REST alias configured for one CDO repository.
var objectId = objectId_example; // {String} Opaque CDO Object ID serialized by CDOIDUtil.
var opts = {
  'branch': branch_example, // {String} Branch path name. Defaults to the main branch.
  'timestamp': 789, // {Long} Historical branch point in milliseconds. Reads require repository auditing; future timestamps and writes are rejected.
  'depth': 56, // {Integer} Containment expansion depth. Containment edges at depth zero remain references.
  'referenceDepth': 56, // {Integer} Non-containment reference expansion depth. Reference edges at depth zero remain references.
  'collectionLimit': 56, // {Integer} Maximum values returned from each selected many-valued feature or folder listing.
  'offset': 56, // {Integer} Collection page offset applied to each selected many-valued feature and resource-folder listing.
  'metadata': metadata_example, // {String} Comma-separated metadata fields, `all`, or `none`. Supported fields: version, branch, created, revised, resource, container, containerFeature, permission. Permission is the effective CDO permission at the selected branch point.
  'features': features_example // {String} Comma-separated feature names to include. Omitted features are excluded from serialization and traversal.
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.readObjectGraph(repository, objectId, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

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

            // Create an instance of the API class
            var apiInstance = new GraphApi();
            var repository = repository_example;  // String | REST alias configured for one CDO repository. (default to null)
            var objectId = objectId_example;  // String | Opaque CDO Object ID serialized by CDOIDUtil. (default to null)
            var branch = branch_example;  // String | Branch path name. Defaults to the main branch. (optional)  (default to null)
            var timestamp = 789;  // Long | Historical branch point in milliseconds. Reads require repository auditing; future timestamps and writes are rejected. (optional)  (default to null)
            var depth = 56;  // Integer | Containment expansion depth. Containment edges at depth zero remain references. (optional)  (default to null)
            var referenceDepth = 56;  // Integer | Non-containment reference expansion depth. Reference edges at depth zero remain references. (optional)  (default to null)
            var collectionLimit = 56;  // Integer | Maximum values returned from each selected many-valued feature or folder listing. (optional)  (default to null)
            var offset = 56;  // Integer | Collection page offset applied to each selected many-valued feature and resource-folder listing. (optional)  (default to null)
            var metadata = metadata_example;  // String | Comma-separated metadata fields, `all`, or `none`. Supported fields: version, branch, created, revised, resource, container, containerFeature, permission. Permission is the effective CDO permission at the selected branch point. (optional)  (default to version)
            var features = features_example;  // String | Comma-separated feature names to include. Omitted features are excluded from serialization and traversal. (optional)  (default to null)

            try {
                // Read an object and the requested portion of its graph.
                Graph result = apiInstance.readObjectGraph(repository, objectId, branch, timestamp, depth, referenceDepth, collectionLimit, offset, metadata, features);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling GraphApi.readObjectGraph: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\GraphApi();
$repository = repository_example; // String | REST alias configured for one CDO repository.
$objectId = objectId_example; // String | Opaque CDO Object ID serialized by CDOIDUtil.
$branch = branch_example; // String | Branch path name. Defaults to the main branch.
$timestamp = 789; // Long | Historical branch point in milliseconds. Reads require repository auditing; future timestamps and writes are rejected.
$depth = 56; // Integer | Containment expansion depth. Containment edges at depth zero remain references.
$referenceDepth = 56; // Integer | Non-containment reference expansion depth. Reference edges at depth zero remain references.
$collectionLimit = 56; // Integer | Maximum values returned from each selected many-valued feature or folder listing.
$offset = 56; // Integer | Collection page offset applied to each selected many-valued feature and resource-folder listing.
$metadata = metadata_example; // String | Comma-separated metadata fields, `all`, or `none`. Supported fields: version, branch, created, revised, resource, container, containerFeature, permission. Permission is the effective CDO permission at the selected branch point.
$features = features_example; // String | Comma-separated feature names to include. Omitted features are excluded from serialization and traversal.

try {
    $result = $api_instance->readObjectGraph($repository, $objectId, $branch, $timestamp, $depth, $referenceDepth, $collectionLimit, $offset, $metadata, $features);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling GraphApi->readObjectGraph: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::GraphApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::GraphApi->new();
my $repository = repository_example; # String | REST alias configured for one CDO repository.
my $objectId = objectId_example; # String | Opaque CDO Object ID serialized by CDOIDUtil.
my $branch = branch_example; # String | Branch path name. Defaults to the main branch.
my $timestamp = 789; # Long | Historical branch point in milliseconds. Reads require repository auditing; future timestamps and writes are rejected.
my $depth = 56; # Integer | Containment expansion depth. Containment edges at depth zero remain references.
my $referenceDepth = 56; # Integer | Non-containment reference expansion depth. Reference edges at depth zero remain references.
my $collectionLimit = 56; # Integer | Maximum values returned from each selected many-valued feature or folder listing.
my $offset = 56; # Integer | Collection page offset applied to each selected many-valued feature and resource-folder listing.
my $metadata = metadata_example; # String | Comma-separated metadata fields, `all`, or `none`. Supported fields: version, branch, created, revised, resource, container, containerFeature, permission. Permission is the effective CDO permission at the selected branch point.
my $features = features_example; # String | Comma-separated feature names to include. Omitted features are excluded from serialization and traversal.

eval {
    my $result = $api_instance->readObjectGraph(repository => $repository, objectId => $objectId, branch => $branch, timestamp => $timestamp, depth => $depth, referenceDepth => $referenceDepth, collectionLimit => $collectionLimit, offset => $offset, metadata => $metadata, features => $features);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling GraphApi->readObjectGraph: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.GraphApi()
repository = repository_example # String | REST alias configured for one CDO repository. (default to null)
objectId = objectId_example # String | Opaque CDO Object ID serialized by CDOIDUtil. (default to null)
branch = branch_example # String | Branch path name. Defaults to the main branch. (optional) (default to null)
timestamp = 789 # Long | Historical branch point in milliseconds. Reads require repository auditing; future timestamps and writes are rejected. (optional) (default to null)
depth = 56 # Integer | Containment expansion depth. Containment edges at depth zero remain references. (optional) (default to null)
referenceDepth = 56 # Integer | Non-containment reference expansion depth. Reference edges at depth zero remain references. (optional) (default to null)
collectionLimit = 56 # Integer | Maximum values returned from each selected many-valued feature or folder listing. (optional) (default to null)
offset = 56 # Integer | Collection page offset applied to each selected many-valued feature and resource-folder listing. (optional) (default to null)
metadata = metadata_example # String | Comma-separated metadata fields, `all`, or `none`. Supported fields: version, branch, created, revised, resource, container, containerFeature, permission. Permission is the effective CDO permission at the selected branch point. (optional) (default to version)
features = features_example # String | Comma-separated feature names to include. Omitted features are excluded from serialization and traversal. (optional) (default to null)

try:
    # Read an object and the requested portion of its graph.
    api_response = api_instance.read_object_graph(repository, objectId, branch=branch, timestamp=timestamp, depth=depth, referenceDepth=referenceDepth, collectionLimit=collectionLimit, offset=offset, metadata=metadata, features=features)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling GraphApi->readObjectGraph: %s\n" % e)
extern crate GraphApi;

pub fn main() {
    let repository = repository_example; // String
    let objectId = objectId_example; // String
    let branch = branch_example; // String
    let timestamp = 789; // Long
    let depth = 56; // Integer
    let referenceDepth = 56; // Integer
    let collectionLimit = 56; // Integer
    let offset = 56; // Integer
    let metadata = metadata_example; // String
    let features = features_example; // String

    let mut context = GraphApi::Context::default();
    let result = client.readObjectGraph(repository, objectId, branch, timestamp, depth, referenceDepth, collectionLimit, offset, metadata, features, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
repository*
String
REST alias configured for one CDO repository.
Required
objectId*
String
Opaque CDO Object ID serialized by CDOIDUtil.
Required
Query parameters
Name Description
branch
String
Branch path name. Defaults to the main branch.
timestamp
Long (int64)
Historical branch point in milliseconds. Reads require repository auditing; future timestamps and writes are rejected.
depth
Integer
Containment expansion depth. Containment edges at depth zero remain references.
referenceDepth
Integer
Non-containment reference expansion depth. Reference edges at depth zero remain references.
collectionLimit
Integer
Maximum values returned from each selected many-valued feature or folder listing.
offset
Integer
Collection page offset applied to each selected many-valued feature and resource-folder listing.
metadata
String
Comma-separated metadata fields, `all`, or `none`. Supported fields: version, branch, created, revised, resource, container, containerFeature, permission. Permission is the effective CDO permission at the selected branch point.
features
String
Comma-separated feature names to include. Omitted features are excluded from serialization and traversal.

Responses

Name Type Format Description
WWW-Authenticate String Optional challenge supplied by the configured authenticator.


readResourceOrNamespace

Browse the CDO resource namespace or read a resource graph.


/api/cdo/v1/repositories/{repository}/resources

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json,application/problem+json" \
 "http://localhost/api/cdo/v1/repositories/{repository}/resources?path=path_example&branch=branch_example×tamp=789&depth=56&referenceDepth=56&collectionLimit=56&offset=56&metadata=metadata_example&features=features_example"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.GraphApi;

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

public class GraphApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        GraphApi apiInstance = new GraphApi();
        String repository = repository_example; // String | REST alias configured for one CDO repository.
        String path = path_example; // String | URL-encoded slash-separated HTTP path. Split on literal slashes before decoding each segment; keep structural slash separators unencoded. An encoded slash remains inside its segment.
        String branch = branch_example; // String | Branch path name. Defaults to the main branch.
        Long timestamp = 789; // Long | Historical branch point in milliseconds. Reads require repository auditing; future timestamps and writes are rejected.
        Integer depth = 56; // Integer | Containment expansion depth. Containment edges at depth zero remain references.
        Integer referenceDepth = 56; // Integer | Non-containment reference expansion depth. Reference edges at depth zero remain references.
        Integer collectionLimit = 56; // Integer | Maximum values returned from each selected many-valued feature or folder listing.
        Integer offset = 56; // Integer | Collection page offset applied to each selected many-valued feature and resource-folder listing.
        String metadata = metadata_example; // String | Comma-separated metadata fields, `all`, or `none`. Supported fields: version, branch, created, revised, resource, container, containerFeature, permission. Permission is the effective CDO permission at the selected branch point.
        String features = features_example; // String | Comma-separated feature names to include. Omitted features are excluded from serialization and traversal.

        try {
            readResourceOrNamespace_200_response result = apiInstance.readResourceOrNamespace(repository, path, branch, timestamp, depth, referenceDepth, collectionLimit, offset, metadata, features);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling GraphApi#readResourceOrNamespace");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final String repository = new String(); // String | REST alias configured for one CDO repository.
final String path = new String(); // String | URL-encoded slash-separated HTTP path. Split on literal slashes before decoding each segment; keep structural slash separators unencoded. An encoded slash remains inside its segment.
final String branch = new String(); // String | Branch path name. Defaults to the main branch.
final Long timestamp = new Long(); // Long | Historical branch point in milliseconds. Reads require repository auditing; future timestamps and writes are rejected.
final Integer depth = new Integer(); // Integer | Containment expansion depth. Containment edges at depth zero remain references.
final Integer referenceDepth = new Integer(); // Integer | Non-containment reference expansion depth. Reference edges at depth zero remain references.
final Integer collectionLimit = new Integer(); // Integer | Maximum values returned from each selected many-valued feature or folder listing.
final Integer offset = new Integer(); // Integer | Collection page offset applied to each selected many-valued feature and resource-folder listing.
final String metadata = new String(); // String | Comma-separated metadata fields, `all`, or `none`. Supported fields: version, branch, created, revised, resource, container, containerFeature, permission. Permission is the effective CDO permission at the selected branch point.
final String features = new String(); // String | Comma-separated feature names to include. Omitted features are excluded from serialization and traversal.

try {
    final result = await api_instance.readResourceOrNamespace(repository, path, branch, timestamp, depth, referenceDepth, collectionLimit, offset, metadata, features);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->readResourceOrNamespace: $e\n');
}

import org.openapitools.client.api.GraphApi;

public class GraphApiExample {
    public static void main(String[] args) {
        GraphApi apiInstance = new GraphApi();
        String repository = repository_example; // String | REST alias configured for one CDO repository.
        String path = path_example; // String | URL-encoded slash-separated HTTP path. Split on literal slashes before decoding each segment; keep structural slash separators unencoded. An encoded slash remains inside its segment.
        String branch = branch_example; // String | Branch path name. Defaults to the main branch.
        Long timestamp = 789; // Long | Historical branch point in milliseconds. Reads require repository auditing; future timestamps and writes are rejected.
        Integer depth = 56; // Integer | Containment expansion depth. Containment edges at depth zero remain references.
        Integer referenceDepth = 56; // Integer | Non-containment reference expansion depth. Reference edges at depth zero remain references.
        Integer collectionLimit = 56; // Integer | Maximum values returned from each selected many-valued feature or folder listing.
        Integer offset = 56; // Integer | Collection page offset applied to each selected many-valued feature and resource-folder listing.
        String metadata = metadata_example; // String | Comma-separated metadata fields, `all`, or `none`. Supported fields: version, branch, created, revised, resource, container, containerFeature, permission. Permission is the effective CDO permission at the selected branch point.
        String features = features_example; // String | Comma-separated feature names to include. Omitted features are excluded from serialization and traversal.

        try {
            readResourceOrNamespace_200_response result = apiInstance.readResourceOrNamespace(repository, path, branch, timestamp, depth, referenceDepth, collectionLimit, offset, metadata, features);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling GraphApi#readResourceOrNamespace");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
GraphApi *apiInstance = [[GraphApi alloc] init];
String *repository = repository_example; // REST alias configured for one CDO repository. (default to null)
String *path = path_example; // URL-encoded slash-separated HTTP path. Split on literal slashes before decoding each segment; keep structural slash separators unencoded. An encoded slash remains inside its segment. (optional) (default to null)
String *branch = branch_example; // Branch path name. Defaults to the main branch. (optional) (default to null)
Long *timestamp = 789; // Historical branch point in milliseconds. Reads require repository auditing; future timestamps and writes are rejected. (optional) (default to null)
Integer *depth = 56; // Containment expansion depth. Containment edges at depth zero remain references. (optional) (default to null)
Integer *referenceDepth = 56; // Non-containment reference expansion depth. Reference edges at depth zero remain references. (optional) (default to null)
Integer *collectionLimit = 56; // Maximum values returned from each selected many-valued feature or folder listing. (optional) (default to null)
Integer *offset = 56; // Collection page offset applied to each selected many-valued feature and resource-folder listing. (optional) (default to null)
String *metadata = metadata_example; // Comma-separated metadata fields, `all`, or `none`. Supported fields: version, branch, created, revised, resource, container, containerFeature, permission. Permission is the effective CDO permission at the selected branch point. (optional) (default to version)
String *features = features_example; // Comma-separated feature names to include. Omitted features are excluded from serialization and traversal. (optional) (default to null)

// Browse the CDO resource namespace or read a resource graph.
[apiInstance readResourceOrNamespaceWith:repository
    path:path
    branch:branch
    timestamp:timestamp
    depth:depth
    referenceDepth:referenceDepth
    collectionLimit:collectionLimit
    offset:offset
    metadata:metadata
    features:features
              completionHandler: ^(readResourceOrNamespace_200_response output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var EclipseCdoGraphRestApi = require('eclipse_cdo_graph_rest_api');

// Create an instance of the API class
var api = new EclipseCdoGraphRestApi.GraphApi()
var repository = repository_example; // {String} REST alias configured for one CDO repository.
var opts = {
  'path': path_example, // {String} URL-encoded slash-separated HTTP path. Split on literal slashes before decoding each segment; keep structural slash separators unencoded. An encoded slash remains inside its segment.
  'branch': branch_example, // {String} Branch path name. Defaults to the main branch.
  'timestamp': 789, // {Long} Historical branch point in milliseconds. Reads require repository auditing; future timestamps and writes are rejected.
  'depth': 56, // {Integer} Containment expansion depth. Containment edges at depth zero remain references.
  'referenceDepth': 56, // {Integer} Non-containment reference expansion depth. Reference edges at depth zero remain references.
  'collectionLimit': 56, // {Integer} Maximum values returned from each selected many-valued feature or folder listing.
  'offset': 56, // {Integer} Collection page offset applied to each selected many-valued feature and resource-folder listing.
  'metadata': metadata_example, // {String} Comma-separated metadata fields, `all`, or `none`. Supported fields: version, branch, created, revised, resource, container, containerFeature, permission. Permission is the effective CDO permission at the selected branch point.
  'features': features_example // {String} Comma-separated feature names to include. Omitted features are excluded from serialization and traversal.
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.readResourceOrNamespace(repository, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

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

            // Create an instance of the API class
            var apiInstance = new GraphApi();
            var repository = repository_example;  // String | REST alias configured for one CDO repository. (default to null)
            var path = path_example;  // String | URL-encoded slash-separated HTTP path. Split on literal slashes before decoding each segment; keep structural slash separators unencoded. An encoded slash remains inside its segment. (optional)  (default to null)
            var branch = branch_example;  // String | Branch path name. Defaults to the main branch. (optional)  (default to null)
            var timestamp = 789;  // Long | Historical branch point in milliseconds. Reads require repository auditing; future timestamps and writes are rejected. (optional)  (default to null)
            var depth = 56;  // Integer | Containment expansion depth. Containment edges at depth zero remain references. (optional)  (default to null)
            var referenceDepth = 56;  // Integer | Non-containment reference expansion depth. Reference edges at depth zero remain references. (optional)  (default to null)
            var collectionLimit = 56;  // Integer | Maximum values returned from each selected many-valued feature or folder listing. (optional)  (default to null)
            var offset = 56;  // Integer | Collection page offset applied to each selected many-valued feature and resource-folder listing. (optional)  (default to null)
            var metadata = metadata_example;  // String | Comma-separated metadata fields, `all`, or `none`. Supported fields: version, branch, created, revised, resource, container, containerFeature, permission. Permission is the effective CDO permission at the selected branch point. (optional)  (default to version)
            var features = features_example;  // String | Comma-separated feature names to include. Omitted features are excluded from serialization and traversal. (optional)  (default to null)

            try {
                // Browse the CDO resource namespace or read a resource graph.
                readResourceOrNamespace_200_response result = apiInstance.readResourceOrNamespace(repository, path, branch, timestamp, depth, referenceDepth, collectionLimit, offset, metadata, features);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling GraphApi.readResourceOrNamespace: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\GraphApi();
$repository = repository_example; // String | REST alias configured for one CDO repository.
$path = path_example; // String | URL-encoded slash-separated HTTP path. Split on literal slashes before decoding each segment; keep structural slash separators unencoded. An encoded slash remains inside its segment.
$branch = branch_example; // String | Branch path name. Defaults to the main branch.
$timestamp = 789; // Long | Historical branch point in milliseconds. Reads require repository auditing; future timestamps and writes are rejected.
$depth = 56; // Integer | Containment expansion depth. Containment edges at depth zero remain references.
$referenceDepth = 56; // Integer | Non-containment reference expansion depth. Reference edges at depth zero remain references.
$collectionLimit = 56; // Integer | Maximum values returned from each selected many-valued feature or folder listing.
$offset = 56; // Integer | Collection page offset applied to each selected many-valued feature and resource-folder listing.
$metadata = metadata_example; // String | Comma-separated metadata fields, `all`, or `none`. Supported fields: version, branch, created, revised, resource, container, containerFeature, permission. Permission is the effective CDO permission at the selected branch point.
$features = features_example; // String | Comma-separated feature names to include. Omitted features are excluded from serialization and traversal.

try {
    $result = $api_instance->readResourceOrNamespace($repository, $path, $branch, $timestamp, $depth, $referenceDepth, $collectionLimit, $offset, $metadata, $features);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling GraphApi->readResourceOrNamespace: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::GraphApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::GraphApi->new();
my $repository = repository_example; # String | REST alias configured for one CDO repository.
my $path = path_example; # String | URL-encoded slash-separated HTTP path. Split on literal slashes before decoding each segment; keep structural slash separators unencoded. An encoded slash remains inside its segment.
my $branch = branch_example; # String | Branch path name. Defaults to the main branch.
my $timestamp = 789; # Long | Historical branch point in milliseconds. Reads require repository auditing; future timestamps and writes are rejected.
my $depth = 56; # Integer | Containment expansion depth. Containment edges at depth zero remain references.
my $referenceDepth = 56; # Integer | Non-containment reference expansion depth. Reference edges at depth zero remain references.
my $collectionLimit = 56; # Integer | Maximum values returned from each selected many-valued feature or folder listing.
my $offset = 56; # Integer | Collection page offset applied to each selected many-valued feature and resource-folder listing.
my $metadata = metadata_example; # String | Comma-separated metadata fields, `all`, or `none`. Supported fields: version, branch, created, revised, resource, container, containerFeature, permission. Permission is the effective CDO permission at the selected branch point.
my $features = features_example; # String | Comma-separated feature names to include. Omitted features are excluded from serialization and traversal.

eval {
    my $result = $api_instance->readResourceOrNamespace(repository => $repository, path => $path, branch => $branch, timestamp => $timestamp, depth => $depth, referenceDepth => $referenceDepth, collectionLimit => $collectionLimit, offset => $offset, metadata => $metadata, features => $features);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling GraphApi->readResourceOrNamespace: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.GraphApi()
repository = repository_example # String | REST alias configured for one CDO repository. (default to null)
path = path_example # String | URL-encoded slash-separated HTTP path. Split on literal slashes before decoding each segment; keep structural slash separators unencoded. An encoded slash remains inside its segment. (optional) (default to null)
branch = branch_example # String | Branch path name. Defaults to the main branch. (optional) (default to null)
timestamp = 789 # Long | Historical branch point in milliseconds. Reads require repository auditing; future timestamps and writes are rejected. (optional) (default to null)
depth = 56 # Integer | Containment expansion depth. Containment edges at depth zero remain references. (optional) (default to null)
referenceDepth = 56 # Integer | Non-containment reference expansion depth. Reference edges at depth zero remain references. (optional) (default to null)
collectionLimit = 56 # Integer | Maximum values returned from each selected many-valued feature or folder listing. (optional) (default to null)
offset = 56 # Integer | Collection page offset applied to each selected many-valued feature and resource-folder listing. (optional) (default to null)
metadata = metadata_example # String | Comma-separated metadata fields, `all`, or `none`. Supported fields: version, branch, created, revised, resource, container, containerFeature, permission. Permission is the effective CDO permission at the selected branch point. (optional) (default to version)
features = features_example # String | Comma-separated feature names to include. Omitted features are excluded from serialization and traversal. (optional) (default to null)

try:
    # Browse the CDO resource namespace or read a resource graph.
    api_response = api_instance.read_resource_or_namespace(repository, path=path, branch=branch, timestamp=timestamp, depth=depth, referenceDepth=referenceDepth, collectionLimit=collectionLimit, offset=offset, metadata=metadata, features=features)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling GraphApi->readResourceOrNamespace: %s\n" % e)
extern crate GraphApi;

pub fn main() {
    let repository = repository_example; // String
    let path = path_example; // String
    let branch = branch_example; // String
    let timestamp = 789; // Long
    let depth = 56; // Integer
    let referenceDepth = 56; // Integer
    let collectionLimit = 56; // Integer
    let offset = 56; // Integer
    let metadata = metadata_example; // String
    let features = features_example; // String

    let mut context = GraphApi::Context::default();
    let result = client.readResourceOrNamespace(repository, path, branch, timestamp, depth, referenceDepth, collectionLimit, offset, metadata, features, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
repository*
String
REST alias configured for one CDO repository.
Required
Query parameters
Name Description
path
String
URL-encoded slash-separated HTTP path. Split on literal slashes before decoding each segment; keep structural slash separators unencoded. An encoded slash remains inside its segment.
branch
String
Branch path name. Defaults to the main branch.
timestamp
Long (int64)
Historical branch point in milliseconds. Reads require repository auditing; future timestamps and writes are rejected.
depth
Integer
Containment expansion depth. Containment edges at depth zero remain references.
referenceDepth
Integer
Non-containment reference expansion depth. Reference edges at depth zero remain references.
collectionLimit
Integer
Maximum values returned from each selected many-valued feature or folder listing.
offset
Integer
Collection page offset applied to each selected many-valued feature and resource-folder listing.
metadata
String
Comma-separated metadata fields, `all`, or `none`. Supported fields: version, branch, created, revised, resource, container, containerFeature, permission. Permission is the effective CDO permission at the selected branch point.
features
String
Comma-separated feature names to include. Omitted features are excluded from serialization and traversal.

Responses

Name Type Format Description
WWW-Authenticate String Optional challenge supplied by the configured authenticator.


readResourcePathGraph

Read a resource graph or resource folder by path.

The final path parameter may contain slash-separated resource namespace segments. Percent-encode a slash that is part of a resource name. The `path` query parameter on the base resources route is an alternative.


/api/cdo/v1/repositories/{repository}/resources/{resourcePath}

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json,application/problem+json" \
 "http://localhost/api/cdo/v1/repositories/{repository}/resources/{resourcePath}?branch=branch_example×tamp=789&depth=56&referenceDepth=56&collectionLimit=56&offset=56&metadata=metadata_example&features=features_example"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.GraphApi;

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

public class GraphApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        GraphApi apiInstance = new GraphApi();
        String repository = repository_example; // String | REST alias configured for one CDO repository.
        String resourcePath = resourcePath_example; // String | Encoded, slash-separated resource namespace path.
        String branch = branch_example; // String | Branch path name. Defaults to the main branch.
        Long timestamp = 789; // Long | Historical branch point in milliseconds. Reads require repository auditing; future timestamps and writes are rejected.
        Integer depth = 56; // Integer | Containment expansion depth. Containment edges at depth zero remain references.
        Integer referenceDepth = 56; // Integer | Non-containment reference expansion depth. Reference edges at depth zero remain references.
        Integer collectionLimit = 56; // Integer | Maximum values returned from each selected many-valued feature or folder listing.
        Integer offset = 56; // Integer | Collection page offset applied to each selected many-valued feature and resource-folder listing.
        String metadata = metadata_example; // String | Comma-separated metadata fields, `all`, or `none`. Supported fields: version, branch, created, revised, resource, container, containerFeature, permission. Permission is the effective CDO permission at the selected branch point.
        String features = features_example; // String | Comma-separated feature names to include. Omitted features are excluded from serialization and traversal.

        try {
            readResourceOrNamespace_200_response result = apiInstance.readResourcePathGraph(repository, resourcePath, branch, timestamp, depth, referenceDepth, collectionLimit, offset, metadata, features);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling GraphApi#readResourcePathGraph");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final String repository = new String(); // String | REST alias configured for one CDO repository.
final String resourcePath = new String(); // String | Encoded, slash-separated resource namespace path.
final String branch = new String(); // String | Branch path name. Defaults to the main branch.
final Long timestamp = new Long(); // Long | Historical branch point in milliseconds. Reads require repository auditing; future timestamps and writes are rejected.
final Integer depth = new Integer(); // Integer | Containment expansion depth. Containment edges at depth zero remain references.
final Integer referenceDepth = new Integer(); // Integer | Non-containment reference expansion depth. Reference edges at depth zero remain references.
final Integer collectionLimit = new Integer(); // Integer | Maximum values returned from each selected many-valued feature or folder listing.
final Integer offset = new Integer(); // Integer | Collection page offset applied to each selected many-valued feature and resource-folder listing.
final String metadata = new String(); // String | Comma-separated metadata fields, `all`, or `none`. Supported fields: version, branch, created, revised, resource, container, containerFeature, permission. Permission is the effective CDO permission at the selected branch point.
final String features = new String(); // String | Comma-separated feature names to include. Omitted features are excluded from serialization and traversal.

try {
    final result = await api_instance.readResourcePathGraph(repository, resourcePath, branch, timestamp, depth, referenceDepth, collectionLimit, offset, metadata, features);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->readResourcePathGraph: $e\n');
}

import org.openapitools.client.api.GraphApi;

public class GraphApiExample {
    public static void main(String[] args) {
        GraphApi apiInstance = new GraphApi();
        String repository = repository_example; // String | REST alias configured for one CDO repository.
        String resourcePath = resourcePath_example; // String | Encoded, slash-separated resource namespace path.
        String branch = branch_example; // String | Branch path name. Defaults to the main branch.
        Long timestamp = 789; // Long | Historical branch point in milliseconds. Reads require repository auditing; future timestamps and writes are rejected.
        Integer depth = 56; // Integer | Containment expansion depth. Containment edges at depth zero remain references.
        Integer referenceDepth = 56; // Integer | Non-containment reference expansion depth. Reference edges at depth zero remain references.
        Integer collectionLimit = 56; // Integer | Maximum values returned from each selected many-valued feature or folder listing.
        Integer offset = 56; // Integer | Collection page offset applied to each selected many-valued feature and resource-folder listing.
        String metadata = metadata_example; // String | Comma-separated metadata fields, `all`, or `none`. Supported fields: version, branch, created, revised, resource, container, containerFeature, permission. Permission is the effective CDO permission at the selected branch point.
        String features = features_example; // String | Comma-separated feature names to include. Omitted features are excluded from serialization and traversal.

        try {
            readResourceOrNamespace_200_response result = apiInstance.readResourcePathGraph(repository, resourcePath, branch, timestamp, depth, referenceDepth, collectionLimit, offset, metadata, features);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling GraphApi#readResourcePathGraph");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
GraphApi *apiInstance = [[GraphApi alloc] init];
String *repository = repository_example; // REST alias configured for one CDO repository. (default to null)
String *resourcePath = resourcePath_example; // Encoded, slash-separated resource namespace path. (default to null)
String *branch = branch_example; // Branch path name. Defaults to the main branch. (optional) (default to null)
Long *timestamp = 789; // Historical branch point in milliseconds. Reads require repository auditing; future timestamps and writes are rejected. (optional) (default to null)
Integer *depth = 56; // Containment expansion depth. Containment edges at depth zero remain references. (optional) (default to null)
Integer *referenceDepth = 56; // Non-containment reference expansion depth. Reference edges at depth zero remain references. (optional) (default to null)
Integer *collectionLimit = 56; // Maximum values returned from each selected many-valued feature or folder listing. (optional) (default to null)
Integer *offset = 56; // Collection page offset applied to each selected many-valued feature and resource-folder listing. (optional) (default to null)
String *metadata = metadata_example; // Comma-separated metadata fields, `all`, or `none`. Supported fields: version, branch, created, revised, resource, container, containerFeature, permission. Permission is the effective CDO permission at the selected branch point. (optional) (default to version)
String *features = features_example; // Comma-separated feature names to include. Omitted features are excluded from serialization and traversal. (optional) (default to null)

// Read a resource graph or resource folder by path.
[apiInstance readResourcePathGraphWith:repository
    resourcePath:resourcePath
    branch:branch
    timestamp:timestamp
    depth:depth
    referenceDepth:referenceDepth
    collectionLimit:collectionLimit
    offset:offset
    metadata:metadata
    features:features
              completionHandler: ^(readResourceOrNamespace_200_response output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var EclipseCdoGraphRestApi = require('eclipse_cdo_graph_rest_api');

// Create an instance of the API class
var api = new EclipseCdoGraphRestApi.GraphApi()
var repository = repository_example; // {String} REST alias configured for one CDO repository.
var resourcePath = resourcePath_example; // {String} Encoded, slash-separated resource namespace path.
var opts = {
  'branch': branch_example, // {String} Branch path name. Defaults to the main branch.
  'timestamp': 789, // {Long} Historical branch point in milliseconds. Reads require repository auditing; future timestamps and writes are rejected.
  'depth': 56, // {Integer} Containment expansion depth. Containment edges at depth zero remain references.
  'referenceDepth': 56, // {Integer} Non-containment reference expansion depth. Reference edges at depth zero remain references.
  'collectionLimit': 56, // {Integer} Maximum values returned from each selected many-valued feature or folder listing.
  'offset': 56, // {Integer} Collection page offset applied to each selected many-valued feature and resource-folder listing.
  'metadata': metadata_example, // {String} Comma-separated metadata fields, `all`, or `none`. Supported fields: version, branch, created, revised, resource, container, containerFeature, permission. Permission is the effective CDO permission at the selected branch point.
  'features': features_example // {String} Comma-separated feature names to include. Omitted features are excluded from serialization and traversal.
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.readResourcePathGraph(repository, resourcePath, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

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

            // Create an instance of the API class
            var apiInstance = new GraphApi();
            var repository = repository_example;  // String | REST alias configured for one CDO repository. (default to null)
            var resourcePath = resourcePath_example;  // String | Encoded, slash-separated resource namespace path. (default to null)
            var branch = branch_example;  // String | Branch path name. Defaults to the main branch. (optional)  (default to null)
            var timestamp = 789;  // Long | Historical branch point in milliseconds. Reads require repository auditing; future timestamps and writes are rejected. (optional)  (default to null)
            var depth = 56;  // Integer | Containment expansion depth. Containment edges at depth zero remain references. (optional)  (default to null)
            var referenceDepth = 56;  // Integer | Non-containment reference expansion depth. Reference edges at depth zero remain references. (optional)  (default to null)
            var collectionLimit = 56;  // Integer | Maximum values returned from each selected many-valued feature or folder listing. (optional)  (default to null)
            var offset = 56;  // Integer | Collection page offset applied to each selected many-valued feature and resource-folder listing. (optional)  (default to null)
            var metadata = metadata_example;  // String | Comma-separated metadata fields, `all`, or `none`. Supported fields: version, branch, created, revised, resource, container, containerFeature, permission. Permission is the effective CDO permission at the selected branch point. (optional)  (default to version)
            var features = features_example;  // String | Comma-separated feature names to include. Omitted features are excluded from serialization and traversal. (optional)  (default to null)

            try {
                // Read a resource graph or resource folder by path.
                readResourceOrNamespace_200_response result = apiInstance.readResourcePathGraph(repository, resourcePath, branch, timestamp, depth, referenceDepth, collectionLimit, offset, metadata, features);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling GraphApi.readResourcePathGraph: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\GraphApi();
$repository = repository_example; // String | REST alias configured for one CDO repository.
$resourcePath = resourcePath_example; // String | Encoded, slash-separated resource namespace path.
$branch = branch_example; // String | Branch path name. Defaults to the main branch.
$timestamp = 789; // Long | Historical branch point in milliseconds. Reads require repository auditing; future timestamps and writes are rejected.
$depth = 56; // Integer | Containment expansion depth. Containment edges at depth zero remain references.
$referenceDepth = 56; // Integer | Non-containment reference expansion depth. Reference edges at depth zero remain references.
$collectionLimit = 56; // Integer | Maximum values returned from each selected many-valued feature or folder listing.
$offset = 56; // Integer | Collection page offset applied to each selected many-valued feature and resource-folder listing.
$metadata = metadata_example; // String | Comma-separated metadata fields, `all`, or `none`. Supported fields: version, branch, created, revised, resource, container, containerFeature, permission. Permission is the effective CDO permission at the selected branch point.
$features = features_example; // String | Comma-separated feature names to include. Omitted features are excluded from serialization and traversal.

try {
    $result = $api_instance->readResourcePathGraph($repository, $resourcePath, $branch, $timestamp, $depth, $referenceDepth, $collectionLimit, $offset, $metadata, $features);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling GraphApi->readResourcePathGraph: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::GraphApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::GraphApi->new();
my $repository = repository_example; # String | REST alias configured for one CDO repository.
my $resourcePath = resourcePath_example; # String | Encoded, slash-separated resource namespace path.
my $branch = branch_example; # String | Branch path name. Defaults to the main branch.
my $timestamp = 789; # Long | Historical branch point in milliseconds. Reads require repository auditing; future timestamps and writes are rejected.
my $depth = 56; # Integer | Containment expansion depth. Containment edges at depth zero remain references.
my $referenceDepth = 56; # Integer | Non-containment reference expansion depth. Reference edges at depth zero remain references.
my $collectionLimit = 56; # Integer | Maximum values returned from each selected many-valued feature or folder listing.
my $offset = 56; # Integer | Collection page offset applied to each selected many-valued feature and resource-folder listing.
my $metadata = metadata_example; # String | Comma-separated metadata fields, `all`, or `none`. Supported fields: version, branch, created, revised, resource, container, containerFeature, permission. Permission is the effective CDO permission at the selected branch point.
my $features = features_example; # String | Comma-separated feature names to include. Omitted features are excluded from serialization and traversal.

eval {
    my $result = $api_instance->readResourcePathGraph(repository => $repository, resourcePath => $resourcePath, branch => $branch, timestamp => $timestamp, depth => $depth, referenceDepth => $referenceDepth, collectionLimit => $collectionLimit, offset => $offset, metadata => $metadata, features => $features);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling GraphApi->readResourcePathGraph: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.GraphApi()
repository = repository_example # String | REST alias configured for one CDO repository. (default to null)
resourcePath = resourcePath_example # String | Encoded, slash-separated resource namespace path. (default to null)
branch = branch_example # String | Branch path name. Defaults to the main branch. (optional) (default to null)
timestamp = 789 # Long | Historical branch point in milliseconds. Reads require repository auditing; future timestamps and writes are rejected. (optional) (default to null)
depth = 56 # Integer | Containment expansion depth. Containment edges at depth zero remain references. (optional) (default to null)
referenceDepth = 56 # Integer | Non-containment reference expansion depth. Reference edges at depth zero remain references. (optional) (default to null)
collectionLimit = 56 # Integer | Maximum values returned from each selected many-valued feature or folder listing. (optional) (default to null)
offset = 56 # Integer | Collection page offset applied to each selected many-valued feature and resource-folder listing. (optional) (default to null)
metadata = metadata_example # String | Comma-separated metadata fields, `all`, or `none`. Supported fields: version, branch, created, revised, resource, container, containerFeature, permission. Permission is the effective CDO permission at the selected branch point. (optional) (default to version)
features = features_example # String | Comma-separated feature names to include. Omitted features are excluded from serialization and traversal. (optional) (default to null)

try:
    # Read a resource graph or resource folder by path.
    api_response = api_instance.read_resource_path_graph(repository, resourcePath, branch=branch, timestamp=timestamp, depth=depth, referenceDepth=referenceDepth, collectionLimit=collectionLimit, offset=offset, metadata=metadata, features=features)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling GraphApi->readResourcePathGraph: %s\n" % e)
extern crate GraphApi;

pub fn main() {
    let repository = repository_example; // String
    let resourcePath = resourcePath_example; // String
    let branch = branch_example; // String
    let timestamp = 789; // Long
    let depth = 56; // Integer
    let referenceDepth = 56; // Integer
    let collectionLimit = 56; // Integer
    let offset = 56; // Integer
    let metadata = metadata_example; // String
    let features = features_example; // String

    let mut context = GraphApi::Context::default();
    let result = client.readResourcePathGraph(repository, resourcePath, branch, timestamp, depth, referenceDepth, collectionLimit, offset, metadata, features, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
repository*
String
REST alias configured for one CDO repository.
Required
resourcePath*
String
Encoded, slash-separated resource namespace path.
Required
Query parameters
Name Description
branch
String
Branch path name. Defaults to the main branch.
timestamp
Long (int64)
Historical branch point in milliseconds. Reads require repository auditing; future timestamps and writes are rejected.
depth
Integer
Containment expansion depth. Containment edges at depth zero remain references.
referenceDepth
Integer
Non-containment reference expansion depth. Reference edges at depth zero remain references.
collectionLimit
Integer
Maximum values returned from each selected many-valued feature or folder listing.
offset
Integer
Collection page offset applied to each selected many-valued feature and resource-folder listing.
metadata
String
Comma-separated metadata fields, `all`, or `none`. Supported fields: version, branch, created, revised, resource, container, containerFeature, permission. Permission is the effective CDO permission at the selected branch point.
features
String
Comma-separated feature names to include. Omitted features are excluded from serialization and traversal.

Responses

Name Type Format Description
WWW-Authenticate String Optional challenge supplied by the configured authenticator.


Repositories

listRepositories

List REST-visible repositories.

Repository listing requires provider enumeration. A lookup-only provider can serve direct repository routes but returns 501 here.


/api/cdo/v1/repositories

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json,application/problem+json" \
 "http://localhost/api/cdo/v1/repositories"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.RepositoriesApi;

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

public class RepositoriesApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        RepositoriesApi apiInstance = new RepositoriesApi();

        try {
            listRepositories_200_response result = apiInstance.listRepositories();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RepositoriesApi#listRepositories");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();


try {
    final result = await api_instance.listRepositories();
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->listRepositories: $e\n');
}

import org.openapitools.client.api.RepositoriesApi;

public class RepositoriesApiExample {
    public static void main(String[] args) {
        RepositoriesApi apiInstance = new RepositoriesApi();

        try {
            listRepositories_200_response result = apiInstance.listRepositories();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RepositoriesApi#listRepositories");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
RepositoriesApi *apiInstance = [[RepositoriesApi alloc] init];

// List REST-visible repositories.
[apiInstance listRepositoriesWithCompletionHandler: 
              ^(listRepositories_200_response output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var EclipseCdoGraphRestApi = require('eclipse_cdo_graph_rest_api');

// Create an instance of the API class
var api = new EclipseCdoGraphRestApi.RepositoriesApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.listRepositories(callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

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

            // Create an instance of the API class
            var apiInstance = new RepositoriesApi();

            try {
                // List REST-visible repositories.
                listRepositories_200_response result = apiInstance.listRepositories();
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling RepositoriesApi.listRepositories: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\RepositoriesApi();

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::RepositoriesApi->new();

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

# Create an instance of the API class
api_instance = openapi_client.RepositoriesApi()

try:
    # List REST-visible repositories.
    api_response = api_instance.list_repositories()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling RepositoriesApi->listRepositories: %s\n" % e)
extern crate RepositoriesApi;

pub fn main() {

    let mut context = RepositoriesApi::Context::default();
    let result = client.listRepositories(&context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Responses