import 'package:affinidi_tdk_iota_client/api.dart';
All URIs are relative to https://apse1.api.affinidi.io/ais
Method | HTTP request | Description |
---|---|---|
createPexQuery | POST /v1/configurations/{configurationId}/pex-queries | |
deletePexQueries | POST /v1/configurations/{configurationId}/delete-queries | |
deletePexQueryById | DELETE /v1/configurations/{configurationId}/pex-queries/{queryId} | |
getPexQueryById | GET /v1/configurations/{configurationId}/pex-queries/{queryId} | |
listPexQueries | GET /v1/configurations/{configurationId}/pex-queries | |
savePexQueries | POST /v1/configurations/{configurationId}/save-queries | |
updatePexQueryById | PATCH /v1/configurations/{configurationId}/pex-queries/{queryId} |
PexQueryDto createPexQuery(configurationId, createPexQueryInput)
Creates a new Presentation Definition in the configuration to query data.
import 'package:affinidi_tdk_iota_client/api.dart';
// TODO Configure API key authorization: ProjectTokenAuth
//defaultApiClient.getAuthentication<ApiKeyAuth>('ProjectTokenAuth').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('ProjectTokenAuth').apiKeyPrefix = 'Bearer';
final api = AffinidiTdkIotaClient().getPexQueryApi();
final String configurationId = configurationId_example; // String | ID of the Affinidi Iota Framework configuration.
final CreatePexQueryInput createPexQueryInput = ; // CreatePexQueryInput | CreatePexQuery
try {
final response = api.createPexQuery(configurationId, createPexQueryInput);
print(response);
} catch on DioException (e) {
print('Exception when calling PexQueryApi->createPexQuery: $e\n');
}
Name | Type | Description | Notes |
---|---|---|---|
configurationId | String | ID of the Affinidi Iota Framework configuration. | |
createPexQueryInput | CreatePexQueryInput | CreatePexQuery |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
JsonObject deletePexQueries(configurationId, deletePexQueriesInput)
Deletes all Presentation Definition queries of a configuration.
import 'package:affinidi_tdk_iota_client/api.dart';
// TODO Configure API key authorization: ProjectTokenAuth
//defaultApiClient.getAuthentication<ApiKeyAuth>('ProjectTokenAuth').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('ProjectTokenAuth').apiKeyPrefix = 'Bearer';
final api = AffinidiTdkIotaClient().getPexQueryApi();
final String configurationId = configurationId_example; // String | ID of the Affinidi Iota Framework configuration.
final DeletePexQueriesInput deletePexQueriesInput = ; // DeletePexQueriesInput | DeletePexQueriesInput
try {
final response = api.deletePexQueries(configurationId, deletePexQueriesInput);
print(response);
} catch on DioException (e) {
print('Exception when calling PexQueryApi->deletePexQueries: $e\n');
}
Name | Type | Description | Notes |
---|---|---|---|
configurationId | String | ID of the Affinidi Iota Framework configuration. | |
deletePexQueriesInput | DeletePexQueriesInput | DeletePexQueriesInput |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
deletePexQueryById(configurationId, queryId)
Deletes a Presentation Definition in the configuration by ID.
import 'package:affinidi_tdk_iota_client/api.dart';
// TODO Configure API key authorization: ProjectTokenAuth
//defaultApiClient.getAuthentication<ApiKeyAuth>('ProjectTokenAuth').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('ProjectTokenAuth').apiKeyPrefix = 'Bearer';
final api = AffinidiTdkIotaClient().getPexQueryApi();
final String configurationId = configurationId_example; // String | ID of the Affinidi Iota Framework configuration.
final String queryId = queryId_example; // String | The ID of the query.
try {
api.deletePexQueryById(configurationId, queryId);
} catch on DioException (e) {
print('Exception when calling PexQueryApi->deletePexQueryById: $e\n');
}
Name | Type | Description | Notes |
---|---|---|---|
configurationId | String | ID of the Affinidi Iota Framework configuration. | |
queryId | String | The ID of the query. |
void (empty response body)
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
PexQueryDto getPexQueryById(configurationId, queryId)
Retrieves a Presentation Definition in the configuration by ID.
import 'package:affinidi_tdk_iota_client/api.dart';
// TODO Configure API key authorization: ProjectTokenAuth
//defaultApiClient.getAuthentication<ApiKeyAuth>('ProjectTokenAuth').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('ProjectTokenAuth').apiKeyPrefix = 'Bearer';
final api = AffinidiTdkIotaClient().getPexQueryApi();
final String configurationId = configurationId_example; // String | ID of the Affinidi Iota Framework configuration.
final String queryId = queryId_example; // String | The ID of the query.
try {
final response = api.getPexQueryById(configurationId, queryId);
print(response);
} catch on DioException (e) {
print('Exception when calling PexQueryApi->getPexQueryById: $e\n');
}
Name | Type | Description | Notes |
---|---|---|---|
configurationId | String | ID of the Affinidi Iota Framework configuration. | |
queryId | String | The ID of the query. |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ListPexQueriesOK listPexQueries(configurationId, limit, exclusiveStartKey)
Lists all Presentation Definitions in the configuration.
import 'package:affinidi_tdk_iota_client/api.dart';
// TODO Configure API key authorization: ProjectTokenAuth
//defaultApiClient.getAuthentication<ApiKeyAuth>('ProjectTokenAuth').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('ProjectTokenAuth').apiKeyPrefix = 'Bearer';
final api = AffinidiTdkIotaClient().getPexQueryApi();
final String configurationId = configurationId_example; // String | ID of the Affinidi Iota Framework configuration.
final int limit = 56; // int | Maximum number of records to fetch in a list
final String exclusiveStartKey = exclusiveStartKey_example; // String | The base64url encoded key of the first item that this operation will evaluate (it is not returned). Use the value that was returned in the previous operation.
try {
final response = api.listPexQueries(configurationId, limit, exclusiveStartKey);
print(response);
} catch on DioException (e) {
print('Exception when calling PexQueryApi->listPexQueries: $e\n');
}
Name | Type | Description | Notes |
---|---|---|---|
configurationId | String | ID of the Affinidi Iota Framework configuration. | |
limit | int | Maximum number of records to fetch in a list | [optional] |
exclusiveStartKey | String | The base64url encoded key of the first item that this operation will evaluate (it is not returned). Use the value that was returned in the previous operation. | [optional] |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
JsonObject savePexQueries(configurationId, savePexQueriesUpdateInput)
Saves all Presentation Definition queries of a configuration.
import 'package:affinidi_tdk_iota_client/api.dart';
// TODO Configure API key authorization: ProjectTokenAuth
//defaultApiClient.getAuthentication<ApiKeyAuth>('ProjectTokenAuth').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('ProjectTokenAuth').apiKeyPrefix = 'Bearer';
final api = AffinidiTdkIotaClient().getPexQueryApi();
final String configurationId = configurationId_example; // String | ID of the Affinidi Iota Framework configuration.
final SavePexQueriesUpdateInput savePexQueriesUpdateInput = ; // SavePexQueriesUpdateInput | SavePexQueriesInput
try {
final response = api.savePexQueries(configurationId, savePexQueriesUpdateInput);
print(response);
} catch on DioException (e) {
print('Exception when calling PexQueryApi->savePexQueries: $e\n');
}
Name | Type | Description | Notes |
---|---|---|---|
configurationId | String | ID of the Affinidi Iota Framework configuration. | |
savePexQueriesUpdateInput | SavePexQueriesUpdateInput | SavePexQueriesInput |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
PexQueryDto updatePexQueryById(configurationId, queryId, updatePexQueryInput)
Updates the Presentation Definition in the configuration by ID.
import 'package:affinidi_tdk_iota_client/api.dart';
// TODO Configure API key authorization: ProjectTokenAuth
//defaultApiClient.getAuthentication<ApiKeyAuth>('ProjectTokenAuth').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('ProjectTokenAuth').apiKeyPrefix = 'Bearer';
final api = AffinidiTdkIotaClient().getPexQueryApi();
final String configurationId = configurationId_example; // String | ID of the Affinidi Iota Framework configuration.
final String queryId = queryId_example; // String | The ID of the query.
final UpdatePexQueryInput updatePexQueryInput = ; // UpdatePexQueryInput | UpdatePexQueryById
try {
final response = api.updatePexQueryById(configurationId, queryId, updatePexQueryInput);
print(response);
} catch on DioException (e) {
print('Exception when calling PexQueryApi->updatePexQueryById: $e\n');
}
Name | Type | Description | Notes |
---|---|---|---|
configurationId | String | ID of the Affinidi Iota Framework configuration. | |
queryId | String | The ID of the query. | |
updatePexQueryInput | UpdatePexQueryInput | UpdatePexQueryById |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]