AppSettings endpoint /app/settings/mini
The /api/v1/app/settings returns a list of AppSetting
entities, useful to display them for the administrator.
Add an endpoint that returns the settings as a Map<string, ?>
:
{
"name": value, ...
}
AppSetting#categoryTag
should be used to group settings:
{
"notag_setting": "1231",
"categoryTag1": {
"setting1": "aaa",
"setting2": "333"
}
}
When StringUtils.isBlank(categoryTag)
, then the settings go to the root map.