All URIs are relative to https://hornet-trunk.dev.xtrf.eu/home-api
Method | HTTP request | Description |
---|---|---|
getActive | GET /dictionaries/active | Returns active dictionary entities for all types. |
getActiveByType | GET /dictionaries/{type}/active | Returns active values from a given dictionary. |
getAll1 | GET /dictionaries/all | Returns dictionary entities for all types. Both active and not active ones. |
getAll3 | GET /services/all | Returns services list |
getAllActive | GET /services/active | Returns active services list |
getAllByType | GET /dictionaries/{type}/all | Returns all values (both active and not active) from a given dictionary. |
getByTypeAndId | GET /dictionaries/{type}/{id} | Returns specific value from a given dictionary. |
ManyValuesPerTypeDTO getActive()
Returns active dictionary entities for all types.
Returns active dictionary entities for all types.
// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.DictionariesApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: X-AUTH-ACCESS-TOKEN
ApiKeyAuth X-AUTH-ACCESS-TOKEN = (ApiKeyAuth) defaultClient.getAuthentication("X-AUTH-ACCESS-TOKEN");
X-AUTH-ACCESS-TOKEN.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//X-AUTH-ACCESS-TOKEN.setApiKeyPrefix("Token");
DictionariesApi apiInstance = new DictionariesApi();
try {
ManyValuesPerTypeDTO result = apiInstance.getActive();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DictionariesApi#getActive");
e.printStackTrace();
}
This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: application/vnd.xtrf-v1+json;charset=UTF-8
DictionaryEntity getActiveByType(type, nameEquals)
Returns active values from a given dictionary.
Returns active values from a given dictionary.
// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.DictionariesApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: X-AUTH-ACCESS-TOKEN
ApiKeyAuth X-AUTH-ACCESS-TOKEN = (ApiKeyAuth) defaultClient.getAuthentication("X-AUTH-ACCESS-TOKEN");
X-AUTH-ACCESS-TOKEN.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//X-AUTH-ACCESS-TOKEN.setApiKeyPrefix("Token");
DictionariesApi apiInstance = new DictionariesApi();
String type = "type_example"; // String | dictionary type
String nameEquals = "nameEquals_example"; // String | exact name of entity
try {
DictionaryEntity result = apiInstance.getActiveByType(type, nameEquals);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DictionariesApi#getActiveByType");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
type | String | dictionary type | |
nameEquals | String | exact name of entity | [optional] |
- Content-Type: Not defined
- Accept: application/vnd.xtrf-v1+json;charset=UTF-8
ManyValuesPerTypeDTO getAll1()
Returns dictionary entities for all types. Both active and not active ones.
<div> <p> XTRF holds many user-defined dictionaries (ie. countries). Each dictionary contains a set of values (ie. Poland or Germany). A default value may be defined for a dictionary. </p> <p> Dictionary values are identified using internal identifier which is constant and unique among other values from the same dictionary. Please note that name used in dictionary values is presented in the locale of the current identity. The same dictionary value can have different names, ie. "Poland" for one user, "Polska" for another one. <p> <p> Possible dictionary types: <ul> <li>category</li> <li>country</li> <li>currency</li> <li>industry</li> <li>language</li> <li>leadSource</li> <li>personDepartment</li> <li>personPosition</li> <li>province</li> <li>specialization</li> </ul> </p> </div>
// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.DictionariesApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: X-AUTH-ACCESS-TOKEN
ApiKeyAuth X-AUTH-ACCESS-TOKEN = (ApiKeyAuth) defaultClient.getAuthentication("X-AUTH-ACCESS-TOKEN");
X-AUTH-ACCESS-TOKEN.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//X-AUTH-ACCESS-TOKEN.setApiKeyPrefix("Token");
DictionariesApi apiInstance = new DictionariesApi();
try {
ManyValuesPerTypeDTO result = apiInstance.getAll1();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DictionariesApi#getAll1");
e.printStackTrace();
}
This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: application/vnd.xtrf-v1+json;charset=UTF-8
ServiceDTO getAll3(nameEquals)
Returns services list
Returns workflows list. Both active and not active ones.
// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.DictionariesApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: X-AUTH-ACCESS-TOKEN
ApiKeyAuth X-AUTH-ACCESS-TOKEN = (ApiKeyAuth) defaultClient.getAuthentication("X-AUTH-ACCESS-TOKEN");
X-AUTH-ACCESS-TOKEN.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//X-AUTH-ACCESS-TOKEN.setApiKeyPrefix("Token");
DictionariesApi apiInstance = new DictionariesApi();
String nameEquals = "nameEquals_example"; // String | exact name of entity
try {
ServiceDTO result = apiInstance.getAll3(nameEquals);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DictionariesApi#getAll3");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
nameEquals | String | exact name of entity | [optional] |
- Content-Type: Not defined
- Accept: application/vnd.xtrf-v1+json;charset=UTF-8
ServiceDTO getAllActive(nameEquals)
Returns active services list
Returns active workflows list
// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.DictionariesApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: X-AUTH-ACCESS-TOKEN
ApiKeyAuth X-AUTH-ACCESS-TOKEN = (ApiKeyAuth) defaultClient.getAuthentication("X-AUTH-ACCESS-TOKEN");
X-AUTH-ACCESS-TOKEN.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//X-AUTH-ACCESS-TOKEN.setApiKeyPrefix("Token");
DictionariesApi apiInstance = new DictionariesApi();
String nameEquals = "nameEquals_example"; // String | exact name of entity
try {
ServiceDTO result = apiInstance.getAllActive(nameEquals);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DictionariesApi#getAllActive");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
nameEquals | String | exact name of entity | [optional] |
- Content-Type: Not defined
- Accept: application/vnd.xtrf-v1+json;charset=UTF-8
DictionaryEntity getAllByType(type, nameEquals)
Returns all values (both active and not active) from a given dictionary.
Returns all values (both active and not active) from a given dictionary.
// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.DictionariesApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: X-AUTH-ACCESS-TOKEN
ApiKeyAuth X-AUTH-ACCESS-TOKEN = (ApiKeyAuth) defaultClient.getAuthentication("X-AUTH-ACCESS-TOKEN");
X-AUTH-ACCESS-TOKEN.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//X-AUTH-ACCESS-TOKEN.setApiKeyPrefix("Token");
DictionariesApi apiInstance = new DictionariesApi();
String type = "type_example"; // String | dictionary type
String nameEquals = "nameEquals_example"; // String | exact name of entity
try {
DictionaryEntity result = apiInstance.getAllByType(type, nameEquals);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DictionariesApi#getAllByType");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
type | String | dictionary type | |
nameEquals | String | exact name of entity | [optional] |
- Content-Type: Not defined
- Accept: application/vnd.xtrf-v1+json;charset=UTF-8
DictionaryEntity getByTypeAndId(type, id)
Returns specific value from a given dictionary.
Returns specific value from a given dictionary.
// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.DictionariesApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: X-AUTH-ACCESS-TOKEN
ApiKeyAuth X-AUTH-ACCESS-TOKEN = (ApiKeyAuth) defaultClient.getAuthentication("X-AUTH-ACCESS-TOKEN");
X-AUTH-ACCESS-TOKEN.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//X-AUTH-ACCESS-TOKEN.setApiKeyPrefix("Token");
DictionariesApi apiInstance = new DictionariesApi();
String type = "type_example"; // String | dictionary type
Long id = 789L; // Long | dictionary value identifier
try {
DictionaryEntity result = apiInstance.getByTypeAndId(type, id);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DictionariesApi#getByTypeAndId");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
type | String | dictionary type | |
id | Long | dictionary value identifier |
- Content-Type: Not defined
- Accept: application/vnd.xtrf-v1+json;charset=UTF-8