REST - Client - ClientPreference
REST-Interface
REST-Interface
Get by preferenceKey (cached, currently string-only).
URL
GET <application-url>/api/client/preference/<preferenceKey>
Path parameter
Produces
text/plain
String - preference-value
Permission
ADMINISTRATE_ALL
Sample
GET http://localhost:8080/mtr-backend/api/client/preference/general.fileUploadMaxSizeBytes
Get all client-preferences as map.
URL
GET <application-url>/api/client/preference
Produces
application/json
application/xml
com.matterial.mtr.api.object.PreferenceMapContainer
Permission
ADMINISTRATE_ALL
Sample
GET http://localhost:8080/mtr-backend/api/client/preference
Update the given preference.
URL
PUT <application-url>/api/client/preference/<preferenceKey>
Path parameter
Consumes
text/plain
String - preferenceValue
Produces
text/plain
Integer - updated rows
Permission
ADMINISTRATE_ALL
Sample
PUT http://localhost:8080/mtr-backend/api/client/preference/general.fileUploadMaxSizeBytes
URL
DELETE <application-url>/api/client/preference/<preferenceKey>
Path parameter
Produces
text/plain
Integer - count of removed
Permission
ADMINISTRATE_ALL
Sample
DELETE http://localhost:8080/mtr-backend/api/client/preference/general.fileUploadMaxSizeBytes