Building the API client library requires Maven to be installed.
To install the API client library to your local Maven repository, simply execute:
mvn install
To deploy it to a remote Maven repository instead, configure the settings of the repository and execute:
mvn deploy
Refer to the official documentation for more information.
Add this dependency to your project's POM:
<dependency>
<groupId>org.wso2</groupId>
<artifactId>org.wso2.client.test</artifactId>
<version>1.0.0</version>
<scope>compile</scope>
</dependency>
Add this dependency to your project's build file:
compile "org.wso2:org.wso2.client.test:1.0.0"
At first generate the JAR by executing:
mvn package
Then manually install the following JARs:
- target/org.wso2.client.test-1.0.0.jar
- target/lib/*.jar
Please follow the installation instruction and execute the following Java code:
import org.wso2.client.api.*;
import org.wso2.client.api.auth.*;
import org.wso2.client.model.test.*;
import org.wso2.client.api.test.DefaultApi;
import java.io.File;
import java.util.*;
public class DefaultApiExample {
public static void main(String[] args) {
DefaultApi apiInstance = new DefaultApi();
try {
apiInstance.restAccountJsonDelete();
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#restAccountJsonDelete");
e.printStackTrace();
}
}
}
All URIs are relative to https://localhost
Class | Method | HTTP request | Description |
---|---|---|---|
DefaultApi | restAccountJsonDelete | DELETE /rest/account/json/ | |
DefaultApi | restAccountJsonGet | GET /rest/account/json | |
DefaultApi | restAccountJsonIdGet | GET /rest/account/json/{id} | |
DefaultApi | restAccountJsonPost | POST /rest/account/json/ | |
DefaultApi | restAccountJsonPut | PUT /rest/account/json/ |
All endpoints do not require authorization. Authentication schemes defined for the API:
It's recommended to create an instance of ApiClient
per thread in a multithreaded environment to avoid any potential issues.