Model Management Service

Artifact

deleteArtifact

Delete artifact


/projects/{project_id}/refs/{ref_id}/artifacts/{artifact_id}

Usage and SDK Samples

curl -X DELETE -H "Authorization: Basic [[basicHash]]" "https://localhost/alfresco/service/projects/{project_id}/refs/{ref_id}/artifacts/{artifact_id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ArtifactApi;

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

public class ArtifactApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure HTTP basic authorization: Basic
        HttpBasicAuth Basic = (HttpBasicAuth) defaultClient.getAuthentication("Basic");
        Basic.setUsername("YOUR USERNAME");
        Basic.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Ticket
        ApiKeyAuth Ticket = (ApiKeyAuth) defaultClient.getAuthentication("Ticket");
        Ticket.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Ticket.setApiKeyPrefix("Token");

        ArtifactApi apiInstance = new ArtifactApi();
        String projectId = projectId_example; // String | project identifier
        String refId = refId_example; // String | ref identifier
        String artifactId = artifactId_example; // String | artifact identifier
        try {
            Artifacts result = apiInstance.deleteArtifact(projectId, refId, artifactId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ArtifactApi#deleteArtifact");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ArtifactApi;

public class ArtifactApiExample {

    public static void main(String[] args) {
        ArtifactApi apiInstance = new ArtifactApi();
        String projectId = projectId_example; // String | project identifier
        String refId = refId_example; // String | ref identifier
        String artifactId = artifactId_example; // String | artifact identifier
        try {
            Artifacts result = apiInstance.deleteArtifact(projectId, refId, artifactId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ArtifactApi#deleteArtifact");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: Basic)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];

// Configure API key authorization: (authentication scheme: Ticket)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"alf_ticket"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"alf_ticket"];

String *projectId = projectId_example; // project identifier
String *refId = refId_example; // ref identifier
String *artifactId = artifactId_example; // artifact identifier

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

// Delete artifact
[apiInstance deleteArtifactWith:projectId
    refId:refId
    artifactId:artifactId
              completionHandler: ^(Artifacts output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ModelManagementService = require('model_management_service');
var defaultClient = ModelManagementService.ApiClient.instance;

// Configure HTTP basic authorization: Basic
var Basic = defaultClient.authentications['Basic'];
Basic.username = 'YOUR USERNAME'
Basic.password = 'YOUR PASSWORD'

// Configure API key authorization: Ticket
var Ticket = defaultClient.authentications['Ticket'];
Ticket.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Ticket.apiKeyPrefix['alf_ticket'] = "Token"

var api = new ModelManagementService.ArtifactApi()

var projectId = projectId_example; // {String} project identifier

var refId = refId_example; // {String} ref identifier

var artifactId = artifactId_example; // {String} artifact identifier


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

namespace Example
{
    public class deleteArtifactExample
    {
        public void main()
        {
            
            // Configure HTTP basic authorization: Basic
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Ticket
            Configuration.Default.ApiKey.Add("alf_ticket", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("alf_ticket", "Bearer");

            var apiInstance = new ArtifactApi();
            var projectId = projectId_example;  // String | project identifier
            var refId = refId_example;  // String | ref identifier
            var artifactId = artifactId_example;  // String | artifact identifier

            try
            {
                // Delete artifact
                Artifacts result = apiInstance.deleteArtifact(projectId, refId, artifactId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ArtifactApi.deleteArtifact: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure HTTP basic authorization: Basic
Swagger\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Swagger\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');
// Configure API key authorization: Ticket
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('alf_ticket', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('alf_ticket', 'Bearer');

$api_instance = new Swagger\Client\Api\ArtifactApi();
$projectId = projectId_example; // String | project identifier
$refId = refId_example; // String | ref identifier
$artifactId = artifactId_example; // String | artifact identifier

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

# Configure HTTP basic authorization: Basic
$WWW::SwaggerClient::Configuration::username = 'YOUR_USERNAME';
$WWW::SwaggerClient::Configuration::password = 'YOUR_PASSWORD';
# Configure API key authorization: Ticket
$WWW::SwaggerClient::Configuration::api_key->{'alf_ticket'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'alf_ticket'} = "Bearer";

my $api_instance = WWW::SwaggerClient::ArtifactApi->new();
my $projectId = projectId_example; # String | project identifier
my $refId = refId_example; # String | ref identifier
my $artifactId = artifactId_example; # String | artifact identifier

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

# Configure HTTP basic authorization: Basic
swagger_client.configuration.username = 'YOUR_USERNAME'
swagger_client.configuration.password = 'YOUR_PASSWORD'
# Configure API key authorization: Ticket
swagger_client.configuration.api_key['alf_ticket'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['alf_ticket'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.ArtifactApi()
projectId = projectId_example # String | project identifier
refId = refId_example # String | ref identifier
artifactId = artifactId_example # String | artifact identifier

try: 
    # Delete artifact
    api_response = api_instance.delete_artifact(projectId, refId, artifactId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ArtifactApi->deleteArtifact: %s\n" % e)

Parameters

Path parameters
Name Description
project_id*
String
project identifier
Required
ref_id*
String
ref identifier
Required
artifact_id*
String
artifact identifier
Required

Responses

Status: 200 - OK

Status: 401 - Unauthorized

Status: 403 - Forbidden

Status: 404 - The specified resource was not found

Status: 500 - Internal server error

Status: default - Unknown


deleteArtifactsInBatch

Delete artifact(s) in batch


/projects/{project_id}/refs/{ref_id}/artifacts

Usage and SDK Samples

curl -X DELETE -H "Authorization: Basic [[basicHash]]" "https://localhost/alfresco/service/projects/{project_id}/refs/{ref_id}/artifacts"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ArtifactApi;

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

public class ArtifactApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure HTTP basic authorization: Basic
        HttpBasicAuth Basic = (HttpBasicAuth) defaultClient.getAuthentication("Basic");
        Basic.setUsername("YOUR USERNAME");
        Basic.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Ticket
        ApiKeyAuth Ticket = (ApiKeyAuth) defaultClient.getAuthentication("Ticket");
        Ticket.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Ticket.setApiKeyPrefix("Token");

        ArtifactApi apiInstance = new ArtifactApi();
        String projectId = projectId_example; // String | project identifier
        String refId = refId_example; // String | ref identifier
        Artifacts body = ; // Artifacts | 
        try {
            Artifacts result = apiInstance.deleteArtifactsInBatch(projectId, refId, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ArtifactApi#deleteArtifactsInBatch");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ArtifactApi;

public class ArtifactApiExample {

    public static void main(String[] args) {
        ArtifactApi apiInstance = new ArtifactApi();
        String projectId = projectId_example; // String | project identifier
        String refId = refId_example; // String | ref identifier
        Artifacts body = ; // Artifacts | 
        try {
            Artifacts result = apiInstance.deleteArtifactsInBatch(projectId, refId, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ArtifactApi#deleteArtifactsInBatch");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: Basic)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];

// Configure API key authorization: (authentication scheme: Ticket)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"alf_ticket"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"alf_ticket"];

String *projectId = projectId_example; // project identifier
String *refId = refId_example; // ref identifier
Artifacts *body = ; // 

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

// Delete artifact(s) in batch
[apiInstance deleteArtifactsInBatchWith:projectId
    refId:refId
    body:body
              completionHandler: ^(Artifacts output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ModelManagementService = require('model_management_service');
var defaultClient = ModelManagementService.ApiClient.instance;

// Configure HTTP basic authorization: Basic
var Basic = defaultClient.authentications['Basic'];
Basic.username = 'YOUR USERNAME'
Basic.password = 'YOUR PASSWORD'

// Configure API key authorization: Ticket
var Ticket = defaultClient.authentications['Ticket'];
Ticket.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Ticket.apiKeyPrefix['alf_ticket'] = "Token"

var api = new ModelManagementService.ArtifactApi()

var projectId = projectId_example; // {String} project identifier

var refId = refId_example; // {String} ref identifier

var body = ; // {Artifacts} 


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

namespace Example
{
    public class deleteArtifactsInBatchExample
    {
        public void main()
        {
            
            // Configure HTTP basic authorization: Basic
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Ticket
            Configuration.Default.ApiKey.Add("alf_ticket", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("alf_ticket", "Bearer");

            var apiInstance = new ArtifactApi();
            var projectId = projectId_example;  // String | project identifier
            var refId = refId_example;  // String | ref identifier
            var body = new Artifacts(); // Artifacts | 

            try
            {
                // Delete artifact(s) in batch
                Artifacts result = apiInstance.deleteArtifactsInBatch(projectId, refId, body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ArtifactApi.deleteArtifactsInBatch: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure HTTP basic authorization: Basic
Swagger\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Swagger\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');
// Configure API key authorization: Ticket
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('alf_ticket', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('alf_ticket', 'Bearer');

$api_instance = new Swagger\Client\Api\ArtifactApi();
$projectId = projectId_example; // String | project identifier
$refId = refId_example; // String | ref identifier
$body = ; // Artifacts | 

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

# Configure HTTP basic authorization: Basic
$WWW::SwaggerClient::Configuration::username = 'YOUR_USERNAME';
$WWW::SwaggerClient::Configuration::password = 'YOUR_PASSWORD';
# Configure API key authorization: Ticket
$WWW::SwaggerClient::Configuration::api_key->{'alf_ticket'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'alf_ticket'} = "Bearer";

my $api_instance = WWW::SwaggerClient::ArtifactApi->new();
my $projectId = projectId_example; # String | project identifier
my $refId = refId_example; # String | ref identifier
my $body = WWW::SwaggerClient::Object::Artifacts->new(); # Artifacts | 

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

# Configure HTTP basic authorization: Basic
swagger_client.configuration.username = 'YOUR_USERNAME'
swagger_client.configuration.password = 'YOUR_PASSWORD'
# Configure API key authorization: Ticket
swagger_client.configuration.api_key['alf_ticket'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['alf_ticket'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.ArtifactApi()
projectId = projectId_example # String | project identifier
refId = refId_example # String | ref identifier
body =  # Artifacts | 

try: 
    # Delete artifact(s) in batch
    api_response = api_instance.delete_artifacts_in_batch(projectId, refId, body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ArtifactApi->deleteArtifactsInBatch: %s\n" % e)

Parameters

Path parameters
Name Description
project_id*
String
project identifier
Required
ref_id*
String
ref identifier
Required
Body parameters
Name Description
body *

Responses

Status: 200 - OK

Status: 401 - Unauthorized

Status: 403 - Forbidden

Status: 404 - The specified resource was not found

Status: 500 - Internal server error

Status: default - Unknown


getArtifact

Get artifact


/projects/{project_id}/refs/{ref_id}/artifacts/{artifact_id}

Usage and SDK Samples

curl -X GET -H "Authorization: Basic [[basicHash]]" "https://localhost/alfresco/service/projects/{project_id}/refs/{ref_id}/artifacts/{artifact_id}?depth=&extended=&commitId="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ArtifactApi;

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

public class ArtifactApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure HTTP basic authorization: Basic
        HttpBasicAuth Basic = (HttpBasicAuth) defaultClient.getAuthentication("Basic");
        Basic.setUsername("YOUR USERNAME");
        Basic.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Ticket
        ApiKeyAuth Ticket = (ApiKeyAuth) defaultClient.getAuthentication("Ticket");
        Ticket.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Ticket.setApiKeyPrefix("Token");

        ArtifactApi apiInstance = new ArtifactApi();
        String projectId = projectId_example; // String | project identifier
        String refId = refId_example; // String | ref identifier
        String artifactId = artifactId_example; // String | artifact identifier
        Integer depth = 56; // Integer | 
        Boolean extended = true; // Boolean | 
        String commitId = commitId_example; // String | 
        try {
            Artifacts result = apiInstance.getArtifact(projectId, refId, artifactId, depth, extended, commitId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ArtifactApi#getArtifact");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ArtifactApi;

public class ArtifactApiExample {

    public static void main(String[] args) {
        ArtifactApi apiInstance = new ArtifactApi();
        String projectId = projectId_example; // String | project identifier
        String refId = refId_example; // String | ref identifier
        String artifactId = artifactId_example; // String | artifact identifier
        Integer depth = 56; // Integer | 
        Boolean extended = true; // Boolean | 
        String commitId = commitId_example; // String | 
        try {
            Artifacts result = apiInstance.getArtifact(projectId, refId, artifactId, depth, extended, commitId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ArtifactApi#getArtifact");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: Basic)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];

// Configure API key authorization: (authentication scheme: Ticket)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"alf_ticket"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"alf_ticket"];

String *projectId = projectId_example; // project identifier
String *refId = refId_example; // ref identifier
String *artifactId = artifactId_example; // artifact identifier
Integer *depth = 56; //  (optional)
Boolean *extended = true; //  (optional)
String *commitId = commitId_example; //  (optional)

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

// Get artifact
[apiInstance getArtifactWith:projectId
    refId:refId
    artifactId:artifactId
    depth:depth
    extended:extended
    commitId:commitId
              completionHandler: ^(Artifacts output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ModelManagementService = require('model_management_service');
var defaultClient = ModelManagementService.ApiClient.instance;

// Configure HTTP basic authorization: Basic
var Basic = defaultClient.authentications['Basic'];
Basic.username = 'YOUR USERNAME'
Basic.password = 'YOUR PASSWORD'

// Configure API key authorization: Ticket
var Ticket = defaultClient.authentications['Ticket'];
Ticket.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Ticket.apiKeyPrefix['alf_ticket'] = "Token"

var api = new ModelManagementService.ArtifactApi()

var projectId = projectId_example; // {String} project identifier

var refId = refId_example; // {String} ref identifier

var artifactId = artifactId_example; // {String} artifact identifier

var opts = { 
  'depth': 56, // {Integer} 
  'extended': true, // {Boolean} 
  'commitId': commitId_example // {String} 
};

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

namespace Example
{
    public class getArtifactExample
    {
        public void main()
        {
            
            // Configure HTTP basic authorization: Basic
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Ticket
            Configuration.Default.ApiKey.Add("alf_ticket", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("alf_ticket", "Bearer");

            var apiInstance = new ArtifactApi();
            var projectId = projectId_example;  // String | project identifier
            var refId = refId_example;  // String | ref identifier
            var artifactId = artifactId_example;  // String | artifact identifier
            var depth = 56;  // Integer |  (optional) 
            var extended = true;  // Boolean |  (optional) 
            var commitId = commitId_example;  // String |  (optional) 

            try
            {
                // Get artifact
                Artifacts result = apiInstance.getArtifact(projectId, refId, artifactId, depth, extended, commitId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ArtifactApi.getArtifact: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure HTTP basic authorization: Basic
Swagger\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Swagger\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');
// Configure API key authorization: Ticket
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('alf_ticket', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('alf_ticket', 'Bearer');

$api_instance = new Swagger\Client\Api\ArtifactApi();
$projectId = projectId_example; // String | project identifier
$refId = refId_example; // String | ref identifier
$artifactId = artifactId_example; // String | artifact identifier
$depth = 56; // Integer | 
$extended = true; // Boolean | 
$commitId = commitId_example; // String | 

try {
    $result = $api_instance->getArtifact($projectId, $refId, $artifactId, $depth, $extended, $commitId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ArtifactApi->getArtifact: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ArtifactApi;

# Configure HTTP basic authorization: Basic
$WWW::SwaggerClient::Configuration::username = 'YOUR_USERNAME';
$WWW::SwaggerClient::Configuration::password = 'YOUR_PASSWORD';
# Configure API key authorization: Ticket
$WWW::SwaggerClient::Configuration::api_key->{'alf_ticket'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'alf_ticket'} = "Bearer";

my $api_instance = WWW::SwaggerClient::ArtifactApi->new();
my $projectId = projectId_example; # String | project identifier
my $refId = refId_example; # String | ref identifier
my $artifactId = artifactId_example; # String | artifact identifier
my $depth = 56; # Integer | 
my $extended = true; # Boolean | 
my $commitId = commitId_example; # String | 

eval { 
    my $result = $api_instance->getArtifact(projectId => $projectId, refId => $refId, artifactId => $artifactId, depth => $depth, extended => $extended, commitId => $commitId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ArtifactApi->getArtifact: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure HTTP basic authorization: Basic
swagger_client.configuration.username = 'YOUR_USERNAME'
swagger_client.configuration.password = 'YOUR_PASSWORD'
# Configure API key authorization: Ticket
swagger_client.configuration.api_key['alf_ticket'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['alf_ticket'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.ArtifactApi()
projectId = projectId_example # String | project identifier
refId = refId_example # String | ref identifier
artifactId = artifactId_example # String | artifact identifier
depth = 56 # Integer |  (optional)
extended = true # Boolean |  (optional)
commitId = commitId_example # String |  (optional)

try: 
    # Get artifact
    api_response = api_instance.get_artifact(projectId, refId, artifactId, depth=depth, extended=extended, commitId=commitId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ArtifactApi->getArtifact: %s\n" % e)

Parameters

Path parameters
Name Description
project_id*
String
project identifier
Required
ref_id*
String
ref identifier
Required
artifact_id*
String
artifact identifier
Required
Query parameters
Name Description
depth
Integer
extended
Boolean
commitId
String

Responses

Status: 200 - OK

Status: 401 - Unauthorized

Status: 403 - Forbidden

Status: 404 - The specified resource was not found

Status: 500 - Internal server error

Status: default - Unknown


getArtifactHistory

Get artifact history


/projects/{project_id}/refs/{ref_id}/artifacts/{artifact_id}/commits

Usage and SDK Samples

curl -X GET -H "Authorization: Basic [[basicHash]]" "https://localhost/alfresco/service/projects/{project_id}/refs/{ref_id}/artifacts/{artifact_id}/commits"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ArtifactApi;

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

public class ArtifactApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure HTTP basic authorization: Basic
        HttpBasicAuth Basic = (HttpBasicAuth) defaultClient.getAuthentication("Basic");
        Basic.setUsername("YOUR USERNAME");
        Basic.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Ticket
        ApiKeyAuth Ticket = (ApiKeyAuth) defaultClient.getAuthentication("Ticket");
        Ticket.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Ticket.setApiKeyPrefix("Token");

        ArtifactApi apiInstance = new ArtifactApi();
        String projectId = projectId_example; // String | project identifier
        String refId = refId_example; // String | ref identifier
        String artifactId = artifactId_example; // String | artifact identifier
        try {
            Commits result = apiInstance.getArtifactHistory(projectId, refId, artifactId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ArtifactApi#getArtifactHistory");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ArtifactApi;

public class ArtifactApiExample {

    public static void main(String[] args) {
        ArtifactApi apiInstance = new ArtifactApi();
        String projectId = projectId_example; // String | project identifier
        String refId = refId_example; // String | ref identifier
        String artifactId = artifactId_example; // String | artifact identifier
        try {
            Commits result = apiInstance.getArtifactHistory(projectId, refId, artifactId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ArtifactApi#getArtifactHistory");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: Basic)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];

// Configure API key authorization: (authentication scheme: Ticket)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"alf_ticket"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"alf_ticket"];

String *projectId = projectId_example; // project identifier
String *refId = refId_example; // ref identifier
String *artifactId = artifactId_example; // artifact identifier

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

// Get artifact history
[apiInstance getArtifactHistoryWith:projectId
    refId:refId
    artifactId:artifactId
              completionHandler: ^(Commits output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ModelManagementService = require('model_management_service');
var defaultClient = ModelManagementService.ApiClient.instance;

// Configure HTTP basic authorization: Basic
var Basic = defaultClient.authentications['Basic'];
Basic.username = 'YOUR USERNAME'
Basic.password = 'YOUR PASSWORD'

// Configure API key authorization: Ticket
var Ticket = defaultClient.authentications['Ticket'];
Ticket.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Ticket.apiKeyPrefix['alf_ticket'] = "Token"

var api = new ModelManagementService.ArtifactApi()

var projectId = projectId_example; // {String} project identifier

var refId = refId_example; // {String} ref identifier

var artifactId = artifactId_example; // {String} artifact identifier


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

namespace Example
{
    public class getArtifactHistoryExample
    {
        public void main()
        {
            
            // Configure HTTP basic authorization: Basic
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Ticket
            Configuration.Default.ApiKey.Add("alf_ticket", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("alf_ticket", "Bearer");

            var apiInstance = new ArtifactApi();
            var projectId = projectId_example;  // String | project identifier
            var refId = refId_example;  // String | ref identifier
            var artifactId = artifactId_example;  // String | artifact identifier

            try
            {
                // Get artifact history
                Commits result = apiInstance.getArtifactHistory(projectId, refId, artifactId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ArtifactApi.getArtifactHistory: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure HTTP basic authorization: Basic
Swagger\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Swagger\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');
// Configure API key authorization: Ticket
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('alf_ticket', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('alf_ticket', 'Bearer');

$api_instance = new Swagger\Client\Api\ArtifactApi();
$projectId = projectId_example; // String | project identifier
$refId = refId_example; // String | ref identifier
$artifactId = artifactId_example; // String | artifact identifier

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

# Configure HTTP basic authorization: Basic
$WWW::SwaggerClient::Configuration::username = 'YOUR_USERNAME';
$WWW::SwaggerClient::Configuration::password = 'YOUR_PASSWORD';
# Configure API key authorization: Ticket
$WWW::SwaggerClient::Configuration::api_key->{'alf_ticket'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'alf_ticket'} = "Bearer";

my $api_instance = WWW::SwaggerClient::ArtifactApi->new();
my $projectId = projectId_example; # String | project identifier
my $refId = refId_example; # String | ref identifier
my $artifactId = artifactId_example; # String | artifact identifier

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

# Configure HTTP basic authorization: Basic
swagger_client.configuration.username = 'YOUR_USERNAME'
swagger_client.configuration.password = 'YOUR_PASSWORD'
# Configure API key authorization: Ticket
swagger_client.configuration.api_key['alf_ticket'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['alf_ticket'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.ArtifactApi()
projectId = projectId_example # String | project identifier
refId = refId_example # String | ref identifier
artifactId = artifactId_example # String | artifact identifier

try: 
    # Get artifact history
    api_response = api_instance.get_artifact_history(projectId, refId, artifactId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ArtifactApi->getArtifactHistory: %s\n" % e)

Parameters

Path parameters
Name Description
project_id*
String
project identifier
Required
ref_id*
String
ref identifier
Required
artifact_id*
String
artifact identifier
Required

Responses

Status: 200 - OK

Status: 401 - Unauthorized

Status: 403 - Forbidden

Status: 404 - The specified resource was not found

Status: 500 - Internal server error

Status: default - Unknown


getArtifacts

Get artifacts


/projects/{project_id}/refs/{ref_id}/artifacts

Usage and SDK Samples

curl -X GET -H "Accept: image/png,image/svg+xml,application/pdf,application/vnd.openxmlformats-officedocument.wordprocessingml.document" -H "Authorization: Basic [[basicHash]]" "https://localhost/alfresco/service/projects/{project_id}/refs/{ref_id}/artifacts?commitId="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ArtifactApi;

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

public class ArtifactApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure HTTP basic authorization: Basic
        HttpBasicAuth Basic = (HttpBasicAuth) defaultClient.getAuthentication("Basic");
        Basic.setUsername("YOUR USERNAME");
        Basic.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Ticket
        ApiKeyAuth Ticket = (ApiKeyAuth) defaultClient.getAuthentication("Ticket");
        Ticket.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Ticket.setApiKeyPrefix("Token");

        ArtifactApi apiInstance = new ArtifactApi();
        String projectId = projectId_example; // String | project identifier
        String refId = refId_example; // String | ref identifier
        String commitId = commitId_example; // String | 
        try {
            Artifacts result = apiInstance.getArtifacts(projectId, refId, commitId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ArtifactApi#getArtifacts");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ArtifactApi;

public class ArtifactApiExample {

    public static void main(String[] args) {
        ArtifactApi apiInstance = new ArtifactApi();
        String projectId = projectId_example; // String | project identifier
        String refId = refId_example; // String | ref identifier
        String commitId = commitId_example; // String | 
        try {
            Artifacts result = apiInstance.getArtifacts(projectId, refId, commitId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ArtifactApi#getArtifacts");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: Basic)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];

// Configure API key authorization: (authentication scheme: Ticket)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"alf_ticket"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"alf_ticket"];

String *projectId = projectId_example; // project identifier
String *refId = refId_example; // ref identifier
String *commitId = commitId_example; //  (optional)

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

// Get artifacts
[apiInstance getArtifactsWith:projectId
    refId:refId
    commitId:commitId
              completionHandler: ^(Artifacts output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ModelManagementService = require('model_management_service');
var defaultClient = ModelManagementService.ApiClient.instance;

// Configure HTTP basic authorization: Basic
var Basic = defaultClient.authentications['Basic'];
Basic.username = 'YOUR USERNAME'
Basic.password = 'YOUR PASSWORD'

// Configure API key authorization: Ticket
var Ticket = defaultClient.authentications['Ticket'];
Ticket.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Ticket.apiKeyPrefix['alf_ticket'] = "Token"

var api = new ModelManagementService.ArtifactApi()

var projectId = projectId_example; // {String} project identifier

var refId = refId_example; // {String} ref identifier

var opts = { 
  'commitId': commitId_example // {String} 
};

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

namespace Example
{
    public class getArtifactsExample
    {
        public void main()
        {
            
            // Configure HTTP basic authorization: Basic
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Ticket
            Configuration.Default.ApiKey.Add("alf_ticket", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("alf_ticket", "Bearer");

            var apiInstance = new ArtifactApi();
            var projectId = projectId_example;  // String | project identifier
            var refId = refId_example;  // String | ref identifier
            var commitId = commitId_example;  // String |  (optional) 

            try
            {
                // Get artifacts
                Artifacts result = apiInstance.getArtifacts(projectId, refId, commitId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ArtifactApi.getArtifacts: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure HTTP basic authorization: Basic
Swagger\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Swagger\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');
// Configure API key authorization: Ticket
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('alf_ticket', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('alf_ticket', 'Bearer');

$api_instance = new Swagger\Client\Api\ArtifactApi();
$projectId = projectId_example; // String | project identifier
$refId = refId_example; // String | ref identifier
$commitId = commitId_example; // String | 

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

# Configure HTTP basic authorization: Basic
$WWW::SwaggerClient::Configuration::username = 'YOUR_USERNAME';
$WWW::SwaggerClient::Configuration::password = 'YOUR_PASSWORD';
# Configure API key authorization: Ticket
$WWW::SwaggerClient::Configuration::api_key->{'alf_ticket'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'alf_ticket'} = "Bearer";

my $api_instance = WWW::SwaggerClient::ArtifactApi->new();
my $projectId = projectId_example; # String | project identifier
my $refId = refId_example; # String | ref identifier
my $commitId = commitId_example; # String | 

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

# Configure HTTP basic authorization: Basic
swagger_client.configuration.username = 'YOUR_USERNAME'
swagger_client.configuration.password = 'YOUR_PASSWORD'
# Configure API key authorization: Ticket
swagger_client.configuration.api_key['alf_ticket'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['alf_ticket'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.ArtifactApi()
projectId = projectId_example # String | project identifier
refId = refId_example # String | ref identifier
commitId = commitId_example # String |  (optional)

try: 
    # Get artifacts
    api_response = api_instance.get_artifacts(projectId, refId, commitId=commitId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ArtifactApi->getArtifacts: %s\n" % e)

Parameters

Path parameters
Name Description
project_id*
String
project identifier
Required
ref_id*
String
ref identifier
Required
Query parameters
Name Description
commitId
String

Responses

Status: 200 - OK

Status: 401 - Unauthorized

Status: 403 - Forbidden

Status: 404 - The specified resource was not found

Status: 500 - Internal server error

Status: default - Unknown


getArtifactsInBatch

Get artifact(s) in batch


/projects/{project_id}/refs/{ref_id}/artifacts

Usage and SDK Samples

curl -X PUT -H "Accept: image/png,image/svg+xml,application/pdf,application/vnd.openxmlformats-officedocument.wordprocessingml.document" -H "Authorization: Basic [[basicHash]]" "https://localhost/alfresco/service/projects/{project_id}/refs/{ref_id}/artifacts?commitId="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ArtifactApi;

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

public class ArtifactApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure HTTP basic authorization: Basic
        HttpBasicAuth Basic = (HttpBasicAuth) defaultClient.getAuthentication("Basic");
        Basic.setUsername("YOUR USERNAME");
        Basic.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Ticket
        ApiKeyAuth Ticket = (ApiKeyAuth) defaultClient.getAuthentication("Ticket");
        Ticket.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Ticket.setApiKeyPrefix("Token");

        ArtifactApi apiInstance = new ArtifactApi();
        String projectId = projectId_example; // String | project identifier
        String refId = refId_example; // String | ref identifier
        Artifacts body = ; // Artifacts | 
        String commitId = commitId_example; // String | 
        try {
            Artifacts result = apiInstance.getArtifactsInBatch(projectId, refId, body, commitId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ArtifactApi#getArtifactsInBatch");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ArtifactApi;

public class ArtifactApiExample {

    public static void main(String[] args) {
        ArtifactApi apiInstance = new ArtifactApi();
        String projectId = projectId_example; // String | project identifier
        String refId = refId_example; // String | ref identifier
        Artifacts body = ; // Artifacts | 
        String commitId = commitId_example; // String | 
        try {
            Artifacts result = apiInstance.getArtifactsInBatch(projectId, refId, body, commitId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ArtifactApi#getArtifactsInBatch");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: Basic)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];

// Configure API key authorization: (authentication scheme: Ticket)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"alf_ticket"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"alf_ticket"];

String *projectId = projectId_example; // project identifier
String *refId = refId_example; // ref identifier
Artifacts *body = ; // 
String *commitId = commitId_example; //  (optional)

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

// Get artifact(s) in batch
[apiInstance getArtifactsInBatchWith:projectId
    refId:refId
    body:body
    commitId:commitId
              completionHandler: ^(Artifacts output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ModelManagementService = require('model_management_service');
var defaultClient = ModelManagementService.ApiClient.instance;

// Configure HTTP basic authorization: Basic
var Basic = defaultClient.authentications['Basic'];
Basic.username = 'YOUR USERNAME'
Basic.password = 'YOUR PASSWORD'

// Configure API key authorization: Ticket
var Ticket = defaultClient.authentications['Ticket'];
Ticket.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Ticket.apiKeyPrefix['alf_ticket'] = "Token"

var api = new ModelManagementService.ArtifactApi()

var projectId = projectId_example; // {String} project identifier

var refId = refId_example; // {String} ref identifier

var body = ; // {Artifacts} 

var opts = { 
  'commitId': commitId_example // {String} 
};

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

namespace Example
{
    public class getArtifactsInBatchExample
    {
        public void main()
        {
            
            // Configure HTTP basic authorization: Basic
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Ticket
            Configuration.Default.ApiKey.Add("alf_ticket", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("alf_ticket", "Bearer");

            var apiInstance = new ArtifactApi();
            var projectId = projectId_example;  // String | project identifier
            var refId = refId_example;  // String | ref identifier
            var body = new Artifacts(); // Artifacts | 
            var commitId = commitId_example;  // String |  (optional) 

            try
            {
                // Get artifact(s) in batch
                Artifacts result = apiInstance.getArtifactsInBatch(projectId, refId, body, commitId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ArtifactApi.getArtifactsInBatch: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure HTTP basic authorization: Basic
Swagger\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Swagger\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');
// Configure API key authorization: Ticket
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('alf_ticket', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('alf_ticket', 'Bearer');

$api_instance = new Swagger\Client\Api\ArtifactApi();
$projectId = projectId_example; // String | project identifier
$refId = refId_example; // String | ref identifier
$body = ; // Artifacts | 
$commitId = commitId_example; // String | 

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

# Configure HTTP basic authorization: Basic
$WWW::SwaggerClient::Configuration::username = 'YOUR_USERNAME';
$WWW::SwaggerClient::Configuration::password = 'YOUR_PASSWORD';
# Configure API key authorization: Ticket
$WWW::SwaggerClient::Configuration::api_key->{'alf_ticket'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'alf_ticket'} = "Bearer";

my $api_instance = WWW::SwaggerClient::ArtifactApi->new();
my $projectId = projectId_example; # String | project identifier
my $refId = refId_example; # String | ref identifier
my $body = WWW::SwaggerClient::Object::Artifacts->new(); # Artifacts | 
my $commitId = commitId_example; # String | 

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

# Configure HTTP basic authorization: Basic
swagger_client.configuration.username = 'YOUR_USERNAME'
swagger_client.configuration.password = 'YOUR_PASSWORD'
# Configure API key authorization: Ticket
swagger_client.configuration.api_key['alf_ticket'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['alf_ticket'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.ArtifactApi()
projectId = projectId_example # String | project identifier
refId = refId_example # String | ref identifier
body =  # Artifacts | 
commitId = commitId_example # String |  (optional)

try: 
    # Get artifact(s) in batch
    api_response = api_instance.get_artifacts_in_batch(projectId, refId, body, commitId=commitId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ArtifactApi->getArtifactsInBatch: %s\n" % e)

Parameters

Path parameters
Name Description
project_id*
String
project identifier
Required
ref_id*
String
ref identifier
Required
Body parameters
Name Description
body *
Query parameters
Name Description
commitId
String

Responses

Status: 200 - OK

Status: 401 - Unauthorized

Status: 403 - Forbidden

Status: 404 - The specified resource was not found

Status: 500 - Internal server error

Status: default - Unknown


postArtifact

Create and/or update artifact


/projects/{project_id}/refs/{ref_id}/artifacts

Usage and SDK Samples

curl -X POST -H "Content-Type: multipart/form-data" -H "Authorization: Basic [[basicHash]]" "https://localhost/alfresco/service/projects/{project_id}/refs/{ref_id}/artifacts"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ArtifactApi;

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

public class ArtifactApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure HTTP basic authorization: Basic
        HttpBasicAuth Basic = (HttpBasicAuth) defaultClient.getAuthentication("Basic");
        Basic.setUsername("YOUR USERNAME");
        Basic.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Ticket
        ApiKeyAuth Ticket = (ApiKeyAuth) defaultClient.getAuthentication("Ticket");
        Ticket.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Ticket.setApiKeyPrefix("Token");

        ArtifactApi apiInstance = new ArtifactApi();
        String projectId = projectId_example; // String | project identifier
        String refId = refId_example; // String | ref identifier
        String id = id_example; // String | 
        File file = /path/to/file.txt; // File | 
        String contentType = contentType_example; // String | When the content type cannot be automatically detected, this explicitly defined value is used.
        String name = name_example; // String | 
        String source = source_example; // String | 
        String comment = comment_example; // String | 
        try {
            Artifacts result = apiInstance.postArtifact(projectId, refId, id, file, contentType, name, source, comment);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ArtifactApi#postArtifact");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ArtifactApi;

public class ArtifactApiExample {

    public static void main(String[] args) {
        ArtifactApi apiInstance = new ArtifactApi();
        String projectId = projectId_example; // String | project identifier
        String refId = refId_example; // String | ref identifier
        String id = id_example; // String | 
        File file = /path/to/file.txt; // File | 
        String contentType = contentType_example; // String | When the content type cannot be automatically detected, this explicitly defined value is used.
        String name = name_example; // String | 
        String source = source_example; // String | 
        String comment = comment_example; // String | 
        try {
            Artifacts result = apiInstance.postArtifact(projectId, refId, id, file, contentType, name, source, comment);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ArtifactApi#postArtifact");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: Basic)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];

// Configure API key authorization: (authentication scheme: Ticket)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"alf_ticket"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"alf_ticket"];

String *projectId = projectId_example; // project identifier
String *refId = refId_example; // ref identifier
String *id = id_example; // 
File *file = /path/to/file.txt; // 
String *contentType = contentType_example; // When the content type cannot be automatically detected, this explicitly defined value is used. (optional)
String *name = name_example; //  (optional)
String *source = source_example; //  (optional)
String *comment = comment_example; //  (optional)

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

// Create and/or update artifact
[apiInstance postArtifactWith:projectId
    refId:refId
    id:id
    file:file
    contentType:contentType
    name:name
    source:source
    comment:comment
              completionHandler: ^(Artifacts output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ModelManagementService = require('model_management_service');
var defaultClient = ModelManagementService.ApiClient.instance;

// Configure HTTP basic authorization: Basic
var Basic = defaultClient.authentications['Basic'];
Basic.username = 'YOUR USERNAME'
Basic.password = 'YOUR PASSWORD'

// Configure API key authorization: Ticket
var Ticket = defaultClient.authentications['Ticket'];
Ticket.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Ticket.apiKeyPrefix['alf_ticket'] = "Token"

var api = new ModelManagementService.ArtifactApi()

var projectId = projectId_example; // {String} project identifier

var refId = refId_example; // {String} ref identifier

var id = id_example; // {String} 

var file = /path/to/file.txt; // {File} 

var opts = { 
  'contentType': contentType_example, // {String} When the content type cannot be automatically detected, this explicitly defined value is used.
  'name': name_example, // {String} 
  'source': source_example, // {String} 
  'comment': comment_example // {String} 
};

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

namespace Example
{
    public class postArtifactExample
    {
        public void main()
        {
            
            // Configure HTTP basic authorization: Basic
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Ticket
            Configuration.Default.ApiKey.Add("alf_ticket", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("alf_ticket", "Bearer");

            var apiInstance = new ArtifactApi();
            var projectId = projectId_example;  // String | project identifier
            var refId = refId_example;  // String | ref identifier
            var id = id_example;  // String | 
            var file = new File(); // File | 
            var contentType = contentType_example;  // String | When the content type cannot be automatically detected, this explicitly defined value is used. (optional) 
            var name = name_example;  // String |  (optional) 
            var source = source_example;  // String |  (optional) 
            var comment = comment_example;  // String |  (optional) 

            try
            {
                // Create and/or update artifact
                Artifacts result = apiInstance.postArtifact(projectId, refId, id, file, contentType, name, source, comment);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ArtifactApi.postArtifact: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure HTTP basic authorization: Basic
Swagger\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Swagger\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');
// Configure API key authorization: Ticket
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('alf_ticket', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('alf_ticket', 'Bearer');

$api_instance = new Swagger\Client\Api\ArtifactApi();
$projectId = projectId_example; // String | project identifier
$refId = refId_example; // String | ref identifier
$id = id_example; // String | 
$file = /path/to/file.txt; // File | 
$contentType = contentType_example; // String | When the content type cannot be automatically detected, this explicitly defined value is used.
$name = name_example; // String | 
$source = source_example; // String | 
$comment = comment_example; // String | 

try {
    $result = $api_instance->postArtifact($projectId, $refId, $id, $file, $contentType, $name, $source, $comment);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ArtifactApi->postArtifact: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ArtifactApi;

# Configure HTTP basic authorization: Basic
$WWW::SwaggerClient::Configuration::username = 'YOUR_USERNAME';
$WWW::SwaggerClient::Configuration::password = 'YOUR_PASSWORD';
# Configure API key authorization: Ticket
$WWW::SwaggerClient::Configuration::api_key->{'alf_ticket'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'alf_ticket'} = "Bearer";

my $api_instance = WWW::SwaggerClient::ArtifactApi->new();
my $projectId = projectId_example; # String | project identifier
my $refId = refId_example; # String | ref identifier
my $id = id_example; # String | 
my $file = /path/to/file.txt; # File | 
my $contentType = contentType_example; # String | When the content type cannot be automatically detected, this explicitly defined value is used.
my $name = name_example; # String | 
my $source = source_example; # String | 
my $comment = comment_example; # String | 

eval { 
    my $result = $api_instance->postArtifact(projectId => $projectId, refId => $refId, id => $id, file => $file, contentType => $contentType, name => $name, source => $source, comment => $comment);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ArtifactApi->postArtifact: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure HTTP basic authorization: Basic
swagger_client.configuration.username = 'YOUR_USERNAME'
swagger_client.configuration.password = 'YOUR_PASSWORD'
# Configure API key authorization: Ticket
swagger_client.configuration.api_key['alf_ticket'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['alf_ticket'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.ArtifactApi()
projectId = projectId_example # String | project identifier
refId = refId_example # String | ref identifier
id = id_example # String | 
file = /path/to/file.txt # File | 
contentType = contentType_example # String | When the content type cannot be automatically detected, this explicitly defined value is used. (optional)
name = name_example # String |  (optional)
source = source_example # String |  (optional)
comment = comment_example # String |  (optional)

try: 
    # Create and/or update artifact
    api_response = api_instance.post_artifact(projectId, refId, id, file, contentType=contentType, name=name, source=source, comment=comment)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ArtifactApi->postArtifact: %s\n" % e)

Parameters

Path parameters
Name Description
project_id*
String
project identifier
Required
ref_id*
String
ref identifier
Required
Form parameters
Name Description
id*
String
Required
file*
File
Required
contentType
String
When the content type cannot be automatically detected, this explicitly defined value is used.
name
String
source
String
comment
String

Responses

Status: 200 - OK

Status: 401 - Unauthorized

Status: 403 - Forbidden

Status: 404 - The specified resource was not found

Status: 500 - Internal server error

Status: default - Unknown


Element

deleteElement

Delete element


/projects/{project_id}/refs/{ref_id}/elements/{element_id}

Usage and SDK Samples

curl -X DELETE -H "Authorization: Basic [[basicHash]]" "https://localhost/alfresco/service/projects/{project_id}/refs/{ref_id}/elements/{element_id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ElementApi;

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

public class ElementApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure HTTP basic authorization: Basic
        HttpBasicAuth Basic = (HttpBasicAuth) defaultClient.getAuthentication("Basic");
        Basic.setUsername("YOUR USERNAME");
        Basic.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Ticket
        ApiKeyAuth Ticket = (ApiKeyAuth) defaultClient.getAuthentication("Ticket");
        Ticket.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Ticket.setApiKeyPrefix("Token");

        ElementApi apiInstance = new ElementApi();
        String projectId = projectId_example; // String | project identifier
        String refId = refId_example; // String | ref identifier
        String elementId = elementId_example; // String | element identifier
        try {
            Elements result = apiInstance.deleteElement(projectId, refId, elementId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ElementApi#deleteElement");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ElementApi;

public class ElementApiExample {

    public static void main(String[] args) {
        ElementApi apiInstance = new ElementApi();
        String projectId = projectId_example; // String | project identifier
        String refId = refId_example; // String | ref identifier
        String elementId = elementId_example; // String | element identifier
        try {
            Elements result = apiInstance.deleteElement(projectId, refId, elementId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ElementApi#deleteElement");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: Basic)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];

// Configure API key authorization: (authentication scheme: Ticket)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"alf_ticket"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"alf_ticket"];

String *projectId = projectId_example; // project identifier
String *refId = refId_example; // ref identifier
String *elementId = elementId_example; // element identifier

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

// Delete element
[apiInstance deleteElementWith:projectId
    refId:refId
    elementId:elementId
              completionHandler: ^(Elements output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ModelManagementService = require('model_management_service');
var defaultClient = ModelManagementService.ApiClient.instance;

// Configure HTTP basic authorization: Basic
var Basic = defaultClient.authentications['Basic'];
Basic.username = 'YOUR USERNAME'
Basic.password = 'YOUR PASSWORD'

// Configure API key authorization: Ticket
var Ticket = defaultClient.authentications['Ticket'];
Ticket.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Ticket.apiKeyPrefix['alf_ticket'] = "Token"

var api = new ModelManagementService.ElementApi()

var projectId = projectId_example; // {String} project identifier

var refId = refId_example; // {String} ref identifier

var elementId = elementId_example; // {String} element identifier


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

namespace Example
{
    public class deleteElementExample
    {
        public void main()
        {
            
            // Configure HTTP basic authorization: Basic
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Ticket
            Configuration.Default.ApiKey.Add("alf_ticket", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("alf_ticket", "Bearer");

            var apiInstance = new ElementApi();
            var projectId = projectId_example;  // String | project identifier
            var refId = refId_example;  // String | ref identifier
            var elementId = elementId_example;  // String | element identifier

            try
            {
                // Delete element
                Elements result = apiInstance.deleteElement(projectId, refId, elementId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ElementApi.deleteElement: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure HTTP basic authorization: Basic
Swagger\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Swagger\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');
// Configure API key authorization: Ticket
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('alf_ticket', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('alf_ticket', 'Bearer');

$api_instance = new Swagger\Client\Api\ElementApi();
$projectId = projectId_example; // String | project identifier
$refId = refId_example; // String | ref identifier
$elementId = elementId_example; // String | element identifier

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

# Configure HTTP basic authorization: Basic
$WWW::SwaggerClient::Configuration::username = 'YOUR_USERNAME';
$WWW::SwaggerClient::Configuration::password = 'YOUR_PASSWORD';
# Configure API key authorization: Ticket
$WWW::SwaggerClient::Configuration::api_key->{'alf_ticket'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'alf_ticket'} = "Bearer";

my $api_instance = WWW::SwaggerClient::ElementApi->new();
my $projectId = projectId_example; # String | project identifier
my $refId = refId_example; # String | ref identifier
my $elementId = elementId_example; # String | element identifier

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

# Configure HTTP basic authorization: Basic
swagger_client.configuration.username = 'YOUR_USERNAME'
swagger_client.configuration.password = 'YOUR_PASSWORD'
# Configure API key authorization: Ticket
swagger_client.configuration.api_key['alf_ticket'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['alf_ticket'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.ElementApi()
projectId = projectId_example # String | project identifier
refId = refId_example # String | ref identifier
elementId = elementId_example # String | element identifier

try: 
    # Delete element
    api_response = api_instance.delete_element(projectId, refId, elementId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ElementApi->deleteElement: %s\n" % e)

Parameters

Path parameters
Name Description
project_id*
String
project identifier
Required
ref_id*
String
ref identifier
Required
element_id*
String
element identifier
Required

Responses

Status: 200 - OK

Status: 401 - Unauthorized

Status: 403 - Forbidden

Status: 404 - The specified resource was not found

Status: 500 - Internal server error

Status: default - Unknown


deleteElementsInBatch

Delete element(s) in batch


/projects/{project_id}/refs/{ref_id}/elements

Usage and SDK Samples

curl -X DELETE -H "Authorization: Basic [[basicHash]]" "https://localhost/alfresco/service/projects/{project_id}/refs/{ref_id}/elements?commitId=&extended="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ElementApi;

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

public class ElementApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure HTTP basic authorization: Basic
        HttpBasicAuth Basic = (HttpBasicAuth) defaultClient.getAuthentication("Basic");
        Basic.setUsername("YOUR USERNAME");
        Basic.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Ticket
        ApiKeyAuth Ticket = (ApiKeyAuth) defaultClient.getAuthentication("Ticket");
        Ticket.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Ticket.setApiKeyPrefix("Token");

        ElementApi apiInstance = new ElementApi();
        String projectId = projectId_example; // String | project identifier
        String refId = refId_example; // String | ref identifier
        Elements body = ; // Elements | 
        String commitId = commitId_example; // String | commit identifier
        Boolean extended = true; // Boolean | extended flag
        try {
            Elements result = apiInstance.deleteElementsInBatch(projectId, refId, body, commitId, extended);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ElementApi#deleteElementsInBatch");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ElementApi;

public class ElementApiExample {

    public static void main(String[] args) {
        ElementApi apiInstance = new ElementApi();
        String projectId = projectId_example; // String | project identifier
        String refId = refId_example; // String | ref identifier
        Elements body = ; // Elements | 
        String commitId = commitId_example; // String | commit identifier
        Boolean extended = true; // Boolean | extended flag
        try {
            Elements result = apiInstance.deleteElementsInBatch(projectId, refId, body, commitId, extended);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ElementApi#deleteElementsInBatch");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: Basic)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];

// Configure API key authorization: (authentication scheme: Ticket)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"alf_ticket"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"alf_ticket"];

String *projectId = projectId_example; // project identifier
String *refId = refId_example; // ref identifier
Elements *body = ; // 
String *commitId = commitId_example; // commit identifier (optional)
Boolean *extended = true; // extended flag (optional)

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

// Delete element(s) in batch
[apiInstance deleteElementsInBatchWith:projectId
    refId:refId
    body:body
    commitId:commitId
    extended:extended
              completionHandler: ^(Elements output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ModelManagementService = require('model_management_service');
var defaultClient = ModelManagementService.ApiClient.instance;

// Configure HTTP basic authorization: Basic
var Basic = defaultClient.authentications['Basic'];
Basic.username = 'YOUR USERNAME'
Basic.password = 'YOUR PASSWORD'

// Configure API key authorization: Ticket
var Ticket = defaultClient.authentications['Ticket'];
Ticket.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Ticket.apiKeyPrefix['alf_ticket'] = "Token"

var api = new ModelManagementService.ElementApi()

var projectId = projectId_example; // {String} project identifier

var refId = refId_example; // {String} ref identifier

var body = ; // {Elements} 

var opts = { 
  'commitId': commitId_example, // {String} commit identifier
  'extended': true // {Boolean} extended flag
};

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

namespace Example
{
    public class deleteElementsInBatchExample
    {
        public void main()
        {
            
            // Configure HTTP basic authorization: Basic
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Ticket
            Configuration.Default.ApiKey.Add("alf_ticket", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("alf_ticket", "Bearer");

            var apiInstance = new ElementApi();
            var projectId = projectId_example;  // String | project identifier
            var refId = refId_example;  // String | ref identifier
            var body = new Elements(); // Elements | 
            var commitId = commitId_example;  // String | commit identifier (optional) 
            var extended = true;  // Boolean | extended flag (optional) 

            try
            {
                // Delete element(s) in batch
                Elements result = apiInstance.deleteElementsInBatch(projectId, refId, body, commitId, extended);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ElementApi.deleteElementsInBatch: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure HTTP basic authorization: Basic
Swagger\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Swagger\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');
// Configure API key authorization: Ticket
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('alf_ticket', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('alf_ticket', 'Bearer');

$api_instance = new Swagger\Client\Api\ElementApi();
$projectId = projectId_example; // String | project identifier
$refId = refId_example; // String | ref identifier
$body = ; // Elements | 
$commitId = commitId_example; // String | commit identifier
$extended = true; // Boolean | extended flag

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

# Configure HTTP basic authorization: Basic
$WWW::SwaggerClient::Configuration::username = 'YOUR_USERNAME';
$WWW::SwaggerClient::Configuration::password = 'YOUR_PASSWORD';
# Configure API key authorization: Ticket
$WWW::SwaggerClient::Configuration::api_key->{'alf_ticket'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'alf_ticket'} = "Bearer";

my $api_instance = WWW::SwaggerClient::ElementApi->new();
my $projectId = projectId_example; # String | project identifier
my $refId = refId_example; # String | ref identifier
my $body = WWW::SwaggerClient::Object::Elements->new(); # Elements | 
my $commitId = commitId_example; # String | commit identifier
my $extended = true; # Boolean | extended flag

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

# Configure HTTP basic authorization: Basic
swagger_client.configuration.username = 'YOUR_USERNAME'
swagger_client.configuration.password = 'YOUR_PASSWORD'
# Configure API key authorization: Ticket
swagger_client.configuration.api_key['alf_ticket'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['alf_ticket'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.ElementApi()
projectId = projectId_example # String | project identifier
refId = refId_example # String | ref identifier
body =  # Elements | 
commitId = commitId_example # String | commit identifier (optional)
extended = true # Boolean | extended flag (optional)

try: 
    # Delete element(s) in batch
    api_response = api_instance.delete_elements_in_batch(projectId, refId, body, commitId=commitId, extended=extended)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ElementApi->deleteElementsInBatch: %s\n" % e)

Parameters

Path parameters
Name Description
project_id*
String
project identifier
Required
ref_id*
String
ref identifier
Required
Body parameters
Name Description
body *
Query parameters
Name Description
commitId
String
commit identifier
extended
Boolean
extended flag

Responses

Status: 200 - OK

Status: 401 - Unauthorized

Status: 403 - Forbidden

Status: 404 - The specified resource was not found

Status: 500 - Internal server error

Status: default - Unknown


getElement

Get element


/projects/{project_id}/refs/{ref_id}/elements/{element_id}

Usage and SDK Samples

curl -X GET -H "Authorization: Basic [[basicHash]]" "https://localhost/alfresco/service/projects/{project_id}/refs/{ref_id}/elements/{element_id}?depth=&extended=&commitId="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ElementApi;

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

public class ElementApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure HTTP basic authorization: Basic
        HttpBasicAuth Basic = (HttpBasicAuth) defaultClient.getAuthentication("Basic");
        Basic.setUsername("YOUR USERNAME");
        Basic.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Ticket
        ApiKeyAuth Ticket = (ApiKeyAuth) defaultClient.getAuthentication("Ticket");
        Ticket.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Ticket.setApiKeyPrefix("Token");

        ElementApi apiInstance = new ElementApi();
        String projectId = projectId_example; // String | project identifier
        String refId = refId_example; // String | ref identifier
        String elementId = elementId_example; // String | element identifier
        Integer depth = 56; // Integer | 
        Boolean extended = true; // Boolean | 
        String commitId = commitId_example; // String | 
        try {
            Elements result = apiInstance.getElement(projectId, refId, elementId, depth, extended, commitId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ElementApi#getElement");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ElementApi;

public class ElementApiExample {

    public static void main(String[] args) {
        ElementApi apiInstance = new ElementApi();
        String projectId = projectId_example; // String | project identifier
        String refId = refId_example; // String | ref identifier
        String elementId = elementId_example; // String | element identifier
        Integer depth = 56; // Integer | 
        Boolean extended = true; // Boolean | 
        String commitId = commitId_example; // String | 
        try {
            Elements result = apiInstance.getElement(projectId, refId, elementId, depth, extended, commitId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ElementApi#getElement");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: Basic)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];

// Configure API key authorization: (authentication scheme: Ticket)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"alf_ticket"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"alf_ticket"];

String *projectId = projectId_example; // project identifier
String *refId = refId_example; // ref identifier
String *elementId = elementId_example; // element identifier
Integer *depth = 56; //  (optional)
Boolean *extended = true; //  (optional)
String *commitId = commitId_example; //  (optional)

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

// Get element
[apiInstance getElementWith:projectId
    refId:refId
    elementId:elementId
    depth:depth
    extended:extended
    commitId:commitId
              completionHandler: ^(Elements output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ModelManagementService = require('model_management_service');
var defaultClient = ModelManagementService.ApiClient.instance;

// Configure HTTP basic authorization: Basic
var Basic = defaultClient.authentications['Basic'];
Basic.username = 'YOUR USERNAME'
Basic.password = 'YOUR PASSWORD'

// Configure API key authorization: Ticket
var Ticket = defaultClient.authentications['Ticket'];
Ticket.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Ticket.apiKeyPrefix['alf_ticket'] = "Token"

var api = new ModelManagementService.ElementApi()

var projectId = projectId_example; // {String} project identifier

var refId = refId_example; // {String} ref identifier

var elementId = elementId_example; // {String} element identifier

var opts = { 
  'depth': 56, // {Integer} 
  'extended': true, // {Boolean} 
  'commitId': commitId_example // {String} 
};

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

namespace Example
{
    public class getElementExample
    {
        public void main()
        {
            
            // Configure HTTP basic authorization: Basic
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Ticket
            Configuration.Default.ApiKey.Add("alf_ticket", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("alf_ticket", "Bearer");

            var apiInstance = new ElementApi();
            var projectId = projectId_example;  // String | project identifier
            var refId = refId_example;  // String | ref identifier
            var elementId = elementId_example;  // String | element identifier
            var depth = 56;  // Integer |  (optional) 
            var extended = true;  // Boolean |  (optional) 
            var commitId = commitId_example;  // String |  (optional) 

            try
            {
                // Get element
                Elements result = apiInstance.getElement(projectId, refId, elementId, depth, extended, commitId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ElementApi.getElement: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure HTTP basic authorization: Basic
Swagger\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Swagger\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');
// Configure API key authorization: Ticket
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('alf_ticket', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('alf_ticket', 'Bearer');

$api_instance = new Swagger\Client\Api\ElementApi();
$projectId = projectId_example; // String | project identifier
$refId = refId_example; // String | ref identifier
$elementId = elementId_example; // String | element identifier
$depth = 56; // Integer | 
$extended = true; // Boolean | 
$commitId = commitId_example; // String | 

try {
    $result = $api_instance->getElement($projectId, $refId, $elementId, $depth, $extended, $commitId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ElementApi->getElement: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ElementApi;

# Configure HTTP basic authorization: Basic
$WWW::SwaggerClient::Configuration::username = 'YOUR_USERNAME';
$WWW::SwaggerClient::Configuration::password = 'YOUR_PASSWORD';
# Configure API key authorization: Ticket
$WWW::SwaggerClient::Configuration::api_key->{'alf_ticket'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'alf_ticket'} = "Bearer";

my $api_instance = WWW::SwaggerClient::ElementApi->new();
my $projectId = projectId_example; # String | project identifier
my $refId = refId_example; # String | ref identifier
my $elementId = elementId_example; # String | element identifier
my $depth = 56; # Integer | 
my $extended = true; # Boolean | 
my $commitId = commitId_example; # String | 

eval { 
    my $result = $api_instance->getElement(projectId => $projectId, refId => $refId, elementId => $elementId, depth => $depth, extended => $extended, commitId => $commitId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ElementApi->getElement: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure HTTP basic authorization: Basic
swagger_client.configuration.username = 'YOUR_USERNAME'
swagger_client.configuration.password = 'YOUR_PASSWORD'
# Configure API key authorization: Ticket
swagger_client.configuration.api_key['alf_ticket'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['alf_ticket'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.ElementApi()
projectId = projectId_example # String | project identifier
refId = refId_example # String | ref identifier
elementId = elementId_example # String | element identifier
depth = 56 # Integer |  (optional)
extended = true # Boolean |  (optional)
commitId = commitId_example # String |  (optional)

try: 
    # Get element
    api_response = api_instance.get_element(projectId, refId, elementId, depth=depth, extended=extended, commitId=commitId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ElementApi->getElement: %s\n" % e)

Parameters

Path parameters
Name Description
project_id*
String
project identifier
Required
ref_id*
String
ref identifier
Required
element_id*
String
element identifier
Required
Query parameters
Name Description
depth
Integer
extended
Boolean
commitId
String

Responses

Status: 200 - OK

Status: 401 - Unauthorized

Status: 403 - Forbidden

Status: 404 - The specified resource was not found

Status: 500 - Internal server error

Status: default - Unknown


getElementHistory

Get element history


/projects/{project_id}/refs/{ref_id}/elements/{element_id}/commits

Usage and SDK Samples

curl -X GET -H "Authorization: Basic [[basicHash]]" "https://localhost/alfresco/service/projects/{project_id}/refs/{ref_id}/elements/{element_id}/commits"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ElementApi;

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

public class ElementApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure HTTP basic authorization: Basic
        HttpBasicAuth Basic = (HttpBasicAuth) defaultClient.getAuthentication("Basic");
        Basic.setUsername("YOUR USERNAME");
        Basic.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Ticket
        ApiKeyAuth Ticket = (ApiKeyAuth) defaultClient.getAuthentication("Ticket");
        Ticket.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Ticket.setApiKeyPrefix("Token");

        ElementApi apiInstance = new ElementApi();
        String projectId = projectId_example; // String | project identifier
        String refId = refId_example; // String | ref identifier
        String elementId = elementId_example; // String | element identifier
        try {
            Commits result = apiInstance.getElementHistory(projectId, refId, elementId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ElementApi#getElementHistory");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ElementApi;

public class ElementApiExample {

    public static void main(String[] args) {
        ElementApi apiInstance = new ElementApi();
        String projectId = projectId_example; // String | project identifier
        String refId = refId_example; // String | ref identifier
        String elementId = elementId_example; // String | element identifier
        try {
            Commits result = apiInstance.getElementHistory(projectId, refId, elementId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ElementApi#getElementHistory");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: Basic)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];

// Configure API key authorization: (authentication scheme: Ticket)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"alf_ticket"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"alf_ticket"];

String *projectId = projectId_example; // project identifier
String *refId = refId_example; // ref identifier
String *elementId = elementId_example; // element identifier

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

// Get element history
[apiInstance getElementHistoryWith:projectId
    refId:refId
    elementId:elementId
              completionHandler: ^(Commits output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ModelManagementService = require('model_management_service');
var defaultClient = ModelManagementService.ApiClient.instance;

// Configure HTTP basic authorization: Basic
var Basic = defaultClient.authentications['Basic'];
Basic.username = 'YOUR USERNAME'
Basic.password = 'YOUR PASSWORD'

// Configure API key authorization: Ticket
var Ticket = defaultClient.authentications['Ticket'];
Ticket.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Ticket.apiKeyPrefix['alf_ticket'] = "Token"

var api = new ModelManagementService.ElementApi()

var projectId = projectId_example; // {String} project identifier

var refId = refId_example; // {String} ref identifier

var elementId = elementId_example; // {String} element identifier


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

namespace Example
{
    public class getElementHistoryExample
    {
        public void main()
        {
            
            // Configure HTTP basic authorization: Basic
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Ticket
            Configuration.Default.ApiKey.Add("alf_ticket", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("alf_ticket", "Bearer");

            var apiInstance = new ElementApi();
            var projectId = projectId_example;  // String | project identifier
            var refId = refId_example;  // String | ref identifier
            var elementId = elementId_example;  // String | element identifier

            try
            {
                // Get element history
                Commits result = apiInstance.getElementHistory(projectId, refId, elementId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ElementApi.getElementHistory: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure HTTP basic authorization: Basic
Swagger\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Swagger\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');
// Configure API key authorization: Ticket
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('alf_ticket', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('alf_ticket', 'Bearer');

$api_instance = new Swagger\Client\Api\ElementApi();
$projectId = projectId_example; // String | project identifier
$refId = refId_example; // String | ref identifier
$elementId = elementId_example; // String | element identifier

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

# Configure HTTP basic authorization: Basic
$WWW::SwaggerClient::Configuration::username = 'YOUR_USERNAME';
$WWW::SwaggerClient::Configuration::password = 'YOUR_PASSWORD';
# Configure API key authorization: Ticket
$WWW::SwaggerClient::Configuration::api_key->{'alf_ticket'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'alf_ticket'} = "Bearer";

my $api_instance = WWW::SwaggerClient::ElementApi->new();
my $projectId = projectId_example; # String | project identifier
my $refId = refId_example; # String | ref identifier
my $elementId = elementId_example; # String | element identifier

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

# Configure HTTP basic authorization: Basic
swagger_client.configuration.username = 'YOUR_USERNAME'
swagger_client.configuration.password = 'YOUR_PASSWORD'
# Configure API key authorization: Ticket
swagger_client.configuration.api_key['alf_ticket'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['alf_ticket'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.ElementApi()
projectId = projectId_example # String | project identifier
refId = refId_example # String | ref identifier
elementId = elementId_example # String | element identifier

try: 
    # Get element history
    api_response = api_instance.get_element_history(projectId, refId, elementId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ElementApi->getElementHistory: %s\n" % e)

Parameters

Path parameters
Name Description
project_id*
String
project identifier
Required
ref_id*
String
ref identifier
Required
element_id*
String
element identifier
Required

Responses

Status: 200 - OK

Status: 401 - Unauthorized

Status: 403 - Forbidden

Status: 404 - The specified resource was not found

Status: 500 - Internal server error

Status: default - Unknown


getElements

Get elements


/projects/{project_id}/refs/{ref_id}/elements

Usage and SDK Samples

curl -X GET -H "Authorization: Basic [[basicHash]]" "https://localhost/alfresco/service/projects/{project_id}/refs/{ref_id}/elements?commitId=&extended="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ElementApi;

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

public class ElementApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure HTTP basic authorization: Basic
        HttpBasicAuth Basic = (HttpBasicAuth) defaultClient.getAuthentication("Basic");
        Basic.setUsername("YOUR USERNAME");
        Basic.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Ticket
        ApiKeyAuth Ticket = (ApiKeyAuth) defaultClient.getAuthentication("Ticket");
        Ticket.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Ticket.setApiKeyPrefix("Token");

        ElementApi apiInstance = new ElementApi();
        String projectId = projectId_example; // String | project identifier
        String refId = refId_example; // String | ref identifier
        String commitId = commitId_example; // String | commit identifier
        Boolean extended = true; // Boolean | extended flag
        try {
            Elements result = apiInstance.getElements(projectId, refId, commitId, extended);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ElementApi#getElements");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ElementApi;

public class ElementApiExample {

    public static void main(String[] args) {
        ElementApi apiInstance = new ElementApi();
        String projectId = projectId_example; // String | project identifier
        String refId = refId_example; // String | ref identifier
        String commitId = commitId_example; // String | commit identifier
        Boolean extended = true; // Boolean | extended flag
        try {
            Elements result = apiInstance.getElements(projectId, refId, commitId, extended);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ElementApi#getElements");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: Basic)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];

// Configure API key authorization: (authentication scheme: Ticket)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"alf_ticket"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"alf_ticket"];

String *projectId = projectId_example; // project identifier
String *refId = refId_example; // ref identifier
String *commitId = commitId_example; // commit identifier (optional)
Boolean *extended = true; // extended flag (optional)

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

// Get elements
[apiInstance getElementsWith:projectId
    refId:refId
    commitId:commitId
    extended:extended
              completionHandler: ^(Elements output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ModelManagementService = require('model_management_service');
var defaultClient = ModelManagementService.ApiClient.instance;

// Configure HTTP basic authorization: Basic
var Basic = defaultClient.authentications['Basic'];
Basic.username = 'YOUR USERNAME'
Basic.password = 'YOUR PASSWORD'

// Configure API key authorization: Ticket
var Ticket = defaultClient.authentications['Ticket'];
Ticket.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Ticket.apiKeyPrefix['alf_ticket'] = "Token"

var api = new ModelManagementService.ElementApi()

var projectId = projectId_example; // {String} project identifier

var refId = refId_example; // {String} ref identifier

var opts = { 
  'commitId': commitId_example, // {String} commit identifier
  'extended': true // {Boolean} extended flag
};

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

namespace Example
{
    public class getElementsExample
    {
        public void main()
        {
            
            // Configure HTTP basic authorization: Basic
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Ticket
            Configuration.Default.ApiKey.Add("alf_ticket", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("alf_ticket", "Bearer");

            var apiInstance = new ElementApi();
            var projectId = projectId_example;  // String | project identifier
            var refId = refId_example;  // String | ref identifier
            var commitId = commitId_example;  // String | commit identifier (optional) 
            var extended = true;  // Boolean | extended flag (optional) 

            try
            {
                // Get elements
                Elements result = apiInstance.getElements(projectId, refId, commitId, extended);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ElementApi.getElements: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure HTTP basic authorization: Basic
Swagger\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Swagger\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');
// Configure API key authorization: Ticket
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('alf_ticket', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('alf_ticket', 'Bearer');

$api_instance = new Swagger\Client\Api\ElementApi();
$projectId = projectId_example; // String | project identifier
$refId = refId_example; // String | ref identifier
$commitId = commitId_example; // String | commit identifier
$extended = true; // Boolean | extended flag

try {
    $result = $api_instance->getElements($projectId, $refId, $commitId, $extended);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ElementApi->getElements: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ElementApi;

# Configure HTTP basic authorization: Basic
$WWW::SwaggerClient::Configuration::username = 'YOUR_USERNAME';
$WWW::SwaggerClient::Configuration::password = 'YOUR_PASSWORD';
# Configure API key authorization: Ticket
$WWW::SwaggerClient::Configuration::api_key->{'alf_ticket'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'alf_ticket'} = "Bearer";

my $api_instance = WWW::SwaggerClient::ElementApi->new();
my $projectId = projectId_example; # String | project identifier
my $refId = refId_example; # String | ref identifier
my $commitId = commitId_example; # String | commit identifier
my $extended = true; # Boolean | extended flag

eval { 
    my $result = $api_instance->getElements(projectId => $projectId, refId => $refId, commitId => $commitId, extended => $extended);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ElementApi->getElements: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure HTTP basic authorization: Basic
swagger_client.configuration.username = 'YOUR_USERNAME'
swagger_client.configuration.password = 'YOUR_PASSWORD'
# Configure API key authorization: Ticket
swagger_client.configuration.api_key['alf_ticket'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['alf_ticket'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.ElementApi()
projectId = projectId_example # String | project identifier
refId = refId_example # String | ref identifier
commitId = commitId_example # String | commit identifier (optional)
extended = true # Boolean | extended flag (optional)

try: 
    # Get elements
    api_response = api_instance.get_elements(projectId, refId, commitId=commitId, extended=extended)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ElementApi->getElements: %s\n" % e)

Parameters

Path parameters
Name Description
project_id*
String
project identifier
Required
ref_id*
String
ref identifier
Required
Query parameters
Name Description
commitId
String
commit identifier
extended
Boolean
extended flag

Responses

Status: 200 - OK

Status: 401 - Unauthorized

Status: 403 - Forbidden

Status: 404 - The specified resource was not found

Status: 500 - Internal server error

Status: default - Unknown


getElementsInBatch

Get element(s) in batch


/projects/{project_id}/refs/{ref_id}/elements

Usage and SDK Samples

curl -X PUT -H "Authorization: Basic [[basicHash]]" "https://localhost/alfresco/service/projects/{project_id}/refs/{ref_id}/elements?commitId=&extended=&depth="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ElementApi;

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

public class ElementApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure HTTP basic authorization: Basic
        HttpBasicAuth Basic = (HttpBasicAuth) defaultClient.getAuthentication("Basic");
        Basic.setUsername("YOUR USERNAME");
        Basic.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Ticket
        ApiKeyAuth Ticket = (ApiKeyAuth) defaultClient.getAuthentication("Ticket");
        Ticket.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Ticket.setApiKeyPrefix("Token");

        ElementApi apiInstance = new ElementApi();
        String projectId = projectId_example; // String | project identifier
        String refId = refId_example; // String | ref identifier
        Elements body = ; // Elements | 
        String commitId = commitId_example; // String | commit identifier
        Boolean extended = true; // Boolean | extended flag
        Integer depth = 56; // Integer | 
        try {
            RejectableElements result = apiInstance.getElementsInBatch(projectId, refId, body, commitId, extended, depth);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ElementApi#getElementsInBatch");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ElementApi;

public class ElementApiExample {

    public static void main(String[] args) {
        ElementApi apiInstance = new ElementApi();
        String projectId = projectId_example; // String | project identifier
        String refId = refId_example; // String | ref identifier
        Elements body = ; // Elements | 
        String commitId = commitId_example; // String | commit identifier
        Boolean extended = true; // Boolean | extended flag
        Integer depth = 56; // Integer | 
        try {
            RejectableElements result = apiInstance.getElementsInBatch(projectId, refId, body, commitId, extended, depth);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ElementApi#getElementsInBatch");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: Basic)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];

// Configure API key authorization: (authentication scheme: Ticket)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"alf_ticket"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"alf_ticket"];

String *projectId = projectId_example; // project identifier
String *refId = refId_example; // ref identifier
Elements *body = ; // 
String *commitId = commitId_example; // commit identifier (optional)
Boolean *extended = true; // extended flag (optional)
Integer *depth = 56; //  (optional)

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

// Get element(s) in batch
[apiInstance getElementsInBatchWith:projectId
    refId:refId
    body:body
    commitId:commitId
    extended:extended
    depth:depth
              completionHandler: ^(RejectableElements output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ModelManagementService = require('model_management_service');
var defaultClient = ModelManagementService.ApiClient.instance;

// Configure HTTP basic authorization: Basic
var Basic = defaultClient.authentications['Basic'];
Basic.username = 'YOUR USERNAME'
Basic.password = 'YOUR PASSWORD'

// Configure API key authorization: Ticket
var Ticket = defaultClient.authentications['Ticket'];
Ticket.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Ticket.apiKeyPrefix['alf_ticket'] = "Token"

var api = new ModelManagementService.ElementApi()

var projectId = projectId_example; // {String} project identifier

var refId = refId_example; // {String} ref identifier

var body = ; // {Elements} 

var opts = { 
  'commitId': commitId_example, // {String} commit identifier
  'extended': true // {Boolean} extended flag
  'depth': 56 // {Integer} 
};

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

namespace Example
{
    public class getElementsInBatchExample
    {
        public void main()
        {
            
            // Configure HTTP basic authorization: Basic
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Ticket
            Configuration.Default.ApiKey.Add("alf_ticket", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("alf_ticket", "Bearer");

            var apiInstance = new ElementApi();
            var projectId = projectId_example;  // String | project identifier
            var refId = refId_example;  // String | ref identifier
            var body = new Elements(); // Elements | 
            var commitId = commitId_example;  // String | commit identifier (optional) 
            var extended = true;  // Boolean | extended flag (optional) 
            var depth = 56;  // Integer |  (optional) 

            try
            {
                // Get element(s) in batch
                RejectableElements result = apiInstance.getElementsInBatch(projectId, refId, body, commitId, extended, depth);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ElementApi.getElementsInBatch: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure HTTP basic authorization: Basic
Swagger\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Swagger\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');
// Configure API key authorization: Ticket
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('alf_ticket', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('alf_ticket', 'Bearer');

$api_instance = new Swagger\Client\Api\ElementApi();
$projectId = projectId_example; // String | project identifier
$refId = refId_example; // String | ref identifier
$body = ; // Elements | 
$commitId = commitId_example; // String | commit identifier
$extended = true; // Boolean | extended flag
$depth = 56; // Integer | 

try {
    $result = $api_instance->getElementsInBatch($projectId, $refId, $body, $commitId, $extended, $depth);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ElementApi->getElementsInBatch: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ElementApi;

# Configure HTTP basic authorization: Basic
$WWW::SwaggerClient::Configuration::username = 'YOUR_USERNAME';
$WWW::SwaggerClient::Configuration::password = 'YOUR_PASSWORD';
# Configure API key authorization: Ticket
$WWW::SwaggerClient::Configuration::api_key->{'alf_ticket'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'alf_ticket'} = "Bearer";

my $api_instance = WWW::SwaggerClient::ElementApi->new();
my $projectId = projectId_example; # String | project identifier
my $refId = refId_example; # String | ref identifier
my $body = WWW::SwaggerClient::Object::Elements->new(); # Elements | 
my $commitId = commitId_example; # String | commit identifier
my $extended = true; # Boolean | extended flag
my $depth = 56; # Integer | 

eval { 
    my $result = $api_instance->getElementsInBatch(projectId => $projectId, refId => $refId, body => $body, commitId => $commitId, extended => $extended, depth => $depth);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ElementApi->getElementsInBatch: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure HTTP basic authorization: Basic
swagger_client.configuration.username = 'YOUR_USERNAME'
swagger_client.configuration.password = 'YOUR_PASSWORD'
# Configure API key authorization: Ticket
swagger_client.configuration.api_key['alf_ticket'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['alf_ticket'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.ElementApi()
projectId = projectId_example # String | project identifier
refId = refId_example # String | ref identifier
body =  # Elements | 
commitId = commitId_example # String | commit identifier (optional)
extended = true # Boolean | extended flag (optional)
depth = 56 # Integer |  (optional)

try: 
    # Get element(s) in batch
    api_response = api_instance.get_elements_in_batch(projectId, refId, body, commitId=commitId, extended=extended, depth=depth)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ElementApi->getElementsInBatch: %s\n" % e)

Parameters

Path parameters
Name Description
project_id*
String
project identifier
Required
ref_id*
String
ref identifier
Required
Body parameters
Name Description
body *
Query parameters
Name Description
commitId
String
commit identifier
extended
Boolean
extended flag
depth
Integer

Responses

Status: 200 - OK

Status: 401 - Unauthorized

Status: 403 - Forbidden

Status: 404 - The specified resource was not found

Status: 500 - Internal server error

Status: default - Unknown


postElements

Create and/or update element(s)


/projects/{project_id}/refs/{ref_id}/elements

Usage and SDK Samples

curl -X POST -H "Authorization: Basic [[basicHash]]" "https://localhost/alfresco/service/projects/{project_id}/refs/{ref_id}/elements?commitId=&extended="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ElementApi;

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

public class ElementApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure HTTP basic authorization: Basic
        HttpBasicAuth Basic = (HttpBasicAuth) defaultClient.getAuthentication("Basic");
        Basic.setUsername("YOUR USERNAME");
        Basic.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Ticket
        ApiKeyAuth Ticket = (ApiKeyAuth) defaultClient.getAuthentication("Ticket");
        Ticket.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Ticket.setApiKeyPrefix("Token");

        ElementApi apiInstance = new ElementApi();
        String projectId = projectId_example; // String | project identifier
        String refId = refId_example; // String | ref identifier
        Elements body = ; // Elements | 
        String commitId = commitId_example; // String | commit identifier
        Boolean extended = true; // Boolean | extended flag
        try {
            RejectableElements result = apiInstance.postElements(projectId, refId, body, commitId, extended);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ElementApi#postElements");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ElementApi;

public class ElementApiExample {

    public static void main(String[] args) {
        ElementApi apiInstance = new ElementApi();
        String projectId = projectId_example; // String | project identifier
        String refId = refId_example; // String | ref identifier
        Elements body = ; // Elements | 
        String commitId = commitId_example; // String | commit identifier
        Boolean extended = true; // Boolean | extended flag
        try {
            RejectableElements result = apiInstance.postElements(projectId, refId, body, commitId, extended);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ElementApi#postElements");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: Basic)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];

// Configure API key authorization: (authentication scheme: Ticket)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"alf_ticket"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"alf_ticket"];

String *projectId = projectId_example; // project identifier
String *refId = refId_example; // ref identifier
Elements *body = ; // 
String *commitId = commitId_example; // commit identifier (optional)
Boolean *extended = true; // extended flag (optional)

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

// Create and/or update element(s)
[apiInstance postElementsWith:projectId
    refId:refId
    body:body
    commitId:commitId
    extended:extended
              completionHandler: ^(RejectableElements output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ModelManagementService = require('model_management_service');
var defaultClient = ModelManagementService.ApiClient.instance;

// Configure HTTP basic authorization: Basic
var Basic = defaultClient.authentications['Basic'];
Basic.username = 'YOUR USERNAME'
Basic.password = 'YOUR PASSWORD'

// Configure API key authorization: Ticket
var Ticket = defaultClient.authentications['Ticket'];
Ticket.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Ticket.apiKeyPrefix['alf_ticket'] = "Token"

var api = new ModelManagementService.ElementApi()

var projectId = projectId_example; // {String} project identifier

var refId = refId_example; // {String} ref identifier

var body = ; // {Elements} 

var opts = { 
  'commitId': commitId_example, // {String} commit identifier
  'extended': true // {Boolean} extended flag
};

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

namespace Example
{
    public class postElementsExample
    {
        public void main()
        {
            
            // Configure HTTP basic authorization: Basic
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Ticket
            Configuration.Default.ApiKey.Add("alf_ticket", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("alf_ticket", "Bearer");

            var apiInstance = new ElementApi();
            var projectId = projectId_example;  // String | project identifier
            var refId = refId_example;  // String | ref identifier
            var body = new Elements(); // Elements | 
            var commitId = commitId_example;  // String | commit identifier (optional) 
            var extended = true;  // Boolean | extended flag (optional) 

            try
            {
                // Create and/or update element(s)
                RejectableElements result = apiInstance.postElements(projectId, refId, body, commitId, extended);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ElementApi.postElements: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure HTTP basic authorization: Basic
Swagger\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Swagger\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');
// Configure API key authorization: Ticket
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('alf_ticket', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('alf_ticket', 'Bearer');

$api_instance = new Swagger\Client\Api\ElementApi();
$projectId = projectId_example; // String | project identifier
$refId = refId_example; // String | ref identifier
$body = ; // Elements | 
$commitId = commitId_example; // String | commit identifier
$extended = true; // Boolean | extended flag

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

# Configure HTTP basic authorization: Basic
$WWW::SwaggerClient::Configuration::username = 'YOUR_USERNAME';
$WWW::SwaggerClient::Configuration::password = 'YOUR_PASSWORD';
# Configure API key authorization: Ticket
$WWW::SwaggerClient::Configuration::api_key->{'alf_ticket'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'alf_ticket'} = "Bearer";

my $api_instance = WWW::SwaggerClient::ElementApi->new();
my $projectId = projectId_example; # String | project identifier
my $refId = refId_example; # String | ref identifier
my $body = WWW::SwaggerClient::Object::Elements->new(); # Elements | 
my $commitId = commitId_example; # String | commit identifier
my $extended = true; # Boolean | extended flag

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

# Configure HTTP basic authorization: Basic
swagger_client.configuration.username = 'YOUR_USERNAME'
swagger_client.configuration.password = 'YOUR_PASSWORD'
# Configure API key authorization: Ticket
swagger_client.configuration.api_key['alf_ticket'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['alf_ticket'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.ElementApi()
projectId = projectId_example # String | project identifier
refId = refId_example # String | ref identifier
body =  # Elements | 
commitId = commitId_example # String | commit identifier (optional)
extended = true # Boolean | extended flag (optional)

try: 
    # Create and/or update element(s)
    api_response = api_instance.post_elements(projectId, refId, body, commitId=commitId, extended=extended)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ElementApi->postElements: %s\n" % e)

Parameters

Path parameters
Name Description
project_id*
String
project identifier
Required
ref_id*
String
ref identifier
Required
Body parameters
Name Description
body *
Query parameters
Name Description
commitId
String
commit identifier
extended
Boolean
extended flag

Responses

Status: 200 - OK

Status: 401 - Unauthorized

Status: 403 - Forbidden

Status: 404 - The specified resource was not found

Status: 500 - Internal server error

Status: default - Unknown


Org

deleteOrg

Delete org


/orgs/{org_id}

Usage and SDK Samples

curl -X DELETE -H "Authorization: Basic [[basicHash]]" "https://localhost/alfresco/service/orgs/{org_id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.OrgApi;

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

public class OrgApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure HTTP basic authorization: Basic
        HttpBasicAuth Basic = (HttpBasicAuth) defaultClient.getAuthentication("Basic");
        Basic.setUsername("YOUR USERNAME");
        Basic.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Ticket
        ApiKeyAuth Ticket = (ApiKeyAuth) defaultClient.getAuthentication("Ticket");
        Ticket.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Ticket.setApiKeyPrefix("Token");

        OrgApi apiInstance = new OrgApi();
        String orgId = orgId_example; // String | org identifier
        try {
            Orgs result = apiInstance.deleteOrg(orgId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling OrgApi#deleteOrg");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.OrgApi;

public class OrgApiExample {

    public static void main(String[] args) {
        OrgApi apiInstance = new OrgApi();
        String orgId = orgId_example; // String | org identifier
        try {
            Orgs result = apiInstance.deleteOrg(orgId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling OrgApi#deleteOrg");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: Basic)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];

// Configure API key authorization: (authentication scheme: Ticket)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"alf_ticket"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"alf_ticket"];

String *orgId = orgId_example; // org identifier

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

// Delete org
[apiInstance deleteOrgWith:orgId
              completionHandler: ^(Orgs output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ModelManagementService = require('model_management_service');
var defaultClient = ModelManagementService.ApiClient.instance;

// Configure HTTP basic authorization: Basic
var Basic = defaultClient.authentications['Basic'];
Basic.username = 'YOUR USERNAME'
Basic.password = 'YOUR PASSWORD'

// Configure API key authorization: Ticket
var Ticket = defaultClient.authentications['Ticket'];
Ticket.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Ticket.apiKeyPrefix['alf_ticket'] = "Token"

var api = new ModelManagementService.OrgApi()

var orgId = orgId_example; // {String} org identifier


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

namespace Example
{
    public class deleteOrgExample
    {
        public void main()
        {
            
            // Configure HTTP basic authorization: Basic
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Ticket
            Configuration.Default.ApiKey.Add("alf_ticket", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("alf_ticket", "Bearer");

            var apiInstance = new OrgApi();
            var orgId = orgId_example;  // String | org identifier

            try
            {
                // Delete org
                Orgs result = apiInstance.deleteOrg(orgId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling OrgApi.deleteOrg: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure HTTP basic authorization: Basic
Swagger\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Swagger\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');
// Configure API key authorization: Ticket
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('alf_ticket', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('alf_ticket', 'Bearer');

$api_instance = new Swagger\Client\Api\OrgApi();
$orgId = orgId_example; // String | org identifier

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

# Configure HTTP basic authorization: Basic
$WWW::SwaggerClient::Configuration::username = 'YOUR_USERNAME';
$WWW::SwaggerClient::Configuration::password = 'YOUR_PASSWORD';
# Configure API key authorization: Ticket
$WWW::SwaggerClient::Configuration::api_key->{'alf_ticket'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'alf_ticket'} = "Bearer";

my $api_instance = WWW::SwaggerClient::OrgApi->new();
my $orgId = orgId_example; # String | org identifier

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

# Configure HTTP basic authorization: Basic
swagger_client.configuration.username = 'YOUR_USERNAME'
swagger_client.configuration.password = 'YOUR_PASSWORD'
# Configure API key authorization: Ticket
swagger_client.configuration.api_key['alf_ticket'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['alf_ticket'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.OrgApi()
orgId = orgId_example # String | org identifier

try: 
    # Delete org
    api_response = api_instance.delete_org(orgId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling OrgApi->deleteOrg: %s\n" % e)

Parameters

Path parameters
Name Description
org_id*
String
org identifier
Required

Responses

Status: 200 - OK

Status: 401 - Unauthorized

Status: 403 - Forbidden

Status: 404 - The specified resource was not found

Status: 500 - Internal server error

Status: default - Unknown


getOrg

Get org


/orgs/{org_id}

Usage and SDK Samples

curl -X GET -H "Authorization: Basic [[basicHash]]" "https://localhost/alfresco/service/orgs/{org_id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.OrgApi;

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

public class OrgApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure HTTP basic authorization: Basic
        HttpBasicAuth Basic = (HttpBasicAuth) defaultClient.getAuthentication("Basic");
        Basic.setUsername("YOUR USERNAME");
        Basic.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Ticket
        ApiKeyAuth Ticket = (ApiKeyAuth) defaultClient.getAuthentication("Ticket");
        Ticket.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Ticket.setApiKeyPrefix("Token");

        OrgApi apiInstance = new OrgApi();
        String orgId = orgId_example; // String | org identifier
        try {
            Orgs result = apiInstance.getOrg(orgId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling OrgApi#getOrg");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.OrgApi;

public class OrgApiExample {

    public static void main(String[] args) {
        OrgApi apiInstance = new OrgApi();
        String orgId = orgId_example; // String | org identifier
        try {
            Orgs result = apiInstance.getOrg(orgId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling OrgApi#getOrg");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: Basic)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];

// Configure API key authorization: (authentication scheme: Ticket)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"alf_ticket"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"alf_ticket"];

String *orgId = orgId_example; // org identifier

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

// Get org
[apiInstance getOrgWith:orgId
              completionHandler: ^(Orgs output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ModelManagementService = require('model_management_service');
var defaultClient = ModelManagementService.ApiClient.instance;

// Configure HTTP basic authorization: Basic
var Basic = defaultClient.authentications['Basic'];
Basic.username = 'YOUR USERNAME'
Basic.password = 'YOUR PASSWORD'

// Configure API key authorization: Ticket
var Ticket = defaultClient.authentications['Ticket'];
Ticket.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Ticket.apiKeyPrefix['alf_ticket'] = "Token"

var api = new ModelManagementService.OrgApi()

var orgId = orgId_example; // {String} org identifier


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

namespace Example
{
    public class getOrgExample
    {
        public void main()
        {
            
            // Configure HTTP basic authorization: Basic
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Ticket
            Configuration.Default.ApiKey.Add("alf_ticket", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("alf_ticket", "Bearer");

            var apiInstance = new OrgApi();
            var orgId = orgId_example;  // String | org identifier

            try
            {
                // Get org
                Orgs result = apiInstance.getOrg(orgId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling OrgApi.getOrg: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure HTTP basic authorization: Basic
Swagger\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Swagger\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');
// Configure API key authorization: Ticket
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('alf_ticket', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('alf_ticket', 'Bearer');

$api_instance = new Swagger\Client\Api\OrgApi();
$orgId = orgId_example; // String | org identifier

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

# Configure HTTP basic authorization: Basic
$WWW::SwaggerClient::Configuration::username = 'YOUR_USERNAME';
$WWW::SwaggerClient::Configuration::password = 'YOUR_PASSWORD';
# Configure API key authorization: Ticket
$WWW::SwaggerClient::Configuration::api_key->{'alf_ticket'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'alf_ticket'} = "Bearer";

my $api_instance = WWW::SwaggerClient::OrgApi->new();
my $orgId = orgId_example; # String | org identifier

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

# Configure HTTP basic authorization: Basic
swagger_client.configuration.username = 'YOUR_USERNAME'
swagger_client.configuration.password = 'YOUR_PASSWORD'
# Configure API key authorization: Ticket
swagger_client.configuration.api_key['alf_ticket'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['alf_ticket'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.OrgApi()
orgId = orgId_example # String | org identifier

try: 
    # Get org
    api_response = api_instance.get_org(orgId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling OrgApi->getOrg: %s\n" % e)

Parameters

Path parameters
Name Description
org_id*
String
org identifier
Required

Responses

Status: 200 - OK

Status: 401 - Unauthorized

Status: 403 - Forbidden

Status: 404 - The specified resource was not found

Status: 500 - Internal server error

Status: default - Unknown


getOrgs

Get all orgs


/orgs

Usage and SDK Samples

curl -X GET -H "Authorization: Basic [[basicHash]]" "https://localhost/alfresco/service/orgs"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.OrgApi;

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

public class OrgApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure HTTP basic authorization: Basic
        HttpBasicAuth Basic = (HttpBasicAuth) defaultClient.getAuthentication("Basic");
        Basic.setUsername("YOUR USERNAME");
        Basic.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Ticket
        ApiKeyAuth Ticket = (ApiKeyAuth) defaultClient.getAuthentication("Ticket");
        Ticket.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Ticket.setApiKeyPrefix("Token");

        OrgApi apiInstance = new OrgApi();
        try {
            Orgs result = apiInstance.getOrgs();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling OrgApi#getOrgs");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.OrgApi;

public class OrgApiExample {

    public static void main(String[] args) {
        OrgApi apiInstance = new OrgApi();
        try {
            Orgs result = apiInstance.getOrgs();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling OrgApi#getOrgs");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: Basic)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];

// Configure API key authorization: (authentication scheme: Ticket)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"alf_ticket"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"alf_ticket"];


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

// Get all orgs
[apiInstance getOrgsWithCompletionHandler: 
              ^(Orgs output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ModelManagementService = require('model_management_service');
var defaultClient = ModelManagementService.ApiClient.instance;

// Configure HTTP basic authorization: Basic
var Basic = defaultClient.authentications['Basic'];
Basic.username = 'YOUR USERNAME'
Basic.password = 'YOUR PASSWORD'

// Configure API key authorization: Ticket
var Ticket = defaultClient.authentications['Ticket'];
Ticket.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Ticket.apiKeyPrefix['alf_ticket'] = "Token"

var api = new ModelManagementService.OrgApi()

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

namespace Example
{
    public class getOrgsExample
    {
        public void main()
        {
            
            // Configure HTTP basic authorization: Basic
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Ticket
            Configuration.Default.ApiKey.Add("alf_ticket", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("alf_ticket", "Bearer");

            var apiInstance = new OrgApi();

            try
            {
                // Get all orgs
                Orgs result = apiInstance.getOrgs();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling OrgApi.getOrgs: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure HTTP basic authorization: Basic
Swagger\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Swagger\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');
// Configure API key authorization: Ticket
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('alf_ticket', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('alf_ticket', 'Bearer');

$api_instance = new Swagger\Client\Api\OrgApi();

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

# Configure HTTP basic authorization: Basic
$WWW::SwaggerClient::Configuration::username = 'YOUR_USERNAME';
$WWW::SwaggerClient::Configuration::password = 'YOUR_PASSWORD';
# Configure API key authorization: Ticket
$WWW::SwaggerClient::Configuration::api_key->{'alf_ticket'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'alf_ticket'} = "Bearer";

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

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

# Configure HTTP basic authorization: Basic
swagger_client.configuration.username = 'YOUR_USERNAME'
swagger_client.configuration.password = 'YOUR_PASSWORD'
# Configure API key authorization: Ticket
swagger_client.configuration.api_key['alf_ticket'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['alf_ticket'] = 'Bearer'

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

try: 
    # Get all orgs
    api_response = api_instance.get_orgs()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling OrgApi->getOrgs: %s\n" % e)

Parameters

Responses

Status: 200 - OK

Status: 401 - Unauthorized

Status: 403 - Forbidden

Status: 404 - The specified resource was not found

Status: 500 - Internal server error

Status: default - Unknown


postOrgs

Create and/or update org(s)


/orgs

Usage and SDK Samples

curl -X POST -H "Authorization: Basic [[basicHash]]" "https://localhost/alfresco/service/orgs"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.OrgApi;

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

public class OrgApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure HTTP basic authorization: Basic
        HttpBasicAuth Basic = (HttpBasicAuth) defaultClient.getAuthentication("Basic");
        Basic.setUsername("YOUR USERNAME");
        Basic.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Ticket
        ApiKeyAuth Ticket = (ApiKeyAuth) defaultClient.getAuthentication("Ticket");
        Ticket.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Ticket.setApiKeyPrefix("Token");

        OrgApi apiInstance = new OrgApi();
        Orgs body = ; // Orgs | 
        try {
            Orgs result = apiInstance.postOrgs(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling OrgApi#postOrgs");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.OrgApi;

public class OrgApiExample {

    public static void main(String[] args) {
        OrgApi apiInstance = new OrgApi();
        Orgs body = ; // Orgs | 
        try {
            Orgs result = apiInstance.postOrgs(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling OrgApi#postOrgs");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: Basic)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];

// Configure API key authorization: (authentication scheme: Ticket)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"alf_ticket"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"alf_ticket"];

Orgs *body = ; // 

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

// Create and/or update org(s)
[apiInstance postOrgsWith:body
              completionHandler: ^(Orgs output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ModelManagementService = require('model_management_service');
var defaultClient = ModelManagementService.ApiClient.instance;

// Configure HTTP basic authorization: Basic
var Basic = defaultClient.authentications['Basic'];
Basic.username = 'YOUR USERNAME'
Basic.password = 'YOUR PASSWORD'

// Configure API key authorization: Ticket
var Ticket = defaultClient.authentications['Ticket'];
Ticket.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Ticket.apiKeyPrefix['alf_ticket'] = "Token"

var api = new ModelManagementService.OrgApi()

var body = ; // {Orgs} 


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

namespace Example
{
    public class postOrgsExample
    {
        public void main()
        {
            
            // Configure HTTP basic authorization: Basic
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Ticket
            Configuration.Default.ApiKey.Add("alf_ticket", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("alf_ticket", "Bearer");

            var apiInstance = new OrgApi();
            var body = new Orgs(); // Orgs | 

            try
            {
                // Create and/or update org(s)
                Orgs result = apiInstance.postOrgs(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling OrgApi.postOrgs: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure HTTP basic authorization: Basic
Swagger\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Swagger\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');
// Configure API key authorization: Ticket
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('alf_ticket', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('alf_ticket', 'Bearer');

$api_instance = new Swagger\Client\Api\OrgApi();
$body = ; // Orgs | 

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

# Configure HTTP basic authorization: Basic
$WWW::SwaggerClient::Configuration::username = 'YOUR_USERNAME';
$WWW::SwaggerClient::Configuration::password = 'YOUR_PASSWORD';
# Configure API key authorization: Ticket
$WWW::SwaggerClient::Configuration::api_key->{'alf_ticket'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'alf_ticket'} = "Bearer";

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

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

# Configure HTTP basic authorization: Basic
swagger_client.configuration.username = 'YOUR_USERNAME'
swagger_client.configuration.password = 'YOUR_PASSWORD'
# Configure API key authorization: Ticket
swagger_client.configuration.api_key['alf_ticket'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['alf_ticket'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.OrgApi()
body =  # Orgs | 

try: 
    # Create and/or update org(s)
    api_response = api_instance.post_orgs(body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling OrgApi->postOrgs: %s\n" % e)

Parameters

Body parameters
Name Description
body *

Responses

Status: 200 - OK

Status: 401 - Unauthorized

Status: 403 - Forbidden

Status: 404 - The specified resource was not found

Status: 500 - Internal server error

Status: default - Unknown


Other

getGroups

Get groups


/projects/{project_id}/refs/{ref_id}/groups

Usage and SDK Samples

curl -X GET -H "Authorization: Basic [[basicHash]]" "https://localhost/alfresco/service/projects/{project_id}/refs/{ref_id}/groups"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.OtherApi;

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

public class OtherApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure HTTP basic authorization: Basic
        HttpBasicAuth Basic = (HttpBasicAuth) defaultClient.getAuthentication("Basic");
        Basic.setUsername("YOUR USERNAME");
        Basic.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Ticket
        ApiKeyAuth Ticket = (ApiKeyAuth) defaultClient.getAuthentication("Ticket");
        Ticket.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Ticket.setApiKeyPrefix("Token");

        OtherApi apiInstance = new OtherApi();
        String projectId = projectId_example; // String | project identifier
        String refId = refId_example; // String | ref identifier
        try {
            Groups result = apiInstance.getGroups(projectId, refId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling OtherApi#getGroups");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.OtherApi;

public class OtherApiExample {

    public static void main(String[] args) {
        OtherApi apiInstance = new OtherApi();
        String projectId = projectId_example; // String | project identifier
        String refId = refId_example; // String | ref identifier
        try {
            Groups result = apiInstance.getGroups(projectId, refId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling OtherApi#getGroups");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: Basic)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];

// Configure API key authorization: (authentication scheme: Ticket)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"alf_ticket"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"alf_ticket"];

String *projectId = projectId_example; // project identifier
String *refId = refId_example; // ref identifier

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

// Get groups
[apiInstance getGroupsWith:projectId
    refId:refId
              completionHandler: ^(Groups output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ModelManagementService = require('model_management_service');
var defaultClient = ModelManagementService.ApiClient.instance;

// Configure HTTP basic authorization: Basic
var Basic = defaultClient.authentications['Basic'];
Basic.username = 'YOUR USERNAME'
Basic.password = 'YOUR PASSWORD'

// Configure API key authorization: Ticket
var Ticket = defaultClient.authentications['Ticket'];
Ticket.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Ticket.apiKeyPrefix['alf_ticket'] = "Token"

var api = new ModelManagementService.OtherApi()

var projectId = projectId_example; // {String} project identifier

var refId = refId_example; // {String} ref identifier


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

namespace Example
{
    public class getGroupsExample
    {
        public void main()
        {
            
            // Configure HTTP basic authorization: Basic
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Ticket
            Configuration.Default.ApiKey.Add("alf_ticket", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("alf_ticket", "Bearer");

            var apiInstance = new OtherApi();
            var projectId = projectId_example;  // String | project identifier
            var refId = refId_example;  // String | ref identifier

            try
            {
                // Get groups
                Groups result = apiInstance.getGroups(projectId, refId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling OtherApi.getGroups: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure HTTP basic authorization: Basic
Swagger\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Swagger\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');
// Configure API key authorization: Ticket
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('alf_ticket', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('alf_ticket', 'Bearer');

$api_instance = new Swagger\Client\Api\OtherApi();
$projectId = projectId_example; // String | project identifier
$refId = refId_example; // String | ref identifier

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

# Configure HTTP basic authorization: Basic
$WWW::SwaggerClient::Configuration::username = 'YOUR_USERNAME';
$WWW::SwaggerClient::Configuration::password = 'YOUR_PASSWORD';
# Configure API key authorization: Ticket
$WWW::SwaggerClient::Configuration::api_key->{'alf_ticket'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'alf_ticket'} = "Bearer";

my $api_instance = WWW::SwaggerClient::OtherApi->new();
my $projectId = projectId_example; # String | project identifier
my $refId = refId_example; # String | ref identifier

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

# Configure HTTP basic authorization: Basic
swagger_client.configuration.username = 'YOUR_USERNAME'
swagger_client.configuration.password = 'YOUR_PASSWORD'
# Configure API key authorization: Ticket
swagger_client.configuration.api_key['alf_ticket'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['alf_ticket'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.OtherApi()
projectId = projectId_example # String | project identifier
refId = refId_example # String | ref identifier

try: 
    # Get groups
    api_response = api_instance.get_groups(projectId, refId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling OtherApi->getGroups: %s\n" % e)

Parameters

Path parameters
Name Description
project_id*
String
project identifier
Required
ref_id*
String
ref identifier
Required

Responses

Status: 200 - OK

Status: 401 - Unauthorized

Status: 403 - Forbidden

Status: 404 - The specified resource was not found

Status: 500 - Internal server error

Status: default - Unknown


getMounts

Get mounts


/projects/{project_id}/refs/{ref_id}/mounts

Usage and SDK Samples

curl -X GET -H "Authorization: Basic [[basicHash]]" "https://localhost/alfresco/service/projects/{project_id}/refs/{ref_id}/mounts"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.OtherApi;

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

public class OtherApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure HTTP basic authorization: Basic
        HttpBasicAuth Basic = (HttpBasicAuth) defaultClient.getAuthentication("Basic");
        Basic.setUsername("YOUR USERNAME");
        Basic.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Ticket
        ApiKeyAuth Ticket = (ApiKeyAuth) defaultClient.getAuthentication("Ticket");
        Ticket.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Ticket.setApiKeyPrefix("Token");

        OtherApi apiInstance = new OtherApi();
        String projectId = projectId_example; // String | project identifier
        String refId = refId_example; // String | ref identifier
        try {
            Mounts result = apiInstance.getMounts(projectId, refId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling OtherApi#getMounts");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.OtherApi;

public class OtherApiExample {

    public static void main(String[] args) {
        OtherApi apiInstance = new OtherApi();
        String projectId = projectId_example; // String | project identifier
        String refId = refId_example; // String | ref identifier
        try {
            Mounts result = apiInstance.getMounts(projectId, refId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling OtherApi#getMounts");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: Basic)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];

// Configure API key authorization: (authentication scheme: Ticket)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"alf_ticket"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"alf_ticket"];

String *projectId = projectId_example; // project identifier
String *refId = refId_example; // ref identifier

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

// Get mounts
[apiInstance getMountsWith:projectId
    refId:refId
              completionHandler: ^(Mounts output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ModelManagementService = require('model_management_service');
var defaultClient = ModelManagementService.ApiClient.instance;

// Configure HTTP basic authorization: Basic
var Basic = defaultClient.authentications['Basic'];
Basic.username = 'YOUR USERNAME'
Basic.password = 'YOUR PASSWORD'

// Configure API key authorization: Ticket
var Ticket = defaultClient.authentications['Ticket'];
Ticket.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Ticket.apiKeyPrefix['alf_ticket'] = "Token"

var api = new ModelManagementService.OtherApi()

var projectId = projectId_example; // {String} project identifier

var refId = refId_example; // {String} ref identifier


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

namespace Example
{
    public class getMountsExample
    {
        public void main()
        {
            
            // Configure HTTP basic authorization: Basic
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Ticket
            Configuration.Default.ApiKey.Add("alf_ticket", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("alf_ticket", "Bearer");

            var apiInstance = new OtherApi();
            var projectId = projectId_example;  // String | project identifier
            var refId = refId_example;  // String | ref identifier

            try
            {
                // Get mounts
                Mounts result = apiInstance.getMounts(projectId, refId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling OtherApi.getMounts: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure HTTP basic authorization: Basic
Swagger\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Swagger\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');
// Configure API key authorization: Ticket
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('alf_ticket', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('alf_ticket', 'Bearer');

$api_instance = new Swagger\Client\Api\OtherApi();
$projectId = projectId_example; // String | project identifier
$refId = refId_example; // String | ref identifier

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

# Configure HTTP basic authorization: Basic
$WWW::SwaggerClient::Configuration::username = 'YOUR_USERNAME';
$WWW::SwaggerClient::Configuration::password = 'YOUR_PASSWORD';
# Configure API key authorization: Ticket
$WWW::SwaggerClient::Configuration::api_key->{'alf_ticket'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'alf_ticket'} = "Bearer";

my $api_instance = WWW::SwaggerClient::OtherApi->new();
my $projectId = projectId_example; # String | project identifier
my $refId = refId_example; # String | ref identifier

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

# Configure HTTP basic authorization: Basic
swagger_client.configuration.username = 'YOUR_USERNAME'
swagger_client.configuration.password = 'YOUR_PASSWORD'
# Configure API key authorization: Ticket
swagger_client.configuration.api_key['alf_ticket'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['alf_ticket'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.OtherApi()
projectId = projectId_example # String | project identifier
refId = refId_example # String | ref identifier

try: 
    # Get mounts
    api_response = api_instance.get_mounts(projectId, refId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling OtherApi->getMounts: %s\n" % e)

Parameters

Path parameters
Name Description
project_id*
String
project identifier
Required
ref_id*
String
ref identifier
Required

Responses

Status: 200 - OK

Status: 401 - Unauthorized

Status: 403 - Forbidden

Status: 404 - The specified resource was not found

Status: 500 - Internal server error

Status: default - Unknown


htmlConverter

Converts HTML to requested format


/projects/{project_id}/refs/{ref_id}/convert

Usage and SDK Samples

curl -X POST -H "Authorization: Basic [[basicHash]]" "https://localhost/alfresco/service/projects/{project_id}/refs/{ref_id}/convert"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.OtherApi;

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

public class OtherApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure HTTP basic authorization: Basic
        HttpBasicAuth Basic = (HttpBasicAuth) defaultClient.getAuthentication("Basic");
        Basic.setUsername("YOUR USERNAME");
        Basic.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Ticket
        ApiKeyAuth Ticket = (ApiKeyAuth) defaultClient.getAuthentication("Ticket");
        Ticket.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Ticket.setApiKeyPrefix("Token");

        OtherApi apiInstance = new OtherApi();
        String projectId = projectId_example; // String | project identifier
        String refId = refId_example; // String | ref identifier
        ConvertRequest body = ; // ConvertRequest | 
        try {
            ConvertResponse result = apiInstance.htmlConverter(projectId, refId, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling OtherApi#htmlConverter");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.OtherApi;

public class OtherApiExample {

    public static void main(String[] args) {
        OtherApi apiInstance = new OtherApi();
        String projectId = projectId_example; // String | project identifier
        String refId = refId_example; // String | ref identifier
        ConvertRequest body = ; // ConvertRequest | 
        try {
            ConvertResponse result = apiInstance.htmlConverter(projectId, refId, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling OtherApi#htmlConverter");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: Basic)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];

// Configure API key authorization: (authentication scheme: Ticket)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"alf_ticket"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"alf_ticket"];

String *projectId = projectId_example; // project identifier
String *refId = refId_example; // ref identifier
ConvertRequest *body = ; // 

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

// Converts HTML to requested format
[apiInstance htmlConverterWith:projectId
    refId:refId
    body:body
              completionHandler: ^(ConvertResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ModelManagementService = require('model_management_service');
var defaultClient = ModelManagementService.ApiClient.instance;

// Configure HTTP basic authorization: Basic
var Basic = defaultClient.authentications['Basic'];
Basic.username = 'YOUR USERNAME'
Basic.password = 'YOUR PASSWORD'

// Configure API key authorization: Ticket
var Ticket = defaultClient.authentications['Ticket'];
Ticket.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Ticket.apiKeyPrefix['alf_ticket'] = "Token"

var api = new ModelManagementService.OtherApi()

var projectId = projectId_example; // {String} project identifier

var refId = refId_example; // {String} ref identifier

var body = ; // {ConvertRequest} 


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

namespace Example
{
    public class htmlConverterExample
    {
        public void main()
        {
            
            // Configure HTTP basic authorization: Basic
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Ticket
            Configuration.Default.ApiKey.Add("alf_ticket", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("alf_ticket", "Bearer");

            var apiInstance = new OtherApi();
            var projectId = projectId_example;  // String | project identifier
            var refId = refId_example;  // String | ref identifier
            var body = new ConvertRequest(); // ConvertRequest | 

            try
            {
                // Converts HTML to requested format
                ConvertResponse result = apiInstance.htmlConverter(projectId, refId, body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling OtherApi.htmlConverter: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure HTTP basic authorization: Basic
Swagger\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Swagger\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');
// Configure API key authorization: Ticket
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('alf_ticket', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('alf_ticket', 'Bearer');

$api_instance = new Swagger\Client\Api\OtherApi();
$projectId = projectId_example; // String | project identifier
$refId = refId_example; // String | ref identifier
$body = ; // ConvertRequest | 

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

# Configure HTTP basic authorization: Basic
$WWW::SwaggerClient::Configuration::username = 'YOUR_USERNAME';
$WWW::SwaggerClient::Configuration::password = 'YOUR_PASSWORD';
# Configure API key authorization: Ticket
$WWW::SwaggerClient::Configuration::api_key->{'alf_ticket'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'alf_ticket'} = "Bearer";

my $api_instance = WWW::SwaggerClient::OtherApi->new();
my $projectId = projectId_example; # String | project identifier
my $refId = refId_example; # String | ref identifier
my $body = WWW::SwaggerClient::Object::ConvertRequest->new(); # ConvertRequest | 

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

# Configure HTTP basic authorization: Basic
swagger_client.configuration.username = 'YOUR_USERNAME'
swagger_client.configuration.password = 'YOUR_PASSWORD'
# Configure API key authorization: Ticket
swagger_client.configuration.api_key['alf_ticket'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['alf_ticket'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.OtherApi()
projectId = projectId_example # String | project identifier
refId = refId_example # String | ref identifier
body =  # ConvertRequest | 

try: 
    # Converts HTML to requested format
    api_response = api_instance.html_converter(projectId, refId, body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling OtherApi->htmlConverter: %s\n" % e)

Parameters

Path parameters
Name Description
project_id*
String
project identifier
Required
ref_id*
String
ref identifier
Required
Body parameters
Name Description
body *

Responses

Status: 200 - OK

Status: 401 - Unauthorized

Status: 403 - Forbidden

Status: 404 - The specified resource was not found

Status: 500 - Internal server error

Status: default - Unknown


searchElements

Search for elements


/projects/{project_id}/refs/{ref_id}/search

Usage and SDK Samples

curl -X POST -H "Authorization: Basic [[basicHash]]" "https://localhost/alfresco/service/projects/{project_id}/refs/{ref_id}/search"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.OtherApi;

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

public class OtherApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure HTTP basic authorization: Basic
        HttpBasicAuth Basic = (HttpBasicAuth) defaultClient.getAuthentication("Basic");
        Basic.setUsername("YOUR USERNAME");
        Basic.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Ticket
        ApiKeyAuth Ticket = (ApiKeyAuth) defaultClient.getAuthentication("Ticket");
        Ticket.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Ticket.setApiKeyPrefix("Token");

        OtherApi apiInstance = new OtherApi();
        String projectId = projectId_example; // String | project identifier
        String refId = refId_example; // String | ref identifier
        SearchRequest body = ; // SearchRequest | 
        try {
            Elements result = apiInstance.searchElements(projectId, refId, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling OtherApi#searchElements");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.OtherApi;

public class OtherApiExample {

    public static void main(String[] args) {
        OtherApi apiInstance = new OtherApi();
        String projectId = projectId_example; // String | project identifier
        String refId = refId_example; // String | ref identifier
        SearchRequest body = ; // SearchRequest | 
        try {
            Elements result = apiInstance.searchElements(projectId, refId, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling OtherApi#searchElements");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: Basic)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];

// Configure API key authorization: (authentication scheme: Ticket)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"alf_ticket"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"alf_ticket"];

String *projectId = projectId_example; // project identifier
String *refId = refId_example; // ref identifier
SearchRequest *body = ; // 

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

// Search for elements
[apiInstance searchElementsWith:projectId
    refId:refId
    body:body
              completionHandler: ^(Elements output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ModelManagementService = require('model_management_service');
var defaultClient = ModelManagementService.ApiClient.instance;

// Configure HTTP basic authorization: Basic
var Basic = defaultClient.authentications['Basic'];
Basic.username = 'YOUR USERNAME'
Basic.password = 'YOUR PASSWORD'

// Configure API key authorization: Ticket
var Ticket = defaultClient.authentications['Ticket'];
Ticket.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Ticket.apiKeyPrefix['alf_ticket'] = "Token"

var api = new ModelManagementService.OtherApi()

var projectId = projectId_example; // {String} project identifier

var refId = refId_example; // {String} ref identifier

var body = ; // {SearchRequest} 


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

namespace Example
{
    public class searchElementsExample
    {
        public void main()
        {
            
            // Configure HTTP basic authorization: Basic
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Ticket
            Configuration.Default.ApiKey.Add("alf_ticket", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("alf_ticket", "Bearer");

            var apiInstance = new OtherApi();
            var projectId = projectId_example;  // String | project identifier
            var refId = refId_example;  // String | ref identifier
            var body = new SearchRequest(); // SearchRequest | 

            try
            {
                // Search for elements
                Elements result = apiInstance.searchElements(projectId, refId, body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling OtherApi.searchElements: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure HTTP basic authorization: Basic
Swagger\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Swagger\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');
// Configure API key authorization: Ticket
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('alf_ticket', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('alf_ticket', 'Bearer');

$api_instance = new Swagger\Client\Api\OtherApi();
$projectId = projectId_example; // String | project identifier
$refId = refId_example; // String | ref identifier
$body = ; // SearchRequest | 

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

# Configure HTTP basic authorization: Basic
$WWW::SwaggerClient::Configuration::username = 'YOUR_USERNAME';
$WWW::SwaggerClient::Configuration::password = 'YOUR_PASSWORD';
# Configure API key authorization: Ticket
$WWW::SwaggerClient::Configuration::api_key->{'alf_ticket'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'alf_ticket'} = "Bearer";

my $api_instance = WWW::SwaggerClient::OtherApi->new();
my $projectId = projectId_example; # String | project identifier
my $refId = refId_example; # String | ref identifier
my $body = WWW::SwaggerClient::Object::SearchRequest->new(); # SearchRequest | 

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

# Configure HTTP basic authorization: Basic
swagger_client.configuration.username = 'YOUR_USERNAME'
swagger_client.configuration.password = 'YOUR_PASSWORD'
# Configure API key authorization: Ticket
swagger_client.configuration.api_key['alf_ticket'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['alf_ticket'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.OtherApi()
projectId = projectId_example # String | project identifier
refId = refId_example # String | ref identifier
body =  # SearchRequest | 

try: 
    # Search for elements
    api_response = api_instance.search_elements(projectId, refId, body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling OtherApi->searchElements: %s\n" % e)

Parameters

Path parameters
Name Description
project_id*
String
project identifier
Required
ref_id*
String
ref identifier
Required
Body parameters
Name Description
body *

Responses

Status: 200 - OK

Status: 401 - Unauthorized

Status: 403 - Forbidden

Status: 404 - The specified resource was not found

Status: 500 - Internal server error

Status: default - Unknown


Project

deleteProject

Delete project


/projects/{project_id}

Usage and SDK Samples

curl -X DELETE -H "Authorization: Basic [[basicHash]]" "https://localhost/alfresco/service/projects/{project_id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ProjectApi;

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

public class ProjectApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure HTTP basic authorization: Basic
        HttpBasicAuth Basic = (HttpBasicAuth) defaultClient.getAuthentication("Basic");
        Basic.setUsername("YOUR USERNAME");
        Basic.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Ticket
        ApiKeyAuth Ticket = (ApiKeyAuth) defaultClient.getAuthentication("Ticket");
        Ticket.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Ticket.setApiKeyPrefix("Token");

        ProjectApi apiInstance = new ProjectApi();
        String projectId = projectId_example; // String | project identifier
        try {
            Projects result = apiInstance.deleteProject(projectId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProjectApi#deleteProject");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ProjectApi;

public class ProjectApiExample {

    public static void main(String[] args) {
        ProjectApi apiInstance = new ProjectApi();
        String projectId = projectId_example; // String | project identifier
        try {
            Projects result = apiInstance.deleteProject(projectId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProjectApi#deleteProject");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: Basic)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];

// Configure API key authorization: (authentication scheme: Ticket)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"alf_ticket"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"alf_ticket"];

String *projectId = projectId_example; // project identifier

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

// Delete project
[apiInstance deleteProjectWith:projectId
              completionHandler: ^(Projects output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ModelManagementService = require('model_management_service');
var defaultClient = ModelManagementService.ApiClient.instance;

// Configure HTTP basic authorization: Basic
var Basic = defaultClient.authentications['Basic'];
Basic.username = 'YOUR USERNAME'
Basic.password = 'YOUR PASSWORD'

// Configure API key authorization: Ticket
var Ticket = defaultClient.authentications['Ticket'];
Ticket.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Ticket.apiKeyPrefix['alf_ticket'] = "Token"

var api = new ModelManagementService.ProjectApi()

var projectId = projectId_example; // {String} project identifier


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

namespace Example
{
    public class deleteProjectExample
    {
        public void main()
        {
            
            // Configure HTTP basic authorization: Basic
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Ticket
            Configuration.Default.ApiKey.Add("alf_ticket", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("alf_ticket", "Bearer");

            var apiInstance = new ProjectApi();
            var projectId = projectId_example;  // String | project identifier

            try
            {
                // Delete project
                Projects result = apiInstance.deleteProject(projectId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ProjectApi.deleteProject: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure HTTP basic authorization: Basic
Swagger\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Swagger\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');
// Configure API key authorization: Ticket
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('alf_ticket', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('alf_ticket', 'Bearer');

$api_instance = new Swagger\Client\Api\ProjectApi();
$projectId = projectId_example; // String | project identifier

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

# Configure HTTP basic authorization: Basic
$WWW::SwaggerClient::Configuration::username = 'YOUR_USERNAME';
$WWW::SwaggerClient::Configuration::password = 'YOUR_PASSWORD';
# Configure API key authorization: Ticket
$WWW::SwaggerClient::Configuration::api_key->{'alf_ticket'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'alf_ticket'} = "Bearer";

my $api_instance = WWW::SwaggerClient::ProjectApi->new();
my $projectId = projectId_example; # String | project identifier

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

# Configure HTTP basic authorization: Basic
swagger_client.configuration.username = 'YOUR_USERNAME'
swagger_client.configuration.password = 'YOUR_PASSWORD'
# Configure API key authorization: Ticket
swagger_client.configuration.api_key['alf_ticket'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['alf_ticket'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.ProjectApi()
projectId = projectId_example # String | project identifier

try: 
    # Delete project
    api_response = api_instance.delete_project(projectId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ProjectApi->deleteProject: %s\n" % e)

Parameters

Path parameters
Name Description
project_id*
String
project identifier
Required

Responses

Status: 200 - OK

Status: 401 - Unauthorized

Status: 403 - Forbidden

Status: 404 - The specified resource was not found

Status: 500 - Internal server error

Status: default - Unknown


getProject

Get project


/projects/{project_id}

Usage and SDK Samples

curl -X GET -H "Authorization: Basic [[basicHash]]" "https://localhost/alfresco/service/projects/{project_id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ProjectApi;

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

public class ProjectApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure HTTP basic authorization: Basic
        HttpBasicAuth Basic = (HttpBasicAuth) defaultClient.getAuthentication("Basic");
        Basic.setUsername("YOUR USERNAME");
        Basic.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Ticket
        ApiKeyAuth Ticket = (ApiKeyAuth) defaultClient.getAuthentication("Ticket");
        Ticket.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Ticket.setApiKeyPrefix("Token");

        ProjectApi apiInstance = new ProjectApi();
        String projectId = projectId_example; // String | project identifier
        try {
            Projects result = apiInstance.getProject(projectId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProjectApi#getProject");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ProjectApi;

public class ProjectApiExample {

    public static void main(String[] args) {
        ProjectApi apiInstance = new ProjectApi();
        String projectId = projectId_example; // String | project identifier
        try {
            Projects result = apiInstance.getProject(projectId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProjectApi#getProject");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: Basic)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];

// Configure API key authorization: (authentication scheme: Ticket)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"alf_ticket"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"alf_ticket"];

String *projectId = projectId_example; // project identifier

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

// Get project
[apiInstance getProjectWith:projectId
              completionHandler: ^(Projects output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ModelManagementService = require('model_management_service');
var defaultClient = ModelManagementService.ApiClient.instance;

// Configure HTTP basic authorization: Basic
var Basic = defaultClient.authentications['Basic'];
Basic.username = 'YOUR USERNAME'
Basic.password = 'YOUR PASSWORD'

// Configure API key authorization: Ticket
var Ticket = defaultClient.authentications['Ticket'];
Ticket.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Ticket.apiKeyPrefix['alf_ticket'] = "Token"

var api = new ModelManagementService.ProjectApi()

var projectId = projectId_example; // {String} project identifier


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

namespace Example
{
    public class getProjectExample
    {
        public void main()
        {
            
            // Configure HTTP basic authorization: Basic
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Ticket
            Configuration.Default.ApiKey.Add("alf_ticket", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("alf_ticket", "Bearer");

            var apiInstance = new ProjectApi();
            var projectId = projectId_example;  // String | project identifier

            try
            {
                // Get project
                Projects result = apiInstance.getProject(projectId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ProjectApi.getProject: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure HTTP basic authorization: Basic
Swagger\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Swagger\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');
// Configure API key authorization: Ticket
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('alf_ticket', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('alf_ticket', 'Bearer');

$api_instance = new Swagger\Client\Api\ProjectApi();
$projectId = projectId_example; // String | project identifier

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

# Configure HTTP basic authorization: Basic
$WWW::SwaggerClient::Configuration::username = 'YOUR_USERNAME';
$WWW::SwaggerClient::Configuration::password = 'YOUR_PASSWORD';
# Configure API key authorization: Ticket
$WWW::SwaggerClient::Configuration::api_key->{'alf_ticket'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'alf_ticket'} = "Bearer";

my $api_instance = WWW::SwaggerClient::ProjectApi->new();
my $projectId = projectId_example; # String | project identifier

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

# Configure HTTP basic authorization: Basic
swagger_client.configuration.username = 'YOUR_USERNAME'
swagger_client.configuration.password = 'YOUR_PASSWORD'
# Configure API key authorization: Ticket
swagger_client.configuration.api_key['alf_ticket'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['alf_ticket'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.ProjectApi()
projectId = projectId_example # String | project identifier

try: 
    # Get project
    api_response = api_instance.get_project(projectId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ProjectApi->getProject: %s\n" % e)

Parameters

Path parameters
Name Description
project_id*
String
project identifier
Required

Responses

Status: 200 - OK

Status: 401 - Unauthorized

Status: 403 - Forbidden

Status: 404 - The specified resource was not found

Status: 500 - Internal server error

Status: default - Unknown


getProjectCommit

Get project commit


/projects/{project_id}/commits/{commit_id}

Usage and SDK Samples

curl -X GET -H "Authorization: Basic [[basicHash]]" "https://localhost/alfresco/service/projects/{project_id}/commits/{commit_id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ProjectApi;

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

public class ProjectApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure HTTP basic authorization: Basic
        HttpBasicAuth Basic = (HttpBasicAuth) defaultClient.getAuthentication("Basic");
        Basic.setUsername("YOUR USERNAME");
        Basic.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Ticket
        ApiKeyAuth Ticket = (ApiKeyAuth) defaultClient.getAuthentication("Ticket");
        Ticket.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Ticket.setApiKeyPrefix("Token");

        ProjectApi apiInstance = new ProjectApi();
        String projectId = projectId_example; // String | project identifier
        String commitId = commitId_example; // String | commit identifier
        try {
            Commits result = apiInstance.getProjectCommit(projectId, commitId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProjectApi#getProjectCommit");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ProjectApi;

public class ProjectApiExample {

    public static void main(String[] args) {
        ProjectApi apiInstance = new ProjectApi();
        String projectId = projectId_example; // String | project identifier
        String commitId = commitId_example; // String | commit identifier
        try {
            Commits result = apiInstance.getProjectCommit(projectId, commitId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProjectApi#getProjectCommit");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: Basic)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];

// Configure API key authorization: (authentication scheme: Ticket)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"alf_ticket"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"alf_ticket"];

String *projectId = projectId_example; // project identifier
String *commitId = commitId_example; // commit identifier

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

// Get project commit
[apiInstance getProjectCommitWith:projectId
    commitId:commitId
              completionHandler: ^(Commits output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ModelManagementService = require('model_management_service');
var defaultClient = ModelManagementService.ApiClient.instance;

// Configure HTTP basic authorization: Basic
var Basic = defaultClient.authentications['Basic'];
Basic.username = 'YOUR USERNAME'
Basic.password = 'YOUR PASSWORD'

// Configure API key authorization: Ticket
var Ticket = defaultClient.authentications['Ticket'];
Ticket.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Ticket.apiKeyPrefix['alf_ticket'] = "Token"

var api = new ModelManagementService.ProjectApi()

var projectId = projectId_example; // {String} project identifier

var commitId = commitId_example; // {String} commit identifier


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

namespace Example
{
    public class getProjectCommitExample
    {
        public void main()
        {
            
            // Configure HTTP basic authorization: Basic
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Ticket
            Configuration.Default.ApiKey.Add("alf_ticket", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("alf_ticket", "Bearer");

            var apiInstance = new ProjectApi();
            var projectId = projectId_example;  // String | project identifier
            var commitId = commitId_example;  // String | commit identifier

            try
            {
                // Get project commit
                Commits result = apiInstance.getProjectCommit(projectId, commitId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ProjectApi.getProjectCommit: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure HTTP basic authorization: Basic
Swagger\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Swagger\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');
// Configure API key authorization: Ticket
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('alf_ticket', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('alf_ticket', 'Bearer');

$api_instance = new Swagger\Client\Api\ProjectApi();
$projectId = projectId_example; // String | project identifier
$commitId = commitId_example; // String | commit identifier

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

# Configure HTTP basic authorization: Basic
$WWW::SwaggerClient::Configuration::username = 'YOUR_USERNAME';
$WWW::SwaggerClient::Configuration::password = 'YOUR_PASSWORD';
# Configure API key authorization: Ticket
$WWW::SwaggerClient::Configuration::api_key->{'alf_ticket'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'alf_ticket'} = "Bearer";

my $api_instance = WWW::SwaggerClient::ProjectApi->new();
my $projectId = projectId_example; # String | project identifier
my $commitId = commitId_example; # String | commit identifier

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

# Configure HTTP basic authorization: Basic
swagger_client.configuration.username = 'YOUR_USERNAME'
swagger_client.configuration.password = 'YOUR_PASSWORD'
# Configure API key authorization: Ticket
swagger_client.configuration.api_key['alf_ticket'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['alf_ticket'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.ProjectApi()
projectId = projectId_example # String | project identifier
commitId = commitId_example # String | commit identifier

try: 
    # Get project commit
    api_response = api_instance.get_project_commit(projectId, commitId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ProjectApi->getProjectCommit: %s\n" % e)

Parameters

Path parameters
Name Description
project_id*
String
project identifier
Required
commit_id*
String
commit identifier
Required

Responses

Status: 200 - OK

Status: 401 - Unauthorized

Status: 403 - Forbidden

Status: 404 - The specified resource was not found

Status: 500 - Internal server error

Status: default - Unknown


getProjects

Get all projects


/projects

Usage and SDK Samples

curl -X GET -H "Authorization: Basic [[basicHash]]" "https://localhost/alfresco/service/projects"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ProjectApi;

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

public class ProjectApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure HTTP basic authorization: Basic
        HttpBasicAuth Basic = (HttpBasicAuth) defaultClient.getAuthentication("Basic");
        Basic.setUsername("YOUR USERNAME");
        Basic.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Ticket
        ApiKeyAuth Ticket = (ApiKeyAuth) defaultClient.getAuthentication("Ticket");
        Ticket.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Ticket.setApiKeyPrefix("Token");

        ProjectApi apiInstance = new ProjectApi();
        try {
            Projects result = apiInstance.getProjects();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProjectApi#getProjects");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ProjectApi;

public class ProjectApiExample {

    public static void main(String[] args) {
        ProjectApi apiInstance = new ProjectApi();
        try {
            Projects result = apiInstance.getProjects();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProjectApi#getProjects");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: Basic)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];

// Configure API key authorization: (authentication scheme: Ticket)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"alf_ticket"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"alf_ticket"];


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

// Get all projects
[apiInstance getProjectsWithCompletionHandler: 
              ^(Projects output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ModelManagementService = require('model_management_service');
var defaultClient = ModelManagementService.ApiClient.instance;

// Configure HTTP basic authorization: Basic
var Basic = defaultClient.authentications['Basic'];
Basic.username = 'YOUR USERNAME'
Basic.password = 'YOUR PASSWORD'

// Configure API key authorization: Ticket
var Ticket = defaultClient.authentications['Ticket'];
Ticket.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Ticket.apiKeyPrefix['alf_ticket'] = "Token"

var api = new ModelManagementService.ProjectApi()

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

namespace Example
{
    public class getProjectsExample
    {
        public void main()
        {
            
            // Configure HTTP basic authorization: Basic
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Ticket
            Configuration.Default.ApiKey.Add("alf_ticket", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("alf_ticket", "Bearer");

            var apiInstance = new ProjectApi();

            try
            {
                // Get all projects
                Projects result = apiInstance.getProjects();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ProjectApi.getProjects: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure HTTP basic authorization: Basic
Swagger\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Swagger\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');
// Configure API key authorization: Ticket
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('alf_ticket', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('alf_ticket', 'Bearer');

$api_instance = new Swagger\Client\Api\ProjectApi();

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

# Configure HTTP basic authorization: Basic
$WWW::SwaggerClient::Configuration::username = 'YOUR_USERNAME';
$WWW::SwaggerClient::Configuration::password = 'YOUR_PASSWORD';
# Configure API key authorization: Ticket
$WWW::SwaggerClient::Configuration::api_key->{'alf_ticket'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'alf_ticket'} = "Bearer";

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

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

# Configure HTTP basic authorization: Basic
swagger_client.configuration.username = 'YOUR_USERNAME'
swagger_client.configuration.password = 'YOUR_PASSWORD'
# Configure API key authorization: Ticket
swagger_client.configuration.api_key['alf_ticket'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['alf_ticket'] = 'Bearer'

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

try: 
    # Get all projects
    api_response = api_instance.get_projects()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ProjectApi->getProjects: %s\n" % e)

Parameters

Responses

Status: 200 - OK

Status: 401 - Unauthorized

Status: 403 - Forbidden

Status: 404 - The specified resource was not found

Status: 500 - Internal server error

Status: default - Unknown


getProjectsByOrg

Get all projects in org


/orgs/{org_id}/projects

Usage and SDK Samples

curl -X GET -H "Authorization: Basic [[basicHash]]" "https://localhost/alfresco/service/orgs/{org_id}/projects"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ProjectApi;

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

public class ProjectApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure HTTP basic authorization: Basic
        HttpBasicAuth Basic = (HttpBasicAuth) defaultClient.getAuthentication("Basic");
        Basic.setUsername("YOUR USERNAME");
        Basic.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Ticket
        ApiKeyAuth Ticket = (ApiKeyAuth) defaultClient.getAuthentication("Ticket");
        Ticket.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Ticket.setApiKeyPrefix("Token");

        ProjectApi apiInstance = new ProjectApi();
        String orgId = orgId_example; // String | org identifier
        try {
            Projects result = apiInstance.getProjectsByOrg(orgId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProjectApi#getProjectsByOrg");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ProjectApi;

public class ProjectApiExample {

    public static void main(String[] args) {
        ProjectApi apiInstance = new ProjectApi();
        String orgId = orgId_example; // String | org identifier
        try {
            Projects result = apiInstance.getProjectsByOrg(orgId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProjectApi#getProjectsByOrg");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: Basic)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];

// Configure API key authorization: (authentication scheme: Ticket)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"alf_ticket"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"alf_ticket"];

String *orgId = orgId_example; // org identifier

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

// Get all projects in org
[apiInstance getProjectsByOrgWith:orgId
              completionHandler: ^(Projects output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ModelManagementService = require('model_management_service');
var defaultClient = ModelManagementService.ApiClient.instance;

// Configure HTTP basic authorization: Basic
var Basic = defaultClient.authentications['Basic'];
Basic.username = 'YOUR USERNAME'
Basic.password = 'YOUR PASSWORD'

// Configure API key authorization: Ticket
var Ticket = defaultClient.authentications['Ticket'];
Ticket.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Ticket.apiKeyPrefix['alf_ticket'] = "Token"

var api = new ModelManagementService.ProjectApi()

var orgId = orgId_example; // {String} org identifier


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

namespace Example
{
    public class getProjectsByOrgExample
    {
        public void main()
        {
            
            // Configure HTTP basic authorization: Basic
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Ticket
            Configuration.Default.ApiKey.Add("alf_ticket", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("alf_ticket", "Bearer");

            var apiInstance = new ProjectApi();
            var orgId = orgId_example;  // String | org identifier

            try
            {
                // Get all projects in org
                Projects result = apiInstance.getProjectsByOrg(orgId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ProjectApi.getProjectsByOrg: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure HTTP basic authorization: Basic
Swagger\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Swagger\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');
// Configure API key authorization: Ticket
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('alf_ticket', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('alf_ticket', 'Bearer');

$api_instance = new Swagger\Client\Api\ProjectApi();
$orgId = orgId_example; // String | org identifier

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

# Configure HTTP basic authorization: Basic
$WWW::SwaggerClient::Configuration::username = 'YOUR_USERNAME';
$WWW::SwaggerClient::Configuration::password = 'YOUR_PASSWORD';
# Configure API key authorization: Ticket
$WWW::SwaggerClient::Configuration::api_key->{'alf_ticket'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'alf_ticket'} = "Bearer";

my $api_instance = WWW::SwaggerClient::ProjectApi->new();
my $orgId = orgId_example; # String | org identifier

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

# Configure HTTP basic authorization: Basic
swagger_client.configuration.username = 'YOUR_USERNAME'
swagger_client.configuration.password = 'YOUR_PASSWORD'
# Configure API key authorization: Ticket
swagger_client.configuration.api_key['alf_ticket'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['alf_ticket'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.ProjectApi()
orgId = orgId_example # String | org identifier

try: 
    # Get all projects in org
    api_response = api_instance.get_projects_by_org(orgId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ProjectApi->getProjectsByOrg: %s\n" % e)

Parameters

Path parameters
Name Description
org_id*
String
org identifier
Required

Responses

Status: 200 - OK

Status: 401 - Unauthorized

Status: 403 - Forbidden

Status: 404 - The specified resource was not found

Status: 500 - Internal server error

Status: default - Unknown


postProjects

Create and/or update project(s)


/projects

Usage and SDK Samples

curl -X POST -H "Authorization: Basic [[basicHash]]" "https://localhost/alfresco/service/projects"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ProjectApi;

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

public class ProjectApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure HTTP basic authorization: Basic
        HttpBasicAuth Basic = (HttpBasicAuth) defaultClient.getAuthentication("Basic");
        Basic.setUsername("YOUR USERNAME");
        Basic.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Ticket
        ApiKeyAuth Ticket = (ApiKeyAuth) defaultClient.getAuthentication("Ticket");
        Ticket.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Ticket.setApiKeyPrefix("Token");

        ProjectApi apiInstance = new ProjectApi();
        Projects body = ; // Projects | 
        try {
            Projects result = apiInstance.postProjects(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProjectApi#postProjects");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ProjectApi;

public class ProjectApiExample {

    public static void main(String[] args) {
        ProjectApi apiInstance = new ProjectApi();
        Projects body = ; // Projects | 
        try {
            Projects result = apiInstance.postProjects(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProjectApi#postProjects");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: Basic)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];

// Configure API key authorization: (authentication scheme: Ticket)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"alf_ticket"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"alf_ticket"];

Projects *body = ; // 

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

// Create and/or update project(s)
[apiInstance postProjectsWith:body
              completionHandler: ^(Projects output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ModelManagementService = require('model_management_service');
var defaultClient = ModelManagementService.ApiClient.instance;

// Configure HTTP basic authorization: Basic
var Basic = defaultClient.authentications['Basic'];
Basic.username = 'YOUR USERNAME'
Basic.password = 'YOUR PASSWORD'

// Configure API key authorization: Ticket
var Ticket = defaultClient.authentications['Ticket'];
Ticket.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Ticket.apiKeyPrefix['alf_ticket'] = "Token"

var api = new ModelManagementService.ProjectApi()

var body = ; // {Projects} 


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

namespace Example
{
    public class postProjectsExample
    {
        public void main()
        {
            
            // Configure HTTP basic authorization: Basic
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Ticket
            Configuration.Default.ApiKey.Add("alf_ticket", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("alf_ticket", "Bearer");

            var apiInstance = new ProjectApi();
            var body = new Projects(); // Projects | 

            try
            {
                // Create and/or update project(s)
                Projects result = apiInstance.postProjects(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ProjectApi.postProjects: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure HTTP basic authorization: Basic
Swagger\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Swagger\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');
// Configure API key authorization: Ticket
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('alf_ticket', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('alf_ticket', 'Bearer');

$api_instance = new Swagger\Client\Api\ProjectApi();
$body = ; // Projects | 

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

# Configure HTTP basic authorization: Basic
$WWW::SwaggerClient::Configuration::username = 'YOUR_USERNAME';
$WWW::SwaggerClient::Configuration::password = 'YOUR_PASSWORD';
# Configure API key authorization: Ticket
$WWW::SwaggerClient::Configuration::api_key->{'alf_ticket'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'alf_ticket'} = "Bearer";

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

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

# Configure HTTP basic authorization: Basic
swagger_client.configuration.username = 'YOUR_USERNAME'
swagger_client.configuration.password = 'YOUR_PASSWORD'
# Configure API key authorization: Ticket
swagger_client.configuration.api_key['alf_ticket'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['alf_ticket'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.ProjectApi()
body =  # Projects | 

try: 
    # Create and/or update project(s)
    api_response = api_instance.post_projects(body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ProjectApi->postProjects: %s\n" % e)

Parameters

Body parameters
Name Description
body *

Responses

Status: 200 - OK

Status: 401 - Unauthorized

Status: 403 - Forbidden

Status: 404 - The specified resource was not found

Status: 500 - Internal server error

Status: default - Unknown


postProjectsByOrg

Create and/or update project(s) in org


/orgs/{org_id}/projects

Usage and SDK Samples

curl -X POST -H "Authorization: Basic [[basicHash]]" "https://localhost/alfresco/service/orgs/{org_id}/projects"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ProjectApi;

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

public class ProjectApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure HTTP basic authorization: Basic
        HttpBasicAuth Basic = (HttpBasicAuth) defaultClient.getAuthentication("Basic");
        Basic.setUsername("YOUR USERNAME");
        Basic.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Ticket
        ApiKeyAuth Ticket = (ApiKeyAuth) defaultClient.getAuthentication("Ticket");
        Ticket.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Ticket.setApiKeyPrefix("Token");

        ProjectApi apiInstance = new ProjectApi();
        String orgId = orgId_example; // String | org identifier
        Projects body = ; // Projects | 
        try {
            Projects result = apiInstance.postProjectsByOrg(orgId, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProjectApi#postProjectsByOrg");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ProjectApi;

public class ProjectApiExample {

    public static void main(String[] args) {
        ProjectApi apiInstance = new ProjectApi();
        String orgId = orgId_example; // String | org identifier
        Projects body = ; // Projects | 
        try {
            Projects result = apiInstance.postProjectsByOrg(orgId, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProjectApi#postProjectsByOrg");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: Basic)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];

// Configure API key authorization: (authentication scheme: Ticket)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"alf_ticket"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"alf_ticket"];

String *orgId = orgId_example; // org identifier
Projects *body = ; // 

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

// Create and/or update project(s) in org
[apiInstance postProjectsByOrgWith:orgId
    body:body
              completionHandler: ^(Projects output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ModelManagementService = require('model_management_service');
var defaultClient = ModelManagementService.ApiClient.instance;

// Configure HTTP basic authorization: Basic
var Basic = defaultClient.authentications['Basic'];
Basic.username = 'YOUR USERNAME'
Basic.password = 'YOUR PASSWORD'

// Configure API key authorization: Ticket
var Ticket = defaultClient.authentications['Ticket'];
Ticket.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Ticket.apiKeyPrefix['alf_ticket'] = "Token"

var api = new ModelManagementService.ProjectApi()

var orgId = orgId_example; // {String} org identifier

var body = ; // {Projects} 


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

namespace Example
{
    public class postProjectsByOrgExample
    {
        public void main()
        {
            
            // Configure HTTP basic authorization: Basic
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Ticket
            Configuration.Default.ApiKey.Add("alf_ticket", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("alf_ticket", "Bearer");

            var apiInstance = new ProjectApi();
            var orgId = orgId_example;  // String | org identifier
            var body = new Projects(); // Projects | 

            try
            {
                // Create and/or update project(s) in org
                Projects result = apiInstance.postProjectsByOrg(orgId, body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ProjectApi.postProjectsByOrg: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure HTTP basic authorization: Basic
Swagger\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Swagger\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');
// Configure API key authorization: Ticket
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('alf_ticket', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('alf_ticket', 'Bearer');

$api_instance = new Swagger\Client\Api\ProjectApi();
$orgId = orgId_example; // String | org identifier
$body = ; // Projects | 

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

# Configure HTTP basic authorization: Basic
$WWW::SwaggerClient::Configuration::username = 'YOUR_USERNAME';
$WWW::SwaggerClient::Configuration::password = 'YOUR_PASSWORD';
# Configure API key authorization: Ticket
$WWW::SwaggerClient::Configuration::api_key->{'alf_ticket'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'alf_ticket'} = "Bearer";

my $api_instance = WWW::SwaggerClient::ProjectApi->new();
my $orgId = orgId_example; # String | org identifier
my $body = WWW::SwaggerClient::Object::Projects->new(); # Projects | 

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

# Configure HTTP basic authorization: Basic
swagger_client.configuration.username = 'YOUR_USERNAME'
swagger_client.configuration.password = 'YOUR_PASSWORD'
# Configure API key authorization: Ticket
swagger_client.configuration.api_key['alf_ticket'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['alf_ticket'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.ProjectApi()
orgId = orgId_example # String | org identifier
body =  # Projects | 

try: 
    # Create and/or update project(s) in org
    api_response = api_instance.post_projects_by_org(orgId, body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ProjectApi->postProjectsByOrg: %s\n" % e)

Parameters

Path parameters
Name Description
org_id*
String
org identifier
Required
Body parameters
Name Description
body *

Responses

Status: 200 - OK

Status: 401 - Unauthorized

Status: 403 - Forbidden

Status: 404 - The specified resource was not found

Status: 500 - Internal server error

Status: default - Unknown


Ref

deleteRef

Delete ref


/projects/{project_id}/refs/{ref_id}

Usage and SDK Samples

curl -X DELETE -H "Authorization: Basic [[basicHash]]" "https://localhost/alfresco/service/projects/{project_id}/refs/{ref_id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.RefApi;

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

public class RefApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure HTTP basic authorization: Basic
        HttpBasicAuth Basic = (HttpBasicAuth) defaultClient.getAuthentication("Basic");
        Basic.setUsername("YOUR USERNAME");
        Basic.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Ticket
        ApiKeyAuth Ticket = (ApiKeyAuth) defaultClient.getAuthentication("Ticket");
        Ticket.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Ticket.setApiKeyPrefix("Token");

        RefApi apiInstance = new RefApi();
        String projectId = projectId_example; // String | project identifier
        String refId = refId_example; // String | ref identifier
        try {
            Refs result = apiInstance.deleteRef(projectId, refId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RefApi#deleteRef");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.RefApi;

public class RefApiExample {

    public static void main(String[] args) {
        RefApi apiInstance = new RefApi();
        String projectId = projectId_example; // String | project identifier
        String refId = refId_example; // String | ref identifier
        try {
            Refs result = apiInstance.deleteRef(projectId, refId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RefApi#deleteRef");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: Basic)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];

// Configure API key authorization: (authentication scheme: Ticket)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"alf_ticket"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"alf_ticket"];

String *projectId = projectId_example; // project identifier
String *refId = refId_example; // ref identifier

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

// Delete ref
[apiInstance deleteRefWith:projectId
    refId:refId
              completionHandler: ^(Refs output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ModelManagementService = require('model_management_service');
var defaultClient = ModelManagementService.ApiClient.instance;

// Configure HTTP basic authorization: Basic
var Basic = defaultClient.authentications['Basic'];
Basic.username = 'YOUR USERNAME'
Basic.password = 'YOUR PASSWORD'

// Configure API key authorization: Ticket
var Ticket = defaultClient.authentications['Ticket'];
Ticket.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Ticket.apiKeyPrefix['alf_ticket'] = "Token"

var api = new ModelManagementService.RefApi()

var projectId = projectId_example; // {String} project identifier

var refId = refId_example; // {String} ref identifier


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

namespace Example
{
    public class deleteRefExample
    {
        public void main()
        {
            
            // Configure HTTP basic authorization: Basic
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Ticket
            Configuration.Default.ApiKey.Add("alf_ticket", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("alf_ticket", "Bearer");

            var apiInstance = new RefApi();
            var projectId = projectId_example;  // String | project identifier
            var refId = refId_example;  // String | ref identifier

            try
            {
                // Delete ref
                Refs result = apiInstance.deleteRef(projectId, refId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling RefApi.deleteRef: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure HTTP basic authorization: Basic
Swagger\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Swagger\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');
// Configure API key authorization: Ticket
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('alf_ticket', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('alf_ticket', 'Bearer');

$api_instance = new Swagger\Client\Api\RefApi();
$projectId = projectId_example; // String | project identifier
$refId = refId_example; // String | ref identifier

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

# Configure HTTP basic authorization: Basic
$WWW::SwaggerClient::Configuration::username = 'YOUR_USERNAME';
$WWW::SwaggerClient::Configuration::password = 'YOUR_PASSWORD';
# Configure API key authorization: Ticket
$WWW::SwaggerClient::Configuration::api_key->{'alf_ticket'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'alf_ticket'} = "Bearer";

my $api_instance = WWW::SwaggerClient::RefApi->new();
my $projectId = projectId_example; # String | project identifier
my $refId = refId_example; # String | ref identifier

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

# Configure HTTP basic authorization: Basic
swagger_client.configuration.username = 'YOUR_USERNAME'
swagger_client.configuration.password = 'YOUR_PASSWORD'
# Configure API key authorization: Ticket
swagger_client.configuration.api_key['alf_ticket'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['alf_ticket'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.RefApi()
projectId = projectId_example # String | project identifier
refId = refId_example # String | ref identifier

try: 
    # Delete ref
    api_response = api_instance.delete_ref(projectId, refId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling RefApi->deleteRef: %s\n" % e)

Parameters

Path parameters
Name Description
project_id*
String
project identifier
Required
ref_id*
String
ref identifier
Required

Responses

Status: 200 - OK

Status: 401 - Unauthorized

Status: 403 - Forbidden

Status: 404 - The specified resource was not found

Status: 500 - Internal server error

Status: default - Unknown


getRef

Get ref


/projects/{project_id}/refs/{ref_id}

Usage and SDK Samples

curl -X GET -H "Authorization: Basic [[basicHash]]" "https://localhost/alfresco/service/projects/{project_id}/refs/{ref_id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.RefApi;

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

public class RefApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure HTTP basic authorization: Basic
        HttpBasicAuth Basic = (HttpBasicAuth) defaultClient.getAuthentication("Basic");
        Basic.setUsername("YOUR USERNAME");
        Basic.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Ticket
        ApiKeyAuth Ticket = (ApiKeyAuth) defaultClient.getAuthentication("Ticket");
        Ticket.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Ticket.setApiKeyPrefix("Token");

        RefApi apiInstance = new RefApi();
        String projectId = projectId_example; // String | project identifier
        String refId = refId_example; // String | ref identifier
        try {
            Refs result = apiInstance.getRef(projectId, refId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RefApi#getRef");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.RefApi;

public class RefApiExample {

    public static void main(String[] args) {
        RefApi apiInstance = new RefApi();
        String projectId = projectId_example; // String | project identifier
        String refId = refId_example; // String | ref identifier
        try {
            Refs result = apiInstance.getRef(projectId, refId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RefApi#getRef");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: Basic)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];

// Configure API key authorization: (authentication scheme: Ticket)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"alf_ticket"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"alf_ticket"];

String *projectId = projectId_example; // project identifier
String *refId = refId_example; // ref identifier

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

// Get ref
[apiInstance getRefWith:projectId
    refId:refId
              completionHandler: ^(Refs output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ModelManagementService = require('model_management_service');
var defaultClient = ModelManagementService.ApiClient.instance;

// Configure HTTP basic authorization: Basic
var Basic = defaultClient.authentications['Basic'];
Basic.username = 'YOUR USERNAME'
Basic.password = 'YOUR PASSWORD'

// Configure API key authorization: Ticket
var Ticket = defaultClient.authentications['Ticket'];
Ticket.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Ticket.apiKeyPrefix['alf_ticket'] = "Token"

var api = new ModelManagementService.RefApi()

var projectId = projectId_example; // {String} project identifier

var refId = refId_example; // {String} ref identifier


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

namespace Example
{
    public class getRefExample
    {
        public void main()
        {
            
            // Configure HTTP basic authorization: Basic
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Ticket
            Configuration.Default.ApiKey.Add("alf_ticket", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("alf_ticket", "Bearer");

            var apiInstance = new RefApi();
            var projectId = projectId_example;  // String | project identifier
            var refId = refId_example;  // String | ref identifier

            try
            {
                // Get ref
                Refs result = apiInstance.getRef(projectId, refId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling RefApi.getRef: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure HTTP basic authorization: Basic
Swagger\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Swagger\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');
// Configure API key authorization: Ticket
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('alf_ticket', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('alf_ticket', 'Bearer');

$api_instance = new Swagger\Client\Api\RefApi();
$projectId = projectId_example; // String | project identifier
$refId = refId_example; // String | ref identifier

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

# Configure HTTP basic authorization: Basic
$WWW::SwaggerClient::Configuration::username = 'YOUR_USERNAME';
$WWW::SwaggerClient::Configuration::password = 'YOUR_PASSWORD';
# Configure API key authorization: Ticket
$WWW::SwaggerClient::Configuration::api_key->{'alf_ticket'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'alf_ticket'} = "Bearer";

my $api_instance = WWW::SwaggerClient::RefApi->new();
my $projectId = projectId_example; # String | project identifier
my $refId = refId_example; # String | ref identifier

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

# Configure HTTP basic authorization: Basic
swagger_client.configuration.username = 'YOUR_USERNAME'
swagger_client.configuration.password = 'YOUR_PASSWORD'
# Configure API key authorization: Ticket
swagger_client.configuration.api_key['alf_ticket'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['alf_ticket'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.RefApi()
projectId = projectId_example # String | project identifier
refId = refId_example # String | ref identifier

try: 
    # Get ref
    api_response = api_instance.get_ref(projectId, refId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling RefApi->getRef: %s\n" % e)

Parameters

Path parameters
Name Description
project_id*
String
project identifier
Required
ref_id*
String
ref identifier
Required

Responses

Status: 200 - OK

Status: 401 - Unauthorized

Status: 403 - Forbidden

Status: 404 - The specified resource was not found

Status: 500 - Internal server error

Status: default - Unknown


getRefHistory

Get ref history


/projects/{project_id}/refs/{ref_id}/commits

Usage and SDK Samples

curl -X GET -H "Authorization: Basic [[basicHash]]" "https://localhost/alfresco/service/projects/{project_id}/refs/{ref_id}/commits?maxTimestamp="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.RefApi;

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

public class RefApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure HTTP basic authorization: Basic
        HttpBasicAuth Basic = (HttpBasicAuth) defaultClient.getAuthentication("Basic");
        Basic.setUsername("YOUR USERNAME");
        Basic.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Ticket
        ApiKeyAuth Ticket = (ApiKeyAuth) defaultClient.getAuthentication("Ticket");
        Ticket.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Ticket.setApiKeyPrefix("Token");

        RefApi apiInstance = new RefApi();
        String projectId = projectId_example; // String | project identifier
        String refId = refId_example; // String | ref identifier
        String maxTimestamp = maxTimestamp_example; // String | 
        try {
            Commits result = apiInstance.getRefHistory(projectId, refId, maxTimestamp);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RefApi#getRefHistory");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.RefApi;

public class RefApiExample {

    public static void main(String[] args) {
        RefApi apiInstance = new RefApi();
        String projectId = projectId_example; // String | project identifier
        String refId = refId_example; // String | ref identifier
        String maxTimestamp = maxTimestamp_example; // String | 
        try {
            Commits result = apiInstance.getRefHistory(projectId, refId, maxTimestamp);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RefApi#getRefHistory");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: Basic)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];

// Configure API key authorization: (authentication scheme: Ticket)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"alf_ticket"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"alf_ticket"];

String *projectId = projectId_example; // project identifier
String *refId = refId_example; // ref identifier
String *maxTimestamp = maxTimestamp_example; //  (optional)

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

// Get ref history
[apiInstance getRefHistoryWith:projectId
    refId:refId
    maxTimestamp:maxTimestamp
              completionHandler: ^(Commits output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ModelManagementService = require('model_management_service');
var defaultClient = ModelManagementService.ApiClient.instance;

// Configure HTTP basic authorization: Basic
var Basic = defaultClient.authentications['Basic'];
Basic.username = 'YOUR USERNAME'
Basic.password = 'YOUR PASSWORD'

// Configure API key authorization: Ticket
var Ticket = defaultClient.authentications['Ticket'];
Ticket.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Ticket.apiKeyPrefix['alf_ticket'] = "Token"

var api = new ModelManagementService.RefApi()

var projectId = projectId_example; // {String} project identifier

var refId = refId_example; // {String} ref identifier

var opts = { 
  'maxTimestamp': maxTimestamp_example // {String} 
};

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

namespace Example
{
    public class getRefHistoryExample
    {
        public void main()
        {
            
            // Configure HTTP basic authorization: Basic
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Ticket
            Configuration.Default.ApiKey.Add("alf_ticket", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("alf_ticket", "Bearer");

            var apiInstance = new RefApi();
            var projectId = projectId_example;  // String | project identifier
            var refId = refId_example;  // String | ref identifier
            var maxTimestamp = maxTimestamp_example;  // String |  (optional) 

            try
            {
                // Get ref history
                Commits result = apiInstance.getRefHistory(projectId, refId, maxTimestamp);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling RefApi.getRefHistory: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure HTTP basic authorization: Basic
Swagger\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Swagger\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');
// Configure API key authorization: Ticket
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('alf_ticket', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('alf_ticket', 'Bearer');

$api_instance = new Swagger\Client\Api\RefApi();
$projectId = projectId_example; // String | project identifier
$refId = refId_example; // String | ref identifier
$maxTimestamp = maxTimestamp_example; // String | 

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

# Configure HTTP basic authorization: Basic
$WWW::SwaggerClient::Configuration::username = 'YOUR_USERNAME';
$WWW::SwaggerClient::Configuration::password = 'YOUR_PASSWORD';
# Configure API key authorization: Ticket
$WWW::SwaggerClient::Configuration::api_key->{'alf_ticket'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'alf_ticket'} = "Bearer";

my $api_instance = WWW::SwaggerClient::RefApi->new();
my $projectId = projectId_example; # String | project identifier
my $refId = refId_example; # String | ref identifier
my $maxTimestamp = maxTimestamp_example; # String | 

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

# Configure HTTP basic authorization: Basic
swagger_client.configuration.username = 'YOUR_USERNAME'
swagger_client.configuration.password = 'YOUR_PASSWORD'
# Configure API key authorization: Ticket
swagger_client.configuration.api_key['alf_ticket'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['alf_ticket'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.RefApi()
projectId = projectId_example # String | project identifier
refId = refId_example # String | ref identifier
maxTimestamp = maxTimestamp_example # String |  (optional)

try: 
    # Get ref history
    api_response = api_instance.get_ref_history(projectId, refId, maxTimestamp=maxTimestamp)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling RefApi->getRefHistory: %s\n" % e)

Parameters

Path parameters
Name Description
project_id*
String
project identifier
Required
ref_id*
String
ref identifier
Required
Query parameters
Name Description
maxTimestamp
String

Responses

Status: 200 - OK

Status: 401 - Unauthorized

Status: 403 - Forbidden

Status: 404 - The specified resource was not found

Status: 500 - Internal server error

Status: default - Unknown


getRefs

Get all refs in project


/projects/{project_id}/refs

Usage and SDK Samples

curl -X GET -H "Authorization: Basic [[basicHash]]" "https://localhost/alfresco/service/projects/{project_id}/refs"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.RefApi;

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

public class RefApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure HTTP basic authorization: Basic
        HttpBasicAuth Basic = (HttpBasicAuth) defaultClient.getAuthentication("Basic");
        Basic.setUsername("YOUR USERNAME");
        Basic.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Ticket
        ApiKeyAuth Ticket = (ApiKeyAuth) defaultClient.getAuthentication("Ticket");
        Ticket.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Ticket.setApiKeyPrefix("Token");

        RefApi apiInstance = new RefApi();
        String projectId = projectId_example; // String | project identifier
        try {
            Refs result = apiInstance.getRefs(projectId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RefApi#getRefs");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.RefApi;

public class RefApiExample {

    public static void main(String[] args) {
        RefApi apiInstance = new RefApi();
        String projectId = projectId_example; // String | project identifier
        try {
            Refs result = apiInstance.getRefs(projectId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RefApi#getRefs");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: Basic)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];

// Configure API key authorization: (authentication scheme: Ticket)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"alf_ticket"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"alf_ticket"];

String *projectId = projectId_example; // project identifier

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

// Get all refs in project
[apiInstance getRefsWith:projectId
              completionHandler: ^(Refs output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ModelManagementService = require('model_management_service');
var defaultClient = ModelManagementService.ApiClient.instance;

// Configure HTTP basic authorization: Basic
var Basic = defaultClient.authentications['Basic'];
Basic.username = 'YOUR USERNAME'
Basic.password = 'YOUR PASSWORD'

// Configure API key authorization: Ticket
var Ticket = defaultClient.authentications['Ticket'];
Ticket.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Ticket.apiKeyPrefix['alf_ticket'] = "Token"

var api = new ModelManagementService.RefApi()

var projectId = projectId_example; // {String} project identifier


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

namespace Example
{
    public class getRefsExample
    {
        public void main()
        {
            
            // Configure HTTP basic authorization: Basic
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Ticket
            Configuration.Default.ApiKey.Add("alf_ticket", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("alf_ticket", "Bearer");

            var apiInstance = new RefApi();
            var projectId = projectId_example;  // String | project identifier

            try
            {
                // Get all refs in project
                Refs result = apiInstance.getRefs(projectId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling RefApi.getRefs: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure HTTP basic authorization: Basic
Swagger\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Swagger\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');
// Configure API key authorization: Ticket
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('alf_ticket', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('alf_ticket', 'Bearer');

$api_instance = new Swagger\Client\Api\RefApi();
$projectId = projectId_example; // String | project identifier

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

# Configure HTTP basic authorization: Basic
$WWW::SwaggerClient::Configuration::username = 'YOUR_USERNAME';
$WWW::SwaggerClient::Configuration::password = 'YOUR_PASSWORD';
# Configure API key authorization: Ticket
$WWW::SwaggerClient::Configuration::api_key->{'alf_ticket'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'alf_ticket'} = "Bearer";

my $api_instance = WWW::SwaggerClient::RefApi->new();
my $projectId = projectId_example; # String | project identifier

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

# Configure HTTP basic authorization: Basic
swagger_client.configuration.username = 'YOUR_USERNAME'
swagger_client.configuration.password = 'YOUR_PASSWORD'
# Configure API key authorization: Ticket
swagger_client.configuration.api_key['alf_ticket'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['alf_ticket'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.RefApi()
projectId = projectId_example # String | project identifier

try: 
    # Get all refs in project
    api_response = api_instance.get_refs(projectId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling RefApi->getRefs: %s\n" % e)

Parameters

Path parameters
Name Description
project_id*
String
project identifier
Required

Responses

Status: 200 - OK

Status: 401 - Unauthorized

Status: 403 - Forbidden

Status: 404 - The specified resource was not found

Status: 500 - Internal server error

Status: default - Unknown


postRefs

Create and/or update ref(s)


/projects/{project_id}/refs

Usage and SDK Samples

curl -X POST -H "Authorization: Basic [[basicHash]]" "https://localhost/alfresco/service/projects/{project_id}/refs"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.RefApi;

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

public class RefApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure HTTP basic authorization: Basic
        HttpBasicAuth Basic = (HttpBasicAuth) defaultClient.getAuthentication("Basic");
        Basic.setUsername("YOUR USERNAME");
        Basic.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Ticket
        ApiKeyAuth Ticket = (ApiKeyAuth) defaultClient.getAuthentication("Ticket");
        Ticket.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Ticket.setApiKeyPrefix("Token");

        RefApi apiInstance = new RefApi();
        String projectId = projectId_example; // String | project identifier
        Refs body = ; // Refs | 
        try {
            Refs result = apiInstance.postRefs(projectId, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RefApi#postRefs");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.RefApi;

public class RefApiExample {

    public static void main(String[] args) {
        RefApi apiInstance = new RefApi();
        String projectId = projectId_example; // String | project identifier
        Refs body = ; // Refs | 
        try {
            Refs result = apiInstance.postRefs(projectId, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RefApi#postRefs");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: Basic)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];

// Configure API key authorization: (authentication scheme: Ticket)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"alf_ticket"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"alf_ticket"];

String *projectId = projectId_example; // project identifier
Refs *body = ; // 

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

// Create and/or update ref(s)
[apiInstance postRefsWith:projectId
    body:body
              completionHandler: ^(Refs output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ModelManagementService = require('model_management_service');
var defaultClient = ModelManagementService.ApiClient.instance;

// Configure HTTP basic authorization: Basic
var Basic = defaultClient.authentications['Basic'];
Basic.username = 'YOUR USERNAME'
Basic.password = 'YOUR PASSWORD'

// Configure API key authorization: Ticket
var Ticket = defaultClient.authentications['Ticket'];
Ticket.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Ticket.apiKeyPrefix['alf_ticket'] = "Token"

var api = new ModelManagementService.RefApi()

var projectId = projectId_example; // {String} project identifier

var body = ; // {Refs} 


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

namespace Example
{
    public class postRefsExample
    {
        public void main()
        {
            
            // Configure HTTP basic authorization: Basic
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Ticket
            Configuration.Default.ApiKey.Add("alf_ticket", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("alf_ticket", "Bearer");

            var apiInstance = new RefApi();
            var projectId = projectId_example;  // String | project identifier
            var body = new Refs(); // Refs | 

            try
            {
                // Create and/or update ref(s)
                Refs result = apiInstance.postRefs(projectId, body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling RefApi.postRefs: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure HTTP basic authorization: Basic
Swagger\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Swagger\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');
// Configure API key authorization: Ticket
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('alf_ticket', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('alf_ticket', 'Bearer');

$api_instance = new Swagger\Client\Api\RefApi();
$projectId = projectId_example; // String | project identifier
$body = ; // Refs | 

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

# Configure HTTP basic authorization: Basic
$WWW::SwaggerClient::Configuration::username = 'YOUR_USERNAME';
$WWW::SwaggerClient::Configuration::password = 'YOUR_PASSWORD';
# Configure API key authorization: Ticket
$WWW::SwaggerClient::Configuration::api_key->{'alf_ticket'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'alf_ticket'} = "Bearer";

my $api_instance = WWW::SwaggerClient::RefApi->new();
my $projectId = projectId_example; # String | project identifier
my $body = WWW::SwaggerClient::Object::Refs->new(); # Refs | 

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

# Configure HTTP basic authorization: Basic
swagger_client.configuration.username = 'YOUR_USERNAME'
swagger_client.configuration.password = 'YOUR_PASSWORD'
# Configure API key authorization: Ticket
swagger_client.configuration.api_key['alf_ticket'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['alf_ticket'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.RefApi()
projectId = projectId_example # String | project identifier
body =  # Refs | 

try: 
    # Create and/or update ref(s)
    api_response = api_instance.post_refs(projectId, body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling RefApi->postRefs: %s\n" % e)

Parameters

Path parameters
Name Description
project_id*
String
project identifier
Required
Body parameters
Name Description
body *

Responses

Status: 200 - OK

Status: 401 - Unauthorized

Status: 403 - Forbidden

Status: 404 - The specified resource was not found

Status: 500 - Internal server error

Status: 503 - Service Unavailable

Status: default - Unknown


projectsProjectIdRefsRefIdDocumentsGet

Get ref history


/projects/{project_id}/refs/{ref_id}/documents

Usage and SDK Samples

curl -X GET -H "Authorization: Basic [[basicHash]]" "https://localhost/alfresco/service/projects/{project_id}/refs/{ref_id}/documents?groupId="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.RefApi;

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

public class RefApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure HTTP basic authorization: Basic
        HttpBasicAuth Basic = (HttpBasicAuth) defaultClient.getAuthentication("Basic");
        Basic.setUsername("YOUR USERNAME");
        Basic.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Ticket
        ApiKeyAuth Ticket = (ApiKeyAuth) defaultClient.getAuthentication("Ticket");
        Ticket.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Ticket.setApiKeyPrefix("Token");

        RefApi apiInstance = new RefApi();
        String projectId = projectId_example; // String | project identifier
        String refId = refId_example; // String | ref identifier
        String groupId = groupId_example; // String | group identifier
        try {
            Commits result = apiInstance.projectsProjectIdRefsRefIdDocumentsGet(projectId, refId, groupId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RefApi#projectsProjectIdRefsRefIdDocumentsGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.RefApi;

public class RefApiExample {

    public static void main(String[] args) {
        RefApi apiInstance = new RefApi();
        String projectId = projectId_example; // String | project identifier
        String refId = refId_example; // String | ref identifier
        String groupId = groupId_example; // String | group identifier
        try {
            Commits result = apiInstance.projectsProjectIdRefsRefIdDocumentsGet(projectId, refId, groupId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RefApi#projectsProjectIdRefsRefIdDocumentsGet");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: Basic)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];

// Configure API key authorization: (authentication scheme: Ticket)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"alf_ticket"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"alf_ticket"];

String *projectId = projectId_example; // project identifier
String *refId = refId_example; // ref identifier
String *groupId = groupId_example; // group identifier (optional)

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

// Get ref history
[apiInstance projectsProjectIdRefsRefIdDocumentsGetWith:projectId
    refId:refId
    groupId:groupId
              completionHandler: ^(Commits output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ModelManagementService = require('model_management_service');
var defaultClient = ModelManagementService.ApiClient.instance;

// Configure HTTP basic authorization: Basic
var Basic = defaultClient.authentications['Basic'];
Basic.username = 'YOUR USERNAME'
Basic.password = 'YOUR PASSWORD'

// Configure API key authorization: Ticket
var Ticket = defaultClient.authentications['Ticket'];
Ticket.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Ticket.apiKeyPrefix['alf_ticket'] = "Token"

var api = new ModelManagementService.RefApi()

var projectId = projectId_example; // {String} project identifier

var refId = refId_example; // {String} ref identifier

var opts = { 
  'groupId': groupId_example // {String} group identifier
};

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

namespace Example
{
    public class projectsProjectIdRefsRefIdDocumentsGetExample
    {
        public void main()
        {
            
            // Configure HTTP basic authorization: Basic
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Ticket
            Configuration.Default.ApiKey.Add("alf_ticket", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("alf_ticket", "Bearer");

            var apiInstance = new RefApi();
            var projectId = projectId_example;  // String | project identifier
            var refId = refId_example;  // String | ref identifier
            var groupId = groupId_example;  // String | group identifier (optional) 

            try
            {
                // Get ref history
                Commits result = apiInstance.projectsProjectIdRefsRefIdDocumentsGet(projectId, refId, groupId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling RefApi.projectsProjectIdRefsRefIdDocumentsGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure HTTP basic authorization: Basic
Swagger\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Swagger\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');
// Configure API key authorization: Ticket
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('alf_ticket', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('alf_ticket', 'Bearer');

$api_instance = new Swagger\Client\Api\RefApi();
$projectId = projectId_example; // String | project identifier
$refId = refId_example; // String | ref identifier
$groupId = groupId_example; // String | group identifier

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

# Configure HTTP basic authorization: Basic
$WWW::SwaggerClient::Configuration::username = 'YOUR_USERNAME';
$WWW::SwaggerClient::Configuration::password = 'YOUR_PASSWORD';
# Configure API key authorization: Ticket
$WWW::SwaggerClient::Configuration::api_key->{'alf_ticket'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'alf_ticket'} = "Bearer";

my $api_instance = WWW::SwaggerClient::RefApi->new();
my $projectId = projectId_example; # String | project identifier
my $refId = refId_example; # String | ref identifier
my $groupId = groupId_example; # String | group identifier

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

# Configure HTTP basic authorization: Basic
swagger_client.configuration.username = 'YOUR_USERNAME'
swagger_client.configuration.password = 'YOUR_PASSWORD'
# Configure API key authorization: Ticket
swagger_client.configuration.api_key['alf_ticket'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['alf_ticket'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.RefApi()
projectId = projectId_example # String | project identifier
refId = refId_example # String | ref identifier
groupId = groupId_example # String | group identifier (optional)

try: 
    # Get ref history
    api_response = api_instance.projects_project_id_refs_ref_id_documents_get(projectId, refId, groupId=groupId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling RefApi->projectsProjectIdRefsRefIdDocumentsGet: %s\n" % e)

Parameters

Path parameters
Name Description
project_id*
String
project identifier
Required
ref_id*
String
ref identifier
Required
Query parameters
Name Description
groupId
String
group identifier

Responses

Status: 200 - OK

Status: 401 - Unauthorized

Status: 403 - Forbidden

Status: 404 - The specified resource was not found

Status: 500 - Internal server error

Status: default - Unknown


Ticket

getTicket

Get ticket


/mms/login/ticket/{ticket_id}

Usage and SDK Samples

curl -X GET -H "Authorization: Basic [[basicHash]]" "https://localhost/alfresco/service/mms/login/ticket/{ticket_id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.TicketApi;

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

public class TicketApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure HTTP basic authorization: Basic
        HttpBasicAuth Basic = (HttpBasicAuth) defaultClient.getAuthentication("Basic");
        Basic.setUsername("YOUR USERNAME");
        Basic.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Ticket
        ApiKeyAuth Ticket = (ApiKeyAuth) defaultClient.getAuthentication("Ticket");
        Ticket.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Ticket.setApiKeyPrefix("Token");

        TicketApi apiInstance = new TicketApi();
        String ticketId = ticketId_example; // String | ticket identifier
        try {
            TicketResponse result = apiInstance.getTicket(ticketId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TicketApi#getTicket");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.TicketApi;

public class TicketApiExample {

    public static void main(String[] args) {
        TicketApi apiInstance = new TicketApi();
        String ticketId = ticketId_example; // String | ticket identifier
        try {
            TicketResponse result = apiInstance.getTicket(ticketId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TicketApi#getTicket");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: Basic)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];

// Configure API key authorization: (authentication scheme: Ticket)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"alf_ticket"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"alf_ticket"];

String *ticketId = ticketId_example; // ticket identifier

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

// Get ticket
[apiInstance getTicketWith:ticketId
              completionHandler: ^(TicketResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ModelManagementService = require('model_management_service');
var defaultClient = ModelManagementService.ApiClient.instance;

// Configure HTTP basic authorization: Basic
var Basic = defaultClient.authentications['Basic'];
Basic.username = 'YOUR USERNAME'
Basic.password = 'YOUR PASSWORD'

// Configure API key authorization: Ticket
var Ticket = defaultClient.authentications['Ticket'];
Ticket.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Ticket.apiKeyPrefix['alf_ticket'] = "Token"

var api = new ModelManagementService.TicketApi()

var ticketId = ticketId_example; // {String} ticket identifier


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

namespace Example
{
    public class getTicketExample
    {
        public void main()
        {
            
            // Configure HTTP basic authorization: Basic
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Ticket
            Configuration.Default.ApiKey.Add("alf_ticket", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("alf_ticket", "Bearer");

            var apiInstance = new TicketApi();
            var ticketId = ticketId_example;  // String | ticket identifier

            try
            {
                // Get ticket
                TicketResponse result = apiInstance.getTicket(ticketId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling TicketApi.getTicket: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure HTTP basic authorization: Basic
Swagger\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Swagger\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');
// Configure API key authorization: Ticket
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('alf_ticket', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('alf_ticket', 'Bearer');

$api_instance = new Swagger\Client\Api\TicketApi();
$ticketId = ticketId_example; // String | ticket identifier

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

# Configure HTTP basic authorization: Basic
$WWW::SwaggerClient::Configuration::username = 'YOUR_USERNAME';
$WWW::SwaggerClient::Configuration::password = 'YOUR_PASSWORD';
# Configure API key authorization: Ticket
$WWW::SwaggerClient::Configuration::api_key->{'alf_ticket'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'alf_ticket'} = "Bearer";

my $api_instance = WWW::SwaggerClient::TicketApi->new();
my $ticketId = ticketId_example; # String | ticket identifier

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

# Configure HTTP basic authorization: Basic
swagger_client.configuration.username = 'YOUR_USERNAME'
swagger_client.configuration.password = 'YOUR_PASSWORD'
# Configure API key authorization: Ticket
swagger_client.configuration.api_key['alf_ticket'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['alf_ticket'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.TicketApi()
ticketId = ticketId_example # String | ticket identifier

try: 
    # Get ticket
    api_response = api_instance.get_ticket(ticketId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling TicketApi->getTicket: %s\n" % e)

Parameters

Path parameters
Name Description
ticket_id*
String
ticket identifier
Required

Responses

Status: 200 - OK

Status: 403 - Forbidden

Status: 404 - The specified resource was not found

Status: 500 - Internal server error

Status: default - Unknown


postTicket

Create ticket


/api/login

Usage and SDK Samples

curl -X POST "https://localhost/alfresco/service/api/login"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.TicketApi;

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

public class TicketApiExample {

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

public class TicketApiExample {

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

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

// Create ticket
[apiInstance postTicketWith:body
              completionHandler: ^(LoginResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ModelManagementService = require('model_management_service');

var api = new ModelManagementService.TicketApi()

var body = ; // {LoginRequest} 


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

namespace Example
{
    public class postTicketExample
    {
        public void main()
        {
            
            var apiInstance = new TicketApi();
            var body = new LoginRequest(); // LoginRequest | 

            try
            {
                // Create ticket
                LoginResponse result = apiInstance.postTicket(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling TicketApi.postTicket: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\TicketApi();
$body = ; // LoginRequest | 

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

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

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

# create an instance of the API class
api_instance = swagger_client.TicketApi()
body =  # LoginRequest | 

try: 
    # Create ticket
    api_response = api_instance.post_ticket(body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling TicketApi->postTicket: %s\n" % e)

Parameters

Body parameters
Name Description
body *

Responses

Status: 200 - OK

Status: 403 - Forbidden

Status: 404 - The specified resource was not found

Status: 500 - Internal server error

Status: default - Unknown


Generated 2018-12-06T02:05:05.118Z