All URIs are relative to https://backend.id4i.de
| Method | HTTP request | Description |
|---|---|---|
| GetSendInfo | GET /api/v1/transfers/{id4n}/sendInfo | Show transfer preparation information |
| Prepare | PUT /api/v1/transfers/{id4n}/sendInfo | Prepare an object for transfer |
| Receive | PUT /api/v1/transfers/{id4n}/receiveInfo | Transfer a GUID or collection, obtaining it (i.e. becoming the holder) and if allowed also taking ownership |
TransferSendInfo GetSendInfo (string id4n)
Show transfer preparation information
using System;
using System.Diagnostics;
using BlueRain.ID4i.Api;
using BlueRain.ID4i.Client;
using BlueRain.ID4i.Model;
namespace Example
{
public class GetSendInfoExample
{
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 TransferApi();
var id4n = id4n_example; // string | The ID4N to retrieve information about
try
{
// Show transfer preparation information
TransferSendInfo result = apiInstance.GetSendInfo(id4n);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling TransferApi.GetSendInfo: " + e.Message );
}
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| id4n | string | The ID4N to retrieve information about |
- 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 Prepare (string id4n, TransferSendInfo request)
Prepare an object for transfer
using System;
using System.Diagnostics;
using BlueRain.ID4i.Api;
using BlueRain.ID4i.Client;
using BlueRain.ID4i.Model;
namespace Example
{
public class PrepareExample
{
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 TransferApi();
var id4n = id4n_example; // string | The ID4N to prepare for transfer
var request = new TransferSendInfo(); // TransferSendInfo | Transfer preparation status
try
{
// Prepare an object for transfer
Object result = apiInstance.Prepare(id4n, request);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling TransferApi.Prepare: " + e.Message );
}
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| id4n | string | The ID4N to prepare for transfer | |
| request | TransferSendInfo | Transfer preparation status |
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]
void Receive (string id4n, TransferReceiveInfo request)
Transfer a GUID or collection, obtaining it (i.e. becoming the holder) and if allowed also taking ownership
Taking ownership can be forbidden by a previous owner. See methods prepare and getInfo
using System;
using System.Diagnostics;
using BlueRain.ID4i.Api;
using BlueRain.ID4i.Client;
using BlueRain.ID4i.Model;
namespace Example
{
public class ReceiveExample
{
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 TransferApi();
var id4n = id4n_example; // string | This ID4N identifies the object to take hold of
var request = new TransferReceiveInfo(); // TransferReceiveInfo | Required information to receive an id4n object
try
{
// Transfer a GUID or collection, obtaining it (i.e. becoming the holder) and if allowed also taking ownership
apiInstance.Receive(id4n, request);
}
catch (Exception e)
{
Debug.Print("Exception when calling TransferApi.Receive: " + e.Message );
}
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| id4n | string | This ID4N identifies the object to take hold of | |
| request | TransferReceiveInfo | Required information to receive an id4n object |
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]