Skip to content

Latest commit

 

History

History

wallets_client

affinidi_tdk_wallets_client

No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)

This Dart package is automatically generated by the OpenAPI Generator project:

Requirements

Dart 2.12 or later

Installation & Usage

Github

If this Dart package is published to Github, add the following dependency to your pubspec.yaml

dependencies:
  affinidi_tdk_wallets_client:
    git: https://github.com/affinidi.com/affinidi-tdk.git

Local

To use the package in your local drive, add the following dependency to your pubspec.yaml

dependencies:
  affinidi_tdk_wallets_client:
    path: /path/to/affinidi_tdk_wallets_client

Tests

TODO

Getting Started

Please follow the installation procedure and then run the following:

import 'package:affinidi_tdk_wallets_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_instance = RevocationApi();
final projectId = projectId_example; // String | Description for projectId.
final walletId = walletId_example; // String | Description for walletId.
final statusId = statusId_example; // String | Description for statusId.

try {
    final result = api_instance.getRevocationCredentialStatus(projectId, walletId, statusId);
    print(result);
} catch (e) {
    print('Exception when calling RevocationApi->getRevocationCredentialStatus: $e\n');
}

Documentation for API Endpoints

All URIs are relative to https://apse1.api.affinidi.io/cwe

Class Method HTTP request Description
RevocationApi getRevocationCredentialStatus GET /v1/projects/{projectId}/wallets/{walletId}/revocation-statuses/{statusId}
RevocationApi getRevocationListCredential GET /v1/wallets/{walletId}/revocation-list/{listId} Return revocation list credential.
RevocationApi revokeCredential POST /v1/wallets/{walletId}/revoke Revoke Credential.
WalletApi createWallet POST /v1/wallets
WalletApi deleteWallet DELETE /v1/wallets/{walletId}
WalletApi getWallet GET /v1/wallets/{walletId}
WalletApi listWallets GET /v1/wallets
WalletApi signCredential POST /v1/wallets/{walletId}/sign-credential
WalletApi signJwtToken POST /v1/wallets/{walletId}/sign-jwt
WalletApi updateWallet PATCH /v1/wallets/{walletId}

Documentation For Models

Documentation For Authorization

Authentication schemes defined for the API:

ProjectTokenAuth

  • Type: API key
  • API key parameter name: authorization
  • Location: HTTP header

Author

[email protected]