All URIs are relative to http://localhost/api
Method | HTTP request | Description |
---|---|---|
authGet | GET /auth | Authenticate a user by giving an Authorization Grant. |
profileGet | GET /profile | Returns the user's profile |
Object authGet(grant)
Authenticate a user by giving an Authorization Grant.
// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.AuthenticationApi;
AuthenticationApi apiInstance = new AuthenticationApi();
String grant = "grant_example"; // String |
try {
Object result = apiInstance.authGet(grant);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AuthenticationApi#authGet");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
grant | String |
Object
No authorization required
- Content-Type: application/json
- Accept: application/json
Object profileGet()
Returns the user's profile
// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.AuthenticationApi;
AuthenticationApi apiInstance = new AuthenticationApi();
try {
Object result = apiInstance.profileGet();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AuthenticationApi#profileGet");
e.printStackTrace();
}
This endpoint does not need any parameter.
Object
No authorization required
- Content-Type: application/json
- Accept: application/json