Generated by json from
https://editor.swagger.io
Building the API client library requires Maven to be installed.
To install the API client library to your local Maven repository, simply execute:
mvn installTo deploy it to a remote Maven repository instead, configure the settings of the repository and execute:
mvn deployRefer to the official documentation for more information.
Add this dependency to your project's POM:
<dependency>
<groupId>io.swagger</groupId>
<artifactId>springboot-login-app-swagger-java-client</artifactId>
<version>1.0.0</version>
<scope>compile</scope>
</dependency>Add this dependency to your project's build file:
compile "io.swagger:swagger-java-client:1.0.0"At first generate the JAR by executing:
mvn package
Then manually install the following JARs:
- target/swagger-java-client-1.0.0.jar
- target/lib/*.jar
Please follow the installation instruction and execute the following Java code:
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.UserAccountControllerApi;
import java.io.File;
import java.util.*;
public class UserAccountControllerApiExample {
public static void main(String[] args) {
UserAccountControllerApi apiInstance = new UserAccountControllerApi();
String key = "key_example"; // String | key
try {
String result = apiInstance.activateAccountUsingGET(key);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling UserAccountControllerApi#activateAccountUsingGET");
e.printStackTrace();
}
}
}All URIs are relative to https://localhost:7080
| Class | Method | HTTP request | Description |
|---|---|---|---|
| UserAccountControllerApi | activateAccountUsingGET | GET /api/activate | activateAccount |
| UserAccountControllerApi | changePasswordUsingPOST | POST /api/account/change_password | changePassword |
| UserAccountControllerApi | finishPasswordResetUsingPOST | POST /api/account/reset_password/finish | finishPasswordReset |
| UserAccountControllerApi | getAccountUsingGET | GET /api/account | getAccount |
| UserAccountControllerApi | isAuthenticatedUsingGET | GET /api/authenticate | isAuthenticated |
| UserAccountControllerApi | registerAccountUsingPOST | POST /api/register | registerAccount |
| UserAccountControllerApi | requestPasswordResetUsingPOST | POST /api/account/reset_password/init | requestPasswordReset |
| UserAccountControllerApi | saveAccountUsingPOST | POST /api/account | saveAccount |
| UserJwtControllerApi | authorizeUsingPOST | POST /api/authenticate | authorize |
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.