All URIs are relative to http://localhost/api/v1
Method | HTTP request | Description |
---|---|---|
createUser | POST /users | |
deleteUser | DELETE /users/{id} | |
getUser | GET /users/{id} | |
listUsers | GET /users | |
updateUser | PATCH /users/{id} |
UserResponse createUser(user)
Creates a new user in the store
// Import classes:
//import io.github.triglav_dataflow.client.ApiClient;
//import io.github.triglav_dataflow.client.ApiException;
//import io.github.triglav_dataflow.client.Configuration;
//import io.github.triglav_dataflow.client.auth.*;
//import io.github.triglav_dataflow.client.api.UsersApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: api_key
ApiKeyAuth api_key = (ApiKeyAuth) defaultClient.getAuthentication("api_key");
api_key.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.setApiKeyPrefix("Token");
UsersApi apiInstance = new UsersApi();
UserRequest user = new UserRequest(); // UserRequest | User to add to the store
try {
UserResponse result = apiInstance.createUser(user);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling UsersApi#createUser");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
user | UserRequest | User to add to the store |
- Content-Type: application/json
- Accept: application/json
deleteUser(id)
Deletes single user
// Import classes:
//import io.github.triglav_dataflow.client.ApiClient;
//import io.github.triglav_dataflow.client.ApiException;
//import io.github.triglav_dataflow.client.Configuration;
//import io.github.triglav_dataflow.client.auth.*;
//import io.github.triglav_dataflow.client.api.UsersApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: api_key
ApiKeyAuth api_key = (ApiKeyAuth) defaultClient.getAuthentication("api_key");
api_key.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.setApiKeyPrefix("Token");
UsersApi apiInstance = new UsersApi();
Long id = 789L; // Long | ID of user to fetch
try {
apiInstance.deleteUser(id);
} catch (ApiException e) {
System.err.println("Exception when calling UsersApi#deleteUser");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
id | Long | ID of user to fetch |
null (empty response body)
- Content-Type: application/json
- Accept: application/json
UserResponse getUser(id)
Returns a single user
// Import classes:
//import io.github.triglav_dataflow.client.ApiClient;
//import io.github.triglav_dataflow.client.ApiException;
//import io.github.triglav_dataflow.client.Configuration;
//import io.github.triglav_dataflow.client.auth.*;
//import io.github.triglav_dataflow.client.api.UsersApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: api_key
ApiKeyAuth api_key = (ApiKeyAuth) defaultClient.getAuthentication("api_key");
api_key.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.setApiKeyPrefix("Token");
UsersApi apiInstance = new UsersApi();
Long id = 789L; // Long | ID of user to fetch
try {
UserResponse result = apiInstance.getUser(id);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling UsersApi#getUser");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
id | Long | ID of user to fetch |
- Content-Type: application/json
- Accept: application/json
List<UserEachResponse> listUsers()
Returns all users from the system that the user has access to
// Import classes:
//import io.github.triglav_dataflow.client.ApiClient;
//import io.github.triglav_dataflow.client.ApiException;
//import io.github.triglav_dataflow.client.Configuration;
//import io.github.triglav_dataflow.client.auth.*;
//import io.github.triglav_dataflow.client.api.UsersApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: api_key
ApiKeyAuth api_key = (ApiKeyAuth) defaultClient.getAuthentication("api_key");
api_key.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.setApiKeyPrefix("Token");
UsersApi apiInstance = new UsersApi();
try {
List<UserEachResponse> result = apiInstance.listUsers();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling UsersApi#listUsers");
e.printStackTrace();
}
This endpoint does not need any parameter.
- Content-Type: application/json
- Accept: application/json
UserResponse updateUser(id, user)
Updates a single user
// Import classes:
//import io.github.triglav_dataflow.client.ApiClient;
//import io.github.triglav_dataflow.client.ApiException;
//import io.github.triglav_dataflow.client.Configuration;
//import io.github.triglav_dataflow.client.auth.*;
//import io.github.triglav_dataflow.client.api.UsersApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: api_key
ApiKeyAuth api_key = (ApiKeyAuth) defaultClient.getAuthentication("api_key");
api_key.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.setApiKeyPrefix("Token");
UsersApi apiInstance = new UsersApi();
Long id = 789L; // Long | ID of user to fetch
UserRequest user = new UserRequest(); // UserRequest | User parameters to update
try {
UserResponse result = apiInstance.updateUser(id, user);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling UsersApi#updateUser");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
id | Long | ID of user to fetch | |
user | UserRequest | User parameters to update |
- Content-Type: application/json
- Accept: application/json