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

REST - Client - Logo

REST-Interface

Get file

Loading logo of current client.
URL
GET <application-url>/api/client/logo

Query parameter

Produces
File as stream

Permission
Login

Sample
GET http://localhost:8080/mtr-backend/api/client/logo?size=t


Update logo and skin

URL
PUT <application-url>/api/client/logo

Query parameter

Consumes

application/json
application/xml

com.matterial.mtr.api.object.Client

You should only fill the three skinColours, that you want to store:

{ 
  "jsonType": "Client",
  "skinColourButton": "red",
  "skinColourNotification": "blue",
  "skinColourLabel": "orange"
}

Produces

application/json
application/xml

com.matterial.mtr.api.object.Client

Permission
instanceOwnerRequired

Sample
PUT http://localhost:8080/mtr-backend/api/client/logo?contextToken=5b3f2a1c-4a7d-49a3-bfeb-41d0e1e3835d


Remove logo

Remove the logo from current client: Removes the cas-file and the casid from db.
URL
DELETE <application-url>/api/client/logo

Produces

text/plain

Integer - count

Permission
instanceOwnerRequired

Sample
DELETE http://localhost:8080/mtr-backend/api/client/logo