Skip to content

Latest commit

 

History

History

README.md

iota.client

IotaService

  • API version: 1.0.0

  • Generator version: 7.13.0

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

For more information, please visit https://www.affinidi.com

Automatically generated by the OpenAPI Generator

Requirements

Building the API client library requires:

  1. Java 1.8+
  2. Maven/Gradle

Installation

To install the API client library to your local Maven repository, simply execute:

mvn clean install

To deploy it to a remote Maven repository instead, configure the settings of the repository and execute:

mvn clean deploy

Refer to the OSSRH Guide for more information.

Maven users

Add this dependency to your project's POM:

<dependency>
  <groupId>com.affinidi.tdk</groupId>
  <artifactId>iota.client</artifactId>
  <version>1.0.0</version>
  <scope>compile</scope>
</dependency>

Gradle users

Add this dependency to your project's build file:

compile "com.affinidi.tdk:iota.client:1.0.0"

Others

At first generate the JAR by executing:

mvn clean package

Then manually install the following JARs:

  • target/iota.client-1.0.0.jar
  • target/lib/*.jar

Getting Started

Please follow the installation instruction and execute the following Java code:

import com.affinidi.tdk.iota.client.*;
import com.affinidi.tdk.iota.client.auth.*;
import com.affinidi.tdk.iota.client.models.*;
import com.affinidi.tdk.iota.client.apis.CallbackApi;

public class CallbackApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        defaultClient.setBasePath("https://apse1.api.affinidi.io/ais");

        CallbackApi apiInstance = new CallbackApi(defaultClient);
        CallbackInput callbackInput = new CallbackInput(); // CallbackInput | CallbackRequestInput
        try {
            CallbackResponseOK result = apiInstance.iotOIDC4VPCallback(callbackInput);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CallbackApi#iotOIDC4VPCallback");
            System.err.println("Status code: " + e.getCode());
            System.err.println("Reason: " + e.getResponseBody());
            System.err.println("Response headers: " + e.getResponseHeaders());
            e.printStackTrace();
        }
    }
}

Documentation for API Endpoints

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

Class Method HTTP request Description
CallbackApi iotOIDC4VPCallback POST /v1/callback
ConfigurationsApi createIotaConfiguration POST /v1/configurations
ConfigurationsApi deleteIotaConfigurationById DELETE /v1/configurations/{configurationId}
ConfigurationsApi getIotaConfigurationById GET /v1/configurations/{configurationId}
ConfigurationsApi getIotaConfigurationMetaData GET /v1/projects/{projectId}/configurations/{configurationId}/metadata
ConfigurationsApi listIotaConfigurations GET /v1/configurations
ConfigurationsApi updateIotaConfigurationById PATCH /v1/configurations/{configurationId}
DcqlQueryApi createDcqlQuery POST /v1/configurations/{configurationId}/dcql-queries
DcqlQueryApi deleteDcqlQueryById DELETE /v1/configurations/{configurationId}/dcql-queries/{queryId}
DcqlQueryApi getDcqlQueryById GET /v1/configurations/{configurationId}/dcql-queries/{queryId}
DcqlQueryApi listDcqlQueries GET /v1/configurations/{configurationId}/dcql-queries
DcqlQueryApi updateDcqlQueryById PATCH /v1/configurations/{configurationId}/dcql-queries/{queryId}
DefaultApi listLoggedConsents GET /v1/logged-consents
IotaApi awsExchangeCredentials POST /v1/aws-exchange-credentials
IotaApi awsExchangeCredentialsProjectToken POST /v1/aws-exchange-credentials/project-token
IotaApi fetchIotaVpResponse POST /v1/fetch-iota-response
IotaApi initiateDataSharingRequest POST /v1/initiate-data-sharing-request
IotaApi iotaExchangeCredentials POST /v1/exchange-credentials
PexQueryApi createPexQuery POST /v1/configurations/{configurationId}/pex-queries
PexQueryApi deletePexQueries POST /v1/configurations/{configurationId}/delete-queries
PexQueryApi deletePexQueryById DELETE /v1/configurations/{configurationId}/pex-queries/{queryId}
PexQueryApi getPexQueryById GET /v1/configurations/{configurationId}/pex-queries/{queryId}
PexQueryApi listPexQueries GET /v1/configurations/{configurationId}/pex-queries
PexQueryApi savePexQueries POST /v1/configurations/{configurationId}/save-queries
PexQueryApi updatePexQueryById PATCH /v1/configurations/{configurationId}/pex-queries/{queryId}

Documentation for Models

Documentation for Authorization

Authentication schemes defined for the API:

AwsSigV4

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

ApiKey

  • Type: API key
  • API key parameter name: x-api-key
  • Location: HTTP header

bearerAuth

  • Type: HTTP Bearer Token authentication (JWT)

ConsumerTokenAuth

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

UserTokenAuth

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

ProjectTokenAuth

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

HeritageTokenAuth

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

Recommendation

It's recommended to create an instance of ApiClient per thread in a multithreaded environment to avoid any potential issues.

Author

[email protected]