errors on endpoints

This commit is contained in:
Alexander 2019-12-06 17:50:53 +03:00 committed by Alexander Strizhakov
commit fea734ca70
No known key found for this signature in database
GPG key ID: 022896A53AEF1381
4 changed files with 118 additions and 80 deletions

View file

@ -665,19 +665,6 @@ Note: Available `:permission_group` is currently moderator and admin. 404 is ret
- 404 Not Found `"Not found"`
- On success: 200 OK `{}`
## `GET /api/pleroma/admin/config/migrate_to_db`
### Run mix task pleroma.config migrate_to_db
Copies `pleroma` environment settings to the database.
- Params: none
- Response:
```json
{}
```
## `GET /api/pleroma/admin/config/migrate_from_db`
### Run mix task pleroma.config migrate_from_db
@ -686,6 +673,8 @@ Copies all settings from database to `config/{env}.exported_from_db.secret.exs`
- Params: none
- Response:
- On failure:
- 400 Bad Request `"To use this endpoint you need to enable dynamic configuration."`
```json
{}
@ -699,6 +688,9 @@ Copies all settings from database to `config/{env}.exported_from_db.secret.exs`
- Params: none
- Response:
- On failure:
- 400 Bad Request `"To use this endpoint you need to enable dynamic configuration."`
- 400 Bad Request `"To use dynamic configuration migrate your settings to database."`
```json
{
@ -831,7 +823,8 @@ config :quack,
```
- Response:
- On failure:
- 400 Bad Request `"To use this endpoint you need to enable dynamic configuration."`
```json
{
configs: [