matterial

Zurück zur Übersicht » REST - Client - ClientPreference

REST - Client - ClientPreference

REST-Interface

Get clientpreference by key

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 clientpreferences (map)

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


Store clientpreference

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


Remove clientpreference

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