0.0.3 • Published 2 years ago

integration-services v0.0.3

Weekly downloads
-
License
Unlicense
Repository
-
Last release
2 years ago

integration_services_api_documentation

IntegrationServicesApiDocumentation - JavaScript client for integration_services_api_documentation This is the API documentation for the Integration Services. Have a look at the repository for examples at Github. For further information on the Audit Trail GW API have a look at Audit Trail API and head to SSI Bridge for information about the SSI Bridge.
This SDK is automatically generated by the Swagger Codegen project:

  • API version: 1.0.0
  • Package version: 1.0.0
  • Build package: io.swagger.codegen.v3.generators.javascript.JavaScriptClientCodegen

Installation

For Node.js

npm

To publish the library as a npm, please follow the procedure in "Publishing npm packages".

Then install it via:

npm install integration_services_api_documentation --save

git

If the library is hosted at a git repository, e.g. https://github.com/GIT_USER_ID/GIT_REPO_ID then install it via:

    npm install GIT_USER_ID/GIT_REPO_ID --save

For browser

The library also works in the browser environment via npm and browserify. After following the above steps with Node.js and installing browserify with npm install -g browserify, perform the following (assuming main.js is your entry file):

browserify main.js > bundle.js

Then include bundle.js in the HTML pages.

Webpack Configuration

Using Webpack you may encounter the following error: "Module not found: Error: Cannot resolve module", most certainly you should disable AMD loader. Add/merge the following section to your webpack config:

module: {
  rules: [
    {
      parser: {
        amd: false
      }
    }
  ]
}

Getting Started

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

var IntegrationServicesApiDocumentation = require('integration_services_api_documentation');
var defaultClient = IntegrationServicesApiDocumentation.ApiClient.instance;

// Configure API key authorization: ApiKey
var ApiKey = defaultClient.authentications['ApiKey'];
ApiKey.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiKey.apiKeyPrefix['api-key'] = "Token"

var api = new IntegrationServicesApiDocumentation.AuthenticationApi()
var identityId = new IntegrationServicesApiDocumentation.IdentityIdSchema(); // {IdentityIdSchema} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.authenticationProveOwnershipIdentityIdGet(identityId, callback);

Documentation for API Endpoints

All URIs are relative to https://ensuresec.solutions.iota.org/api/v0.1

ClassMethodHTTP requestDescription
IntegrationServicesApiDocumentation.AuthenticationApiauthenticationProveOwnershipIdentityIdGetGET /authentication/prove-ownership/{identityId}Request a nonce which must be signed by the private key
IntegrationServicesApiDocumentation.AuthenticationApiauthenticationProveOwnershipIdentityIdPostPOST /authentication/prove-ownership/{identityId}Get an authentication token by signing a nonce
IntegrationServicesApiDocumentation.ChannelInfoApichannelInfoChannelChannelAddressDeleteDELETE /channel-info/channel/{channelAddress}Delete information of a channel
IntegrationServicesApiDocumentation.ChannelInfoApichannelInfoChannelChannelAddressGetGET /channel-info/channel/{channelAddress}Get information about a channel
IntegrationServicesApiDocumentation.ChannelInfoApichannelInfoChannelPostPOST /channel-info/channelAdd an existing channel into the database
IntegrationServicesApiDocumentation.ChannelInfoApichannelInfoChannelPutPUT /channel-info/channelUpdate channel information
IntegrationServicesApiDocumentation.ChannelInfoApichannelInfoSearchGetGET /channel-info/searchSearch for a channel
IntegrationServicesApiDocumentation.ChannelsApichannelsCreatePostPOST /channels/createCreate a new channel
IntegrationServicesApiDocumentation.ChannelsApichannelsHistoryChannelAddressGetGET /channels/history/{channelAddress}Get the history of a channel.
IntegrationServicesApiDocumentation.ChannelsApichannelsLogsChannelAddressGetGET /channels/logs/{channelAddress}Get data from the channel
IntegrationServicesApiDocumentation.ChannelsApichannelsLogsChannelAddressPostPOST /channels/logs/{channelAddress}Write data to a channel
IntegrationServicesApiDocumentation.ChannelsApichannelsReImportChannelAddressPostPOST /channels/re-import/{channelAddress}Re import the data from the tangle into the database.
IntegrationServicesApiDocumentation.ChannelsApichannelsValidateChannelAddressPostPOST /channels/validate/{channelAddress}Validates channel data by comparing the log of each link with the data on the tangle.
IntegrationServicesApiDocumentation.IdentitiesApiidentitiesCreatePostPOST /identities/createCreate a new decentralized digital identity (DID)
IntegrationServicesApiDocumentation.IdentitiesApiidentitiesIdentityIdentityIdDeleteDELETE /identities/identity/{identityId}Removes an identity from the Bridge
IntegrationServicesApiDocumentation.IdentitiesApiidentitiesIdentityIdentityIdGetGET /identities/identity/{identityId}Get information about a specific identity
IntegrationServicesApiDocumentation.IdentitiesApiidentitiesIdentityPostPOST /identities/identityRegister an existing identity into the Bridge
IntegrationServicesApiDocumentation.IdentitiesApiidentitiesIdentityPutPUT /identities/identityUpdate claim of a registered identity
IntegrationServicesApiDocumentation.IdentitiesApiidentitiesSearchGetGET /identities/searchSearch for identities
IntegrationServicesApiDocumentation.ServerInfoApiinfoGetGET /infoGet information about the server
IntegrationServicesApiDocumentation.SubscriptionsApisubscriptionsAuthorizeChannelAddressPostPOST /subscriptions/authorize/{channelAddress}Authorize a subscription to a channel
IntegrationServicesApiDocumentation.SubscriptionsApisubscriptionsChannelAddressGetGET /subscriptions/{channelAddress}Get all subscriptions of a channel.
IntegrationServicesApiDocumentation.SubscriptionsApisubscriptionsChannelAddressIdentityIdDeleteDELETE /subscriptions/{channelAddress}/{identityId}Deletes subscription
IntegrationServicesApiDocumentation.SubscriptionsApisubscriptionsChannelAddressIdentityIdGetGET /subscriptions/{channelAddress}/{identityId}Get a subscription by identity id.
IntegrationServicesApiDocumentation.SubscriptionsApisubscriptionsChannelAddressIdentityIdPostPOST /subscriptions/{channelAddress}/{identityId}Adds an existing subscription
IntegrationServicesApiDocumentation.SubscriptionsApisubscriptionsChannelAddressIdentityIdPutPUT /subscriptions/{channelAddress}/{identityId}Updates an existing subscription
IntegrationServicesApiDocumentation.SubscriptionsApisubscriptionsRequestChannelAddressPostPOST /subscriptions/request/{channelAddress}Request subscription to a channel
IntegrationServicesApiDocumentation.SubscriptionsApisubscriptionsRevokeChannelAddressPostPOST /subscriptions/revoke/{channelAddress}Revoke subscription to a channel.
IntegrationServicesApiDocumentation.VerificationApiverificationCheckCredentialPostPOST /verification/check-credentialCheck the verifiable credential of an identity
IntegrationServicesApiDocumentation.VerificationApiverificationCreateCredentialPostPOST /verification/create-credentialVerify the authenticity of an identity and issue a credential
IntegrationServicesApiDocumentation.VerificationApiverificationLatestDocumentIdentityIdGetGET /verification/latest-document/{identityId}Get the latest version of an identity document (DID)
IntegrationServicesApiDocumentation.VerificationApiverificationRevokeCredentialPostPOST /verification/revoke-credentialRevoke one specific verifiable credential of an identity
IntegrationServicesApiDocumentation.VerificationApiverificationTrustedRootsGetGET /verification/trusted-rootsReturns a list of Trusted Root identity identifiers (DIDs)
IntegrationServicesApiDocumentation.VerificationApiverificationTrustedRootsPostPOST /verification/trusted-rootsAdds Trusted Root identity identifiers (DIDs)
IntegrationServicesApiDocumentation.VerificationApiverificationTrustedRootsTrustedRootIdDeleteDELETE /verification/trusted-roots/{trustedRootId}Remove Trusted Root identity identifiers (DIDs)

Documentation for Models

Documentation for Authorization

ApiKey

  • Type: API key
  • API key parameter name: api-key
  • Location: URL query string

BearerAuth