Zurück zur Übersicht » REST - Person - AccountSetting

REST - Person - AccountSetting

REST-Interface

Get account-settings

This returns all stored account-settings from db, but normally clients should use “LoginData.accountSettings”.
URL
GET <application-url>/api/person/accountsetting

Produces

application/json
application/xml

List<com.matterial.mtr.api.object.AccountSetting>

Permission
Login

Sample
GET http://localhost:8080/mtr-backend/api/person/accountsetting


Update account-setting

Updates a single account-setting by “key”, but normally clients should use “Update account-settings” just storing “loginData.accountSettings” (see below).
URL
PUT <application-url>/api/person/accountsetting

Consumes

application/json
application/xml

com.matterial.mtr.api.object.AccountSetting

Produces

application/json
application/xml

com.matterial.mtr.api.object.AccountSetting

Permission
Login

Sample
PUT http://localhost:8080/mtr-backend/api/person/accountsetting


Update account-settings

Update the currently logged on person’s account settings. The account settings exist as a property in loginData (loginData.accountSettings).

URL
PUT <application-url>/api/person/accountsetting/all

Consumes

application/json
application/xml

Map<String, Object>

{
    "accountSetting.language.ui": "de",
    "accountSetting.language.content": "de",
    "accountSetting.client": 3,
    "accountSetting.showHelp": true,
    "accountSetting.newsSubscriber": "de",
    "accountSetting.showArchiveOnLogin": false,
    "accountSetting.disableRightsOnLogin": false,
    "accountSetting.showWelcomePageOnLogin": true,
}

Permission
Login

Sample
PUT http://localhost:8080/mtr-backend/api/person/accountsetting/all