All URIs are relative to https://backend.id4i.de
| Method | HTTP request | Description |
|---|---|---|
| AddElementsToCollection | POST /api/v1/collections/{id4n}/elements | Add elements to collection |
| CreateCollection | POST /api/v1/collections | Create collection |
| DeleteCollection | DELETE /api/v1/collections/{id4n} | Delete collection |
| DeleteProperties | DELETE /api/v1/id4ns/{id4n}/properties | Delete ID4n properties |
| FindCollection | GET /api/v1/collections/{id4n} | Find collection |
| GetAllCollectionsOfOrganization | GET /api/v1/organizations/{organizationId}/collections | Get collections of organization |
| GetProperties | GET /api/v1/id4ns/{id4n}/properties | Retrieve ID4n properties |
| ListElementsOfCollection | GET /api/v1/collections/{id4n}/elements | List contents of the collection |
| PatchProperties | PATCH /api/v1/id4ns/{id4n}/properties | Patch ID4n properties |
| RemoveElementsFromCollection | DELETE /api/v1/collections/{id4n}/elements | Remove elements from collection |
| UpdateCollection | PATCH /api/v1/collections/{id4n} | Update collection |
void AddElementsToCollection (string id4n, ListOfId4ns listOfGuids)
Add elements to collection
using System;
using System.Diagnostics;
using BlueRain.ID4i.Api;
using BlueRain.ID4i.Client;
using BlueRain.ID4i.Model;
namespace Example
{
public class AddElementsToCollectionExample
{
public void main()
{
// Configure API key authorization: Authorization
Configuration.Default.AddApiKey("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.AddApiKeyPrefix("Authorization", "Bearer");
var apiInstance = new CollectionsApi();
var id4n = id4n_example; // string | id4n
var listOfGuids = new ListOfId4ns(); // ListOfId4ns | listOfGuids
try
{
// Add elements to collection
apiInstance.AddElementsToCollection(id4n, listOfGuids);
}
catch (Exception e)
{
Debug.Print("Exception when calling CollectionsApi.AddElementsToCollection: " + e.Message );
}
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| id4n | string | id4n | |
| listOfGuids | ListOfId4ns | listOfGuids |
void (empty response body)
- Content-Type: application/xml, application/json
- Accept: application/xml, application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Id4n CreateCollection (CreateCollectionRequest createInfo)
Create collection
using System;
using System.Diagnostics;
using BlueRain.ID4i.Api;
using BlueRain.ID4i.Client;
using BlueRain.ID4i.Model;
namespace Example
{
public class CreateCollectionExample
{
public void main()
{
// Configure API key authorization: Authorization
Configuration.Default.AddApiKey("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.AddApiKeyPrefix("Authorization", "Bearer");
var apiInstance = new CollectionsApi();
var createInfo = new CreateCollectionRequest(); // CreateCollectionRequest | createInfo
try
{
// Create collection
Id4n result = apiInstance.CreateCollection(createInfo);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling CollectionsApi.CreateCollection: " + e.Message );
}
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| createInfo | CreateCollectionRequest | createInfo |
- Content-Type: application/xml, application/json
- Accept: application/xml, application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
void DeleteCollection (string id4n)
Delete collection
using System;
using System.Diagnostics;
using BlueRain.ID4i.Api;
using BlueRain.ID4i.Client;
using BlueRain.ID4i.Model;
namespace Example
{
public class DeleteCollectionExample
{
public void main()
{
// Configure API key authorization: Authorization
Configuration.Default.AddApiKey("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.AddApiKeyPrefix("Authorization", "Bearer");
var apiInstance = new CollectionsApi();
var id4n = id4n_example; // string | id4n
try
{
// Delete collection
apiInstance.DeleteCollection(id4n);
}
catch (Exception e)
{
Debug.Print("Exception when calling CollectionsApi.DeleteCollection: " + e.Message );
}
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| id4n | string | id4n |
void (empty response body)
- Content-Type: application/xml, application/json
- Accept: application/xml, application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
void DeleteProperties (string id4n, string organizationId, List properties)
Delete ID4n properties
Partial deletion of id4n properties. If the property does not exist, it will be ignored.
using System;
using System.Diagnostics;
using BlueRain.ID4i.Api;
using BlueRain.ID4i.Client;
using BlueRain.ID4i.Model;
namespace Example
{
public class DeletePropertiesExample
{
public void main()
{
// Configure API key authorization: Authorization
Configuration.Default.AddApiKey("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.AddApiKeyPrefix("Authorization", "Bearer");
var apiInstance = new CollectionsApi();
var id4n = id4n_example; // string | The id4n
var organizationId = organizationId_example; // string | The organization namespace to work on while deleting the properties.
var properties = ; // List<string> | A set of property keys to delete.
try
{
// Delete ID4n properties
apiInstance.DeleteProperties(id4n, organizationId, properties);
}
catch (Exception e)
{
Debug.Print("Exception when calling CollectionsApi.DeleteProperties: " + e.Message );
}
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| id4n | string | The id4n | |
| organizationId | string | The organization namespace to work on while deleting the properties. | |
| properties | List<string> | A set of property keys to delete. |
void (empty response body)
- Content-Type: application/xml, application/json
- Accept: application/xml, application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GuidCollection FindCollection (string id4n)
Find collection
using System;
using System.Diagnostics;
using BlueRain.ID4i.Api;
using BlueRain.ID4i.Client;
using BlueRain.ID4i.Model;
namespace Example
{
public class FindCollectionExample
{
public void main()
{
// Configure API key authorization: Authorization
Configuration.Default.AddApiKey("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.AddApiKeyPrefix("Authorization", "Bearer");
var apiInstance = new CollectionsApi();
var id4n = id4n_example; // string | id4n
try
{
// Find collection
GuidCollection result = apiInstance.FindCollection(id4n);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling CollectionsApi.FindCollection: " + e.Message );
}
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| id4n | string | id4n |
- Content-Type: application/xml, application/json
- Accept: application/xml, application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
PaginatedResponseOfGuidCollection GetAllCollectionsOfOrganization (string organizationId, int? offset = null, int? limit = null, string type = null, string label = null, string labelPrefix = null, List property = null)
Get collections of organization
Retrieving all collections of an organization in a paginated manner. You may filter the results by specifying id4n properties with filter operations (eq, in, ne) in the query parameters. e.g. com.yourcompany.orderId.eq=1234
using System;
using System.Diagnostics;
using BlueRain.ID4i.Api;
using BlueRain.ID4i.Client;
using BlueRain.ID4i.Model;
namespace Example
{
public class GetAllCollectionsOfOrganizationExample
{
public void main()
{
// Configure API key authorization: Authorization
Configuration.Default.AddApiKey("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.AddApiKeyPrefix("Authorization", "Bearer");
var apiInstance = new CollectionsApi();
var organizationId = organizationId_example; // string | The namespace of the organization
var offset = 56; // int? | Start with the n-th element (optional)
var limit = 56; // int? | The maximum count of returned elements (optional)
var type = type_example; // string | Filter by this type (optional)
var label = label_example; // string | Filter by this label (optional)
var labelPrefix = labelPrefix_example; // string | Filter by this label prefix (optional)
var property = new List<string>(); // List<string> | List of i4dn property filter. e.g. \"com.myorga.state:IN:waiting|processing\" or \"com.myorga.orderId:EQ:SAP001\" (optional)
try
{
// Get collections of organization
PaginatedResponseOfGuidCollection result = apiInstance.GetAllCollectionsOfOrganization(organizationId, offset, limit, type, label, labelPrefix, property);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling CollectionsApi.GetAllCollectionsOfOrganization: " + e.Message );
}
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| organizationId | string | The namespace of the organization | |
| offset | int? | Start with the n-th element | [optional] |
| limit | int? | The maximum count of returned elements | [optional] |
| type | string | Filter by this type | [optional] |
| label | string | Filter by this label | [optional] |
| labelPrefix | string | Filter by this label prefix | [optional] |
| property | List<string> | List of i4dn property filter. e.g. "com.myorga.state:IN:waiting | processing" or "com.myorga.orderId:EQ:SAP001" |
PaginatedResponseOfGuidCollection
- Content-Type: application/xml, application/json
- Accept: application/xml, application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Dictionary<string, string> GetProperties (string id4n, string organizationId = null)
Retrieve ID4n properties
List all properties of an id4n.
using System;
using System.Diagnostics;
using BlueRain.ID4i.Api;
using BlueRain.ID4i.Client;
using BlueRain.ID4i.Model;
namespace Example
{
public class GetPropertiesExample
{
public void main()
{
// Configure API key authorization: Authorization
Configuration.Default.AddApiKey("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.AddApiKeyPrefix("Authorization", "Bearer");
var apiInstance = new CollectionsApi();
var id4n = id4n_example; // string | The id4n
var organizationId = organizationId_example; // string | The organization namespace. (optional)
try
{
// Retrieve ID4n properties
Dictionary<string, string> result = apiInstance.GetProperties(id4n, organizationId);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling CollectionsApi.GetProperties: " + e.Message );
}
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| id4n | string | The id4n | |
| organizationId | string | The organization namespace. | [optional] |
Dictionary<string, string>
- Content-Type: application/xml, application/json
- Accept: application/xml, application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
PaginatedResponseOfGuid ListElementsOfCollection (string id4n, int? offset = null, int? limit = null, string organizationId = null)
List contents of the collection
using System;
using System.Diagnostics;
using BlueRain.ID4i.Api;
using BlueRain.ID4i.Client;
using BlueRain.ID4i.Model;
namespace Example
{
public class ListElementsOfCollectionExample
{
public void main()
{
// Configure API key authorization: Authorization
Configuration.Default.AddApiKey("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.AddApiKeyPrefix("Authorization", "Bearer");
var apiInstance = new CollectionsApi();
var id4n = id4n_example; // string | id4n
var offset = 56; // int? | Start with the n-th element (optional)
var limit = 56; // int? | The maximum count of returned elements (optional)
var organizationId = organizationId_example; // string | The organization namespace. (optional)
try
{
// List contents of the collection
PaginatedResponseOfGuid result = apiInstance.ListElementsOfCollection(id4n, offset, limit, organizationId);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling CollectionsApi.ListElementsOfCollection: " + e.Message );
}
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| id4n | string | id4n | |
| offset | int? | Start with the n-th element | [optional] |
| limit | int? | The maximum count of returned elements | [optional] |
| organizationId | string | The organization namespace. | [optional] |
- Content-Type: application/xml, application/json
- Accept: application/xml, application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
void PatchProperties (string id4n, string organizationId, Object properties)
Patch ID4n properties
Partial updating of id4n properties. If a property contains a null value the property will be deleted other values will be saved and overwritten if they already exist.
using System;
using System.Diagnostics;
using BlueRain.ID4i.Api;
using BlueRain.ID4i.Client;
using BlueRain.ID4i.Model;
namespace Example
{
public class PatchPropertiesExample
{
public void main()
{
// Configure API key authorization: Authorization
Configuration.Default.AddApiKey("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.AddApiKeyPrefix("Authorization", "Bearer");
var apiInstance = new CollectionsApi();
var id4n = id4n_example; // string | The id4n
var organizationId = organizationId_example; // string | The organization namespace to work on while patching the properties.
var properties = ; // Object | The properties to update.
try
{
// Patch ID4n properties
apiInstance.PatchProperties(id4n, organizationId, properties);
}
catch (Exception e)
{
Debug.Print("Exception when calling CollectionsApi.PatchProperties: " + e.Message );
}
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| id4n | string | The id4n | |
| organizationId | string | The organization namespace to work on while patching the properties. | |
| properties | Object | The properties to update. |
void (empty response body)
- Content-Type: application/xml, application/json
- Accept: application/xml, application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
void RemoveElementsFromCollection (string id4n, ListOfId4ns listOfGuids)
Remove elements from collection
using System;
using System.Diagnostics;
using BlueRain.ID4i.Api;
using BlueRain.ID4i.Client;
using BlueRain.ID4i.Model;
namespace Example
{
public class RemoveElementsFromCollectionExample
{
public void main()
{
// Configure API key authorization: Authorization
Configuration.Default.AddApiKey("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.AddApiKeyPrefix("Authorization", "Bearer");
var apiInstance = new CollectionsApi();
var id4n = id4n_example; // string | id4n
var listOfGuids = new ListOfId4ns(); // ListOfId4ns | listOfGuids
try
{
// Remove elements from collection
apiInstance.RemoveElementsFromCollection(id4n, listOfGuids);
}
catch (Exception e)
{
Debug.Print("Exception when calling CollectionsApi.RemoveElementsFromCollection: " + e.Message );
}
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| id4n | string | id4n | |
| listOfGuids | ListOfId4ns | listOfGuids |
void (empty response body)
- Content-Type: application/xml, application/json
- Accept: application/xml, application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Object UpdateCollection (string id4n, GuidCollection request)
Update collection
Update collection changing only the given values
using System;
using System.Diagnostics;
using BlueRain.ID4i.Api;
using BlueRain.ID4i.Client;
using BlueRain.ID4i.Model;
namespace Example
{
public class UpdateCollectionExample
{
public void main()
{
// Configure API key authorization: Authorization
Configuration.Default.AddApiKey("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.AddApiKeyPrefix("Authorization", "Bearer");
var apiInstance = new CollectionsApi();
var id4n = id4n_example; // string | id4n
var request = new GuidCollection(); // GuidCollection | request
try
{
// Update collection
Object result = apiInstance.UpdateCollection(id4n, request);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling CollectionsApi.UpdateCollection: " + e.Message );
}
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| id4n | string | id4n | |
| request | GuidCollection | request |
Object
- Content-Type: application/xml, application/json
- Accept: application/xml, application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]