All URIs are relative to http://localhost/api
Method | HTTP request | Description |
---|---|---|
usersIdGet | GET /users/{id} | |
usersIdTokensGet | GET /users/{id}/tokens | |
usersIdTokensNewPost | POST /users/{id}/tokens/new |
Object usersIdGet(id)
// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.UsersApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: bearer
ApiKeyAuth bearer = (ApiKeyAuth) defaultClient.getAuthentication("bearer");
bearer.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//bearer.setApiKeyPrefix("Token");
UsersApi apiInstance = new UsersApi();
Integer id = 56; // Integer |
try {
Object result = apiInstance.usersIdGet(id);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling UsersApi#usersIdGet");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
id | Integer |
Object
- Content-Type: application/json
- Accept: application/json
Object usersIdTokensGet(id)
// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.UsersApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: bearer
ApiKeyAuth bearer = (ApiKeyAuth) defaultClient.getAuthentication("bearer");
bearer.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//bearer.setApiKeyPrefix("Token");
UsersApi apiInstance = new UsersApi();
Integer id = 56; // Integer |
try {
Object result = apiInstance.usersIdTokensGet(id);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling UsersApi#usersIdTokensGet");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
id | Integer |
Object
- Content-Type: application/json
- Accept: application/json
usersIdTokensNewPost(id, createSubSystemPermissionDto)
// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.UsersApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: bearer
ApiKeyAuth bearer = (ApiKeyAuth) defaultClient.getAuthentication("bearer");
bearer.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//bearer.setApiKeyPrefix("Token");
UsersApi apiInstance = new UsersApi();
Integer id = 56; // Integer |
CreateSubSystemPermissionDto createSubSystemPermissionDto = new CreateSubSystemPermissionDto(); // CreateSubSystemPermissionDto |
try {
apiInstance.usersIdTokensNewPost(id, createSubSystemPermissionDto);
} catch (ApiException e) {
System.err.println("Exception when calling UsersApi#usersIdTokensNewPost");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
id | Integer | ||
createSubSystemPermissionDto | CreateSubSystemPermissionDto |
null (empty response body)
- Content-Type: application/json
- Accept: application/json