# swagger-java-client

Azure Blockchain Workbench REST API
- API version: v1

The Azure Blockchain Workbench REST API is a Workbench extensibility point, which allows developers to create and manage blockchain applications, manage users and organizations within a consortium, integrate blockchain applications into services and platforms, perform transactions on a blockchain, and retrieve transactional and contract data from a blockchain.


*Automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen)*


## Requirements

Building the API client library requires:
1. Java 1.7+
2. Maven/Gradle

## Installation

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

```shell
mvn clean install
```

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

```shell
mvn clean deploy
```

Refer to the [OSSRH Guide](http://central.sonatype.org/pages/ossrh-guide.html) for more information.

### Maven users

Add this dependency to your project's POM:

```xml
<dependency>
  <groupId>io.swagger</groupId>
  <artifactId>swagger-java-client</artifactId>
  <version>1.0.0</version>
  <scope>compile</scope>
</dependency>
```

### Gradle users

Add this dependency to your project's build file:

```groovy
compile "io.swagger:swagger-java-client:1.0.0"
```

### Others

At first generate the JAR by executing:

```shell
mvn clean package
```

Then manually install the following JARs:

* `target/swagger-java-client-1.0.0.jar`
* `target/lib/*.jar`

## Getting Started

Please follow the [installation](#installation) instruction and execute the following Java code:

```java

import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ApplicationsApi;

import java.io.File;
import java.util.*;

public class ApplicationsApiExample {

    public static void main(String[] args) {
        
        ApplicationsApi apiInstance = new ApplicationsApi();
        String applicationID = "applicationID_example"; // String | The id of the application.
        try {
            apiInstance.applicationDelete(applicationID);
        } catch (ApiException e) {
            System.err.println("Exception when calling ApplicationsApi#applicationDelete");
            e.printStackTrace();
        }
    }
}

```

## Documentation for API Endpoints

All URIs are relative to *https://localhost*

Class | Method | HTTP request | Description
------------ | ------------- | ------------- | -------------
*ApplicationsApi* | [**applicationDelete**](docs/ApplicationsApi.md#applicationDelete) | **DELETE** /api/v1/applications/{applicationID} | 
*ApplicationsApi* | [**applicationDisable**](docs/ApplicationsApi.md#applicationDisable) | **PATCH** /api/v1/applications/{applicationID}/disable | 
*ApplicationsApi* | [**applicationEnable**](docs/ApplicationsApi.md#applicationEnable) | **PATCH** /api/v1/applications/{applicationID}/enable | 
*ApplicationsApi* | [**applicationGet**](docs/ApplicationsApi.md#applicationGet) | **GET** /api/v1/applications/{applicationId} | 
*ApplicationsApi* | [**applicationsGet**](docs/ApplicationsApi.md#applicationsGet) | **GET** /api/v1/applications | 
*ApplicationsApi* | [**applicationsPost**](docs/ApplicationsApi.md#applicationsPost) | **POST** /api/v1/applications | 
*ApplicationsApi* | [**contractCodeDelete**](docs/ApplicationsApi.md#contractCodeDelete) | **DELETE** /api/v1/applications/contractCode/{contractCodeId} | 
*ApplicationsApi* | [**contractCodeGet**](docs/ApplicationsApi.md#contractCodeGet) | **GET** /api/v1/applications/contractCode/{contractCodeId} | 
*ApplicationsApi* | [**contractCodePost**](docs/ApplicationsApi.md#contractCodePost) | **POST** /api/v1/applications/{applicationId}/contractCode | 
*ApplicationsApi* | [**contractCodesGet**](docs/ApplicationsApi.md#contractCodesGet) | **GET** /api/v1/applications/{applicationID}/contractCode | 
*ApplicationsApi* | [**roleAssignmentDelete**](docs/ApplicationsApi.md#roleAssignmentDelete) | **DELETE** /api/v1/applications/{applicationId}/roleAssignments/{roleAssignmentId} | 
*ApplicationsApi* | [**roleAssignmentGet**](docs/ApplicationsApi.md#roleAssignmentGet) | **GET** /api/v1/applications/{applicationId}/roleAssignments/{roleAssignmentId} | 
*ApplicationsApi* | [**roleAssignmentsGet**](docs/ApplicationsApi.md#roleAssignmentsGet) | **GET** /api/v1/applications/{applicationId}/roleAssignments | 
*ApplicationsApi* | [**roleAssignmentsPost**](docs/ApplicationsApi.md#roleAssignmentsPost) | **POST** /api/v1/applications/{applicationId}/roleAssignments | 
*ApplicationsApi* | [**workflowGet**](docs/ApplicationsApi.md#workflowGet) | **GET** /api/v1/applications/workflows/{workflowId} | 
*ApplicationsApi* | [**workflowsGet**](docs/ApplicationsApi.md#workflowsGet) | **GET** /api/v1/applications/{applicationId}/workflows | 
*CapabilitiesApi* | [**canCreateContract**](docs/CapabilitiesApi.md#canCreateContract) | **GET** /api/v1/capabilities/canCreateContract/{workflowId} | 
*CapabilitiesApi* | [**capabilitiesGet**](docs/CapabilitiesApi.md#capabilitiesGet) | **GET** /api/v1/capabilities | 
*CheckersApi* | [**checkApplicationPost**](docs/CheckersApi.md#checkApplicationPost) | **POST** /api/v1/checkers/checkApplication | Check validity of application configuration for Workbench
*CheckersApi* | [**checkContractCodePost**](docs/CheckersApi.md#checkContractCodePost) | **POST** /api/v1/checkers/checkContractCode | Check validity of application ledger implementation for Workbench
*ConnectionsApi* | [**blockGet**](docs/ConnectionsApi.md#blockGet) | **GET** /api/v1/ledgers/connections/{connectionId}/blocks/{blockId} | 
*ConnectionsApi* | [**blocksGet**](docs/ConnectionsApi.md#blocksGet) | **GET** /api/v1/ledgers/connections/{connectionId}/blocks | 
*ConnectionsApi* | [**connectionGet**](docs/ConnectionsApi.md#connectionGet) | **GET** /api/v1/ledgers/connections/{connectionId} | 
*ConnectionsApi* | [**connectionsGet**](docs/ConnectionsApi.md#connectionsGet) | **GET** /api/v1/ledgers/connections | 
*ConnectionsApi* | [**transactionGet**](docs/ConnectionsApi.md#transactionGet) | **GET** /api/v1/ledgers/connections/{connectionId}/transactions/{transactionId} | 
*ConnectionsApi* | [**transactionsGet**](docs/ConnectionsApi.md#transactionsGet) | **GET** /api/v1/ledgers/connections/{connectionId}/transactions | 
*ContractsApi* | [**contractActionGet**](docs/ContractsApi.md#contractActionGet) | **GET** /api/v1/contracts/{contractId}/actions/{actionId} | 
*ContractsApi* | [**contractActionPost**](docs/ContractsApi.md#contractActionPost) | **POST** /api/v1/contracts/{contractId}/actions | 
*ContractsApi* | [**contractActionsGet**](docs/ContractsApi.md#contractActionsGet) | **GET** /api/v1/contracts/{contractId}/actions | 
*ContractsApi* | [**contractGet**](docs/ContractsApi.md#contractGet) | **GET** /api/v1/contracts/{contractId} | 
*ContractsApi* | [**contractPost**](docs/ContractsApi.md#contractPost) | **POST** /api/v1/contracts | 
*ContractsApi* | [**contractsGet**](docs/ContractsApi.md#contractsGet) | **GET** /api/v1/contracts | 
*GraphProxyApi* | [**graphProxyUsersGet**](docs/GraphProxyApi.md#graphProxyUsersGet) | **GET** /api/v1/graph-proxy/{version}/users | Get Users from AAD Graph
*LedgersApi* | [**ledgersGet**](docs/LedgersApi.md#ledgersGet) | **GET** /api/v1/ledgers | 
*UsersApi* | [**meGet**](docs/UsersApi.md#meGet) | **GET** /api/v1/users/me | 
*UsersApi* | [**userDelete**](docs/UsersApi.md#userDelete) | **DELETE** /api/v1/users/{userID} | 
*UsersApi* | [**userGet**](docs/UsersApi.md#userGet) | **GET** /api/v1/users/{userID} | 
*UsersApi* | [**usersGet**](docs/UsersApi.md#usersGet) | **GET** /api/v1/users | Get Users
*UsersApi* | [**usersPost**](docs/UsersApi.md#usersPost) | **POST** /api/v1/users | 


## Documentation for Models

 - [Application](docs/Application.md)
 - [ApplicationList](docs/ApplicationList.md)
 - [ApplicationRole](docs/ApplicationRole.md)
 - [Block](docs/Block.md)
 - [BlockList](docs/BlockList.md)
 - [Capabilities](docs/Capabilities.md)
 - [Connection](docs/Connection.md)
 - [ConnectionList](docs/ConnectionList.md)
 - [ContentResult](docs/ContentResult.md)
 - [Contract](docs/Contract.md)
 - [ContractAction](docs/ContractAction.md)
 - [ContractActionParameter](docs/ContractActionParameter.md)
 - [ContractCode](docs/ContractCode.md)
 - [ContractCodeList](docs/ContractCodeList.md)
 - [ContractList](docs/ContractList.md)
 - [ContractProperty](docs/ContractProperty.md)
 - [EntityTagHeaderValue](docs/EntityTagHeaderValue.md)
 - [FileStreamResult](docs/FileStreamResult.md)
 - [IFormFile](docs/IFormFile.md)
 - [Ledger](docs/Ledger.md)
 - [LedgerActionOutput](docs/LedgerActionOutput.md)
 - [LedgerList](docs/LedgerList.md)
 - [Me](docs/Me.md)
 - [RoleAssignment](docs/RoleAssignment.md)
 - [RoleAssignmentInput](docs/RoleAssignmentInput.md)
 - [RoleAssignmentList](docs/RoleAssignmentList.md)
 - [Stream](docs/Stream.md)
 - [StringSegment](docs/StringSegment.md)
 - [Transaction](docs/Transaction.md)
 - [TransactionList](docs/TransactionList.md)
 - [User](docs/User.md)
 - [UserChainMapping](docs/UserChainMapping.md)
 - [UserInput](docs/UserInput.md)
 - [UserList](docs/UserList.md)
 - [Workflow](docs/Workflow.md)
 - [WorkflowActionInput](docs/WorkflowActionInput.md)
 - [WorkflowDataType](docs/WorkflowDataType.md)
 - [WorkflowFunction](docs/WorkflowFunction.md)
 - [WorkflowFunctionParameter](docs/WorkflowFunctionParameter.md)
 - [WorkflowList](docs/WorkflowList.md)
 - [WorkflowProperty](docs/WorkflowProperty.md)
 - [WorkflowState](docs/WorkflowState.md)
 - [WorkflowStateTransition](docs/WorkflowStateTransition.md)
 - [WorkflowStateTransitionList](docs/WorkflowStateTransitionList.md)


## Documentation for Authorization

All endpoints do not require authorization.
Authentication schemes defined for the API:

## Recommendation

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

## Author



