All URIs are relative to https://backend.id4i.de
| Method | HTTP request | Description |
|---|---|---|
| addGuidAlias | POST /api/v1/id4ns/{id4n}/alias/{aliasType} | Add alias for GUID or Collection |
| getGuidAliasTypes | GET /api/v1/search/guids/aliases/types | List all supported alias types |
| getGuidAliases | GET /api/v1/id4ns/{id4n}/alias | Get all aliases for the given GUID or Collection. |
| removeGuidAlias | DELETE /api/v1/id4ns/{id4n}/alias/{aliasType} | Remove aliases from GUID or Collection |
| searchByAlias | GET /api/v1/search/guids | Search for GUIDs by alias |
addGuidAlias(id4n, aliasType, alias)
Add alias for GUID or Collection
Adds or replaces aliases for single ID4ns (alias type item and mapp) or groups of ID4ns (alias types gtin, ean and article)
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.AliasApi();
var id4n = "id4n_example"; // String | The GUID or Collection to operate on
var aliasType = "aliasType_example"; // String | Alias type, see the corresponding API model
var alias = new Id4iApi.GuidAlias(); // GuidAlias | The alias to add or update
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
};
apiInstance.addGuidAlias(id4n, aliasType, alias, callback);| Name | Type | Description | Notes |
|---|---|---|---|
| id4n | String | The GUID or Collection to operate on | |
| aliasType | String | Alias type, see the corresponding API model | |
| alias | GuidAlias | The alias to add or update |
null (empty response body)
- Content-Type: application/xml, application/json
- Accept: application/xml, application/json
['String'] getGuidAliasTypes()
List all supported alias types
Retrieve this list to find out all alias types to use with alias search and change operations
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.AliasApi();
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.getGuidAliasTypes(callback);This endpoint does not need any parameter.
['String']
- Content-Type: application/xml, application/json
- Accept: application/xml, application/json
{'String': 'String'} getGuidAliases(id4n)
Get all aliases for the given GUID or Collection.
Looks up the alias for each alias type (group and single) and returns a map of all aliases found.
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.AliasApi();
var id4n = "id4n_example"; // String | The GUID or Collection to operate on
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.getGuidAliases(id4n, callback);| Name | Type | Description | Notes |
|---|---|---|---|
| id4n | String | The GUID or Collection to operate on |
{'String': 'String'}
- Content-Type: application/xml, application/json
- Accept: application/xml, application/json
removeGuidAlias(id4n, aliasType)
Remove aliases from GUID or Collection
Remove the alias of the given type
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.AliasApi();
var id4n = "id4n_example"; // String | The GUID or Collection to operate on
var aliasType = "aliasType_example"; // String | Alias type, see the corresponding API model
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
};
apiInstance.removeGuidAlias(id4n, aliasType, callback);| Name | Type | Description | Notes |
|---|---|---|---|
| id4n | String | The GUID or Collection to operate on | |
| aliasType | String | Alias type, see the corresponding API model |
null (empty response body)
- Content-Type: application/xml, application/json
- Accept: application/xml, application/json
PaginatedResponseOfGuid searchByAlias(alias, aliasType, opts)
Search for GUIDs by alias
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.AliasApi();
var alias = "alias_example"; // String | The alias to search for
var aliasType = "aliasType_example"; // String | Alias type type to search for
var opts = {
'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.searchByAlias(alias, aliasType, opts, callback);| Name | Type | Description | Notes |
|---|---|---|---|
| alias | String | The alias to search for | |
| aliasType | String | Alias type type to search for | |
| 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