all: sync with master; upd chlog
This commit is contained in:
@@ -6,6 +6,33 @@
|
||||
|
||||
|
||||
|
||||
## v0.107.22: API changes
|
||||
|
||||
### `POST /control/i18n/change_language` is deprecated
|
||||
|
||||
Use `PUT /control/profile/update`.
|
||||
|
||||
### `GET /control/i18n/current_language` is deprecated
|
||||
|
||||
Use `GET /control/profile`.
|
||||
|
||||
* The `/control/profile` HTTP API has been changed.
|
||||
|
||||
* The new `PUT /control/profile/update` HTTP API allows user info updates.
|
||||
|
||||
These `control/profile/update` and `control/profile` APIs accept and return a
|
||||
JSON object with the following format:
|
||||
|
||||
```json
|
||||
{
|
||||
"name":"user name",
|
||||
"language": "en",
|
||||
"theme": "auto"
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
|
||||
## v0.107.20: API Changes
|
||||
|
||||
### `POST /control/cache_clear`
|
||||
|
||||
@@ -962,6 +962,9 @@
|
||||
'description': 'OK.'
|
||||
'/i18n/change_language':
|
||||
'post':
|
||||
'deprecated': true
|
||||
'description': >
|
||||
Deprecated: Use `PUT /control/profile` instead.
|
||||
'tags':
|
||||
- 'i18n'
|
||||
'operationId': 'changeLanguage'
|
||||
@@ -980,6 +983,9 @@
|
||||
'description': 'OK.'
|
||||
'/i18n/current_language':
|
||||
'get':
|
||||
'deprecated': true
|
||||
'description': >
|
||||
Deprecated: Use `GET /control/profile` instead.
|
||||
'tags':
|
||||
- 'i18n'
|
||||
'operationId': 'currentLanguage'
|
||||
@@ -1145,6 +1151,20 @@
|
||||
'responses':
|
||||
'302':
|
||||
'description': 'OK.'
|
||||
'/profile/update':
|
||||
'put':
|
||||
'tags':
|
||||
- 'global'
|
||||
'operationId': 'updateProfile'
|
||||
'summary': 'Updates current user info'
|
||||
'requestBody':
|
||||
'content':
|
||||
'application/json':
|
||||
'schema':
|
||||
'$ref': '#/components/schemas/ProfileInfo'
|
||||
'responses':
|
||||
'200':
|
||||
'description': 'OK'
|
||||
'/profile':
|
||||
'get':
|
||||
'tags':
|
||||
@@ -2335,6 +2355,19 @@
|
||||
'properties':
|
||||
'name':
|
||||
'type': 'string'
|
||||
'language':
|
||||
'type': 'string'
|
||||
'theme':
|
||||
'type': 'string'
|
||||
'description': 'Interface theme'
|
||||
'enum':
|
||||
- 'auto'
|
||||
- 'dark'
|
||||
- 'light'
|
||||
'required':
|
||||
- 'name'
|
||||
- 'language'
|
||||
- 'theme'
|
||||
'Client':
|
||||
'type': 'object'
|
||||
'description': 'Client information.'
|
||||
|
||||
Reference in New Issue
Block a user