AccountApi
All URIs are relative to http://localhost
Method | HTTP request | Description |
---|---|---|
changeAccount | POST /admin/accounts/change | Changes account |
createAccount | POST /admin/accounts/create | Creates an account |
deleteAccount | DELETE /admin/accounts/delete | Deletes an account |
getAccounts | GET /admin/accounts | Get all accounts according to the filter |
getAccountsCount | GET /admin/accounts/count | Get account count |
changeAccount
AccountModel changeAccount(ChangeAccountRequest)
Changes account
Parameters
Name | Type | Description | Notes |
---|---|---|---|
ChangeAccountRequest | ChangeAccountRequest |
Return type
Authorization
HTTP request headers
- Content-Type: application/json
- Accept: application/json, /
createAccount
AccountModel createAccount(CreateAccountRequest)
Creates an account
Parameters
Name | Type | Description | Notes |
---|---|---|---|
CreateAccountRequest | CreateAccountRequest |
Return type
Authorization
HTTP request headers
- Content-Type: application/json
- Accept: application/json, /
deleteAccount
Integer deleteAccount(DeleteAccountsRequest)
Deletes an account
Parameters
Name | Type | Description | Notes |
---|---|---|---|
DeleteAccountsRequest | DeleteAccountsRequest |
Return type
Integer
Authorization
HTTP request headers
- Content-Type: application/json
- Accept: application/json, /
getAccounts
List getAccounts(page, size, accountFieldToOrderBy, fieldsOrder, accountRoles, username)
Get all accounts according to the filter
Parameters
Name | Type | Description | Notes |
---|---|---|---|
page | Integer | Page number | [optional] [default to 1] |
size | Integer | Page size | [optional] [default to 20] |
accountFieldToOrderBy | String | Account's field ordered by | [optional] [default to USERNAME] [enum: USERNAME, ROLES, UNRECOGNIZED] |
fieldsOrder | String | Order in which is ordered | [optional] [default to ASC] [enum: ASC, DESC, UNRECOGNIZED] |
accountRoles | List | Types of roles | [optional] [default to null] [enum: UNSPECIFIED, ADMIN, USER, UNRECOGNIZED] |
username | String | Account's UUID | [optional] [default to ] |
Return type
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json, /
getAccountsCount
Integer getAccountsCount(accountFieldToOrderBy, fieldsOrder, accountRoles, username)
Get account count
Parameters
Name | Type | Description | Notes |
---|---|---|---|
accountFieldToOrderBy | String | Account's field ordered by | [optional] [default to USERNAME] [enum: USERNAME, ROLES, UNRECOGNIZED] |
fieldsOrder | String | Order in which is ordered | [optional] [default to ASC] [enum: ASC, DESC, UNRECOGNIZED] |
accountRoles | List | Types of roles | [optional] [default to null] [enum: UNSPECIFIED, ADMIN, USER, UNRECOGNIZED] |
username | String | Account's UUID | [optional] [default to ] |
Return type
Integer
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json, /