All URIs are relative to https://backend.id4i.de
| Method | HTTP request | Description |
|---|---|---|
| createDocument | POST /api/v1/documents/{id4n}/{organizationId} | Create an document for an id4n |
| deleteDocument | DELETE /api/v1/documents/{id4n}/{organizationId}/{fileName} | Delete a document |
| getDocument | GET /api/v1/documents/{id4n}/{organizationId}/{fileName}/metadata | Retrieve a document (meta-data only, no content) |
| getPublicDocument | GET /api/v1/public/documents/{id4n}/{organizationId}/{fileName}/metadata | Retrieve a public document (meta-data only, no content) |
| listAllDocuments | GET /api/v1/documents/{id4n} | List documents |
| listAllPublicDocuments | GET /api/v1/public/documents/{id4n} | List public documents |
| listDocuments | GET /api/v1/documents/{id4n}/{organizationId} | List organization specific documents |
| putDocument | PUT /api/v1/documents/{id4n}/{organizationId} | Put an document for an id4n |
| readDocument | GET /api/v1/documents/{id4n}/{organizationId}/{fileName} | Read document contents |
| readFromMicrostorage | GET /api/v1/microstorage/{id4n}/{organization} | Read data from microstorage |
| readPublicDocument | GET /api/v1/public/documents/{id4n}/{organizationId}/{fileName} | Read public document contents |
| updateDocumentMetadata | PATCH /api/v1/documents/{id4n}/{organizationId}/{fileName}/metadata | Update a document |
| writeToMicrostorage | PUT /api/v1/microstorage/{id4n}/{organization} | Write data to microstorage |
Document createDocument(organizationId, id4n, content)
Create an document for an id4n
The documents' mime type is suggested on octet-stream data. Otherwise the specified content mime type is used.
var Id4iApi = require('id4i_api');
var defaultClient = Id4iApi.ApiClient.instance;
// Configure API key authorization: Authorization
var Authorization = defaultClient.authentications['Authorization'];
Authorization.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Authorization.apiKeyPrefix = 'Token';
var apiInstance = new Id4iApi.StorageApi();
var organizationId = "organizationId_example"; // String | organizationId
var id4n = "id4n_example"; // String | id4n
var content = "/path/to/file.txt"; // File | content
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.createDocument(organizationId, id4n, content, callback);| Name | Type | Description | Notes |
|---|---|---|---|
| organizationId | String | organizationId | |
| id4n | String | id4n | |
| content | File | content |
- Content-Type: multipart/form-data
- Accept: application/xml, application/json
deleteDocument(organizationId, id4n, fileName)
Delete a document
var Id4iApi = require('id4i_api');
var defaultClient = Id4iApi.ApiClient.instance;
// Configure API key authorization: Authorization
var Authorization = defaultClient.authentications['Authorization'];
Authorization.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Authorization.apiKeyPrefix = 'Token';
var apiInstance = new Id4iApi.StorageApi();
var organizationId = "organizationId_example"; // String | organizationId
var id4n = "id4n_example"; // String | id4n
var fileName = "fileName_example"; // String | fileName
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
};
apiInstance.deleteDocument(organizationId, id4n, fileName, callback);| Name | Type | Description | Notes |
|---|---|---|---|
| organizationId | String | organizationId | |
| id4n | String | id4n | |
| fileName | String | fileName |
null (empty response body)
- Content-Type: application/xml, application/json
- Accept: application/xml, application/json
Document getDocument(organizationId, id4n, fileName)
Retrieve a document (meta-data only, no content)
var Id4iApi = require('id4i_api');
var defaultClient = Id4iApi.ApiClient.instance;
// Configure API key authorization: Authorization
var Authorization = defaultClient.authentications['Authorization'];
Authorization.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Authorization.apiKeyPrefix = 'Token';
var apiInstance = new Id4iApi.StorageApi();
var organizationId = "organizationId_example"; // String | organizationId
var id4n = "id4n_example"; // String | id4n
var fileName = "fileName_example"; // String | fileName
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.getDocument(organizationId, id4n, fileName, callback);| Name | Type | Description | Notes |
|---|---|---|---|
| organizationId | String | organizationId | |
| id4n | String | id4n | |
| fileName | String | fileName |
- Content-Type: application/xml, application/json
- Accept: application/xml, application/json
Document getPublicDocument(organizationId, id4n, fileName)
Retrieve a public document (meta-data only, no content)
var Id4iApi = require('id4i_api');
var defaultClient = Id4iApi.ApiClient.instance;
// Configure API key authorization: Authorization
var Authorization = defaultClient.authentications['Authorization'];
Authorization.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Authorization.apiKeyPrefix = 'Token';
var apiInstance = new Id4iApi.StorageApi();
var organizationId = "organizationId_example"; // String | organizationId
var id4n = "id4n_example"; // String | id4n
var fileName = "fileName_example"; // String | fileName
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.getPublicDocument(organizationId, id4n, fileName, callback);| Name | Type | Description | Notes |
|---|---|---|---|
| organizationId | String | organizationId | |
| id4n | String | id4n | |
| fileName | String | fileName |
- Content-Type: application/xml, application/json
- Accept: application/xml, application/json
PaginatedResponseOfDocument listAllDocuments(id4n, opts)
List documents
Listing all documents of an id4n
var Id4iApi = require('id4i_api');
var defaultClient = Id4iApi.ApiClient.instance;
// Configure API key authorization: Authorization
var Authorization = defaultClient.authentications['Authorization'];
Authorization.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Authorization.apiKeyPrefix = 'Token';
var apiInstance = new Id4iApi.StorageApi();
var id4n = "id4n_example"; // String | id4n
var opts = {
'owner': "owner_example", // String | Filter by owner organization
'offset': 56, // Number | Start with the n-th element
'limit': 56 // Number | The maximum count of returned elements
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.listAllDocuments(id4n, opts, callback);| Name | Type | Description | Notes |
|---|---|---|---|
| id4n | String | id4n | |
| owner | String | Filter by owner organization | [optional] |
| offset | Number | Start with the n-th element | [optional] |
| limit | Number | The maximum count of returned elements | [optional] |
- Content-Type: application/xml, application/json
- Accept: application/xml, application/json
PaginatedResponseOfDocument listAllPublicDocuments(id4n, opts)
List public documents
Listing all public documents of an id4n
var Id4iApi = require('id4i_api');
var defaultClient = Id4iApi.ApiClient.instance;
// Configure API key authorization: Authorization
var Authorization = defaultClient.authentications['Authorization'];
Authorization.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Authorization.apiKeyPrefix = 'Token';
var apiInstance = new Id4iApi.StorageApi();
var id4n = "id4n_example"; // String | id4n
var opts = {
'organizationId': "organizationId_example", // String | organizationId
'owner': "owner_example", // String | Filter by owner organization
'offset': 56, // Number | Start with the n-th element
'limit': 56 // Number | The maximum count of returned elements
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.listAllPublicDocuments(id4n, opts, callback);| Name | Type | Description | Notes |
|---|---|---|---|
| id4n | String | id4n | |
| organizationId | String | organizationId | [optional] |
| owner | String | Filter by owner organization | [optional] |
| offset | Number | Start with the n-th element | [optional] |
| limit | Number | The maximum count of returned elements | [optional] |
- Content-Type: application/xml, application/json
- Accept: application/xml, application/json
PaginatedResponseOfDocument listDocuments(organizationId, id4n, opts)
List organization specific documents
Listing documents of an id4n seen by a specified organization
var Id4iApi = require('id4i_api');
var defaultClient = Id4iApi.ApiClient.instance;
// Configure API key authorization: Authorization
var Authorization = defaultClient.authentications['Authorization'];
Authorization.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Authorization.apiKeyPrefix = 'Token';
var apiInstance = new Id4iApi.StorageApi();
var organizationId = "organizationId_example"; // String | organizationId
var id4n = "id4n_example"; // String | id4n
var opts = {
'owner': "owner_example", // String | Filter by owner organization
'offset': 56, // Number | Start with the n-th element
'limit': 56 // Number | The maximum count of returned elements
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.listDocuments(organizationId, id4n, opts, callback);| Name | Type | Description | Notes |
|---|---|---|---|
| organizationId | String | organizationId | |
| id4n | String | id4n | |
| owner | String | Filter by owner organization | [optional] |
| offset | Number | Start with the n-th element | [optional] |
| limit | Number | The maximum count of returned elements | [optional] |
- Content-Type: application/xml, application/json
- Accept: application/xml, application/json
Document putDocument(organizationId, id4n, content)
Put an document for an id4n
Creating or overwriting an existing document
var Id4iApi = require('id4i_api');
var defaultClient = Id4iApi.ApiClient.instance;
// Configure API key authorization: Authorization
var Authorization = defaultClient.authentications['Authorization'];
Authorization.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Authorization.apiKeyPrefix = 'Token';
var apiInstance = new Id4iApi.StorageApi();
var organizationId = "organizationId_example"; // String | organizationId
var id4n = "id4n_example"; // String | id4n
var content = "/path/to/file.txt"; // File | content
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.putDocument(organizationId, id4n, content, callback);| Name | Type | Description | Notes |
|---|---|---|---|
| organizationId | String | organizationId | |
| id4n | String | id4n | |
| content | File | content |
- Content-Type: multipart/form-data
- Accept: application/xml, application/json
'Blob' readDocument(organizationId, id4n, fileName)
Read document contents
var Id4iApi = require('id4i_api');
var defaultClient = Id4iApi.ApiClient.instance;
// Configure API key authorization: Authorization
var Authorization = defaultClient.authentications['Authorization'];
Authorization.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Authorization.apiKeyPrefix = 'Token';
var apiInstance = new Id4iApi.StorageApi();
var organizationId = "organizationId_example"; // String | organizationId
var id4n = "id4n_example"; // String | id4n
var fileName = "fileName_example"; // String | fileName
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.readDocument(organizationId, id4n, fileName, callback);| Name | Type | Description | Notes |
|---|---|---|---|
| organizationId | String | organizationId | |
| id4n | String | id4n | |
| fileName | String | fileName |
'Blob'
- Content-Type: application/xml, application/json
- Accept: application/xml, application/json
'Blob' readFromMicrostorage(organization, id4n)
Read data from microstorage
var Id4iApi = require('id4i_api');
var defaultClient = Id4iApi.ApiClient.instance;
// Configure API key authorization: Authorization
var Authorization = defaultClient.authentications['Authorization'];
Authorization.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Authorization.apiKeyPrefix = 'Token';
var apiInstance = new Id4iApi.StorageApi();
var organization = "organization_example"; // String | organization
var id4n = "id4n_example"; // String | id4n
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.readFromMicrostorage(organization, id4n, callback);| Name | Type | Description | Notes |
|---|---|---|---|
| organization | String | organization | |
| id4n | String | id4n |
'Blob'
- Content-Type: application/xml, application/json
- Accept: application/xml, application/json
'Blob' readPublicDocument(organizationId, id4n, fileName)
Read public document contents
var Id4iApi = require('id4i_api');
var defaultClient = Id4iApi.ApiClient.instance;
// Configure API key authorization: Authorization
var Authorization = defaultClient.authentications['Authorization'];
Authorization.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Authorization.apiKeyPrefix = 'Token';
var apiInstance = new Id4iApi.StorageApi();
var organizationId = "organizationId_example"; // String | organizationId
var id4n = "id4n_example"; // String | id4n
var fileName = "fileName_example"; // String | fileName
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.readPublicDocument(organizationId, id4n, fileName, callback);| Name | Type | Description | Notes |
|---|---|---|---|
| organizationId | String | organizationId | |
| id4n | String | id4n | |
| fileName | String | fileName |
'Blob'
- Content-Type: application/xml, application/json
- Accept: application/xml, application/json
Document updateDocumentMetadata(organizationId, id4n, fileName, document)
Update a document
var Id4iApi = require('id4i_api');
var defaultClient = Id4iApi.ApiClient.instance;
// Configure API key authorization: Authorization
var Authorization = defaultClient.authentications['Authorization'];
Authorization.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Authorization.apiKeyPrefix = 'Token';
var apiInstance = new Id4iApi.StorageApi();
var organizationId = "organizationId_example"; // String | organizationId
var id4n = "id4n_example"; // String | id4n
var fileName = "fileName_example"; // String | fileName
var document = new Id4iApi.DocumentUpdate(); // DocumentUpdate | document
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.updateDocumentMetadata(organizationId, id4n, fileName, document, callback);| Name | Type | Description | Notes |
|---|---|---|---|
| organizationId | String | organizationId | |
| id4n | String | id4n | |
| fileName | String | fileName | |
| document | DocumentUpdate | document |
- Content-Type: application/xml, application/json
- Accept: application/xml, application/json
Object writeToMicrostorage(organization, id4n, opts)
Write data to microstorage
var Id4iApi = require('id4i_api');
var defaultClient = Id4iApi.ApiClient.instance;
// Configure API key authorization: Authorization
var Authorization = defaultClient.authentications['Authorization'];
Authorization.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Authorization.apiKeyPrefix = 'Token';
var apiInstance = new Id4iApi.StorageApi();
var organization = "organization_example"; // String | organization
var id4n = "id4n_example"; // String | id4n
var opts = {
'contentType': "contentType_example", // String | Content-Type
'contentLength': 789, // Number | Content-Length
'body': B // Blob | body
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.writeToMicrostorage(organization, id4n, opts, callback);| Name | Type | Description | Notes |
|---|---|---|---|
| organization | String | organization | |
| id4n | String | id4n | |
| contentType | String | Content-Type | [optional] |
| contentLength | Number | Content-Length | [optional] |
| body | Blob | body | [optional] |
Object
- Content-Type: /
- Accept: application/xml, application/json