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 |
| deleteAccounts | DELETE /admin/accounts/delete | Deletes accounts |
| 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, /
deleteAccounts
Integer deleteAccounts(DeleteAccountsRequest)
Deletes accounts
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, uuid)
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, UUID, 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: ADMIN, USER, ADJUDICATOR, UNRECOGNIZED] |
| username | String | Account's username | [optional] [default to ] |
| uuid | 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, uuid)
Get account count
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| accountFieldToOrderBy | String | Account's field ordered by | [optional] [default to USERNAME] [enum: USERNAME, ROLES, UUID, 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: ADMIN, USER, ADJUDICATOR, UNRECOGNIZED] |
| username | String | Account's username | [optional] [default to ] |
| uuid | String | Account's UUID | [optional] [default to ] |
Return type
Integer
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json, /