REST - Licence
REST-Interface
REST-Interface
URL
GET <application-url>/api/licence/usage
Produces
application/json
application/xml
com.matterial.mtr.api.object.LicenceUsage
Permission
Login
Sample
GET http://localhost:8080/mtr-backend/api/licence/usage
URL
GET <application-url>/api/licence
Produces
application/json
application/xml
com.matterial.mtr.api.object.Licence
Permission
Login
Sample
GET http://localhost:8080/mtr-backend/api/licence
This updates the licence of the current instance. Be sure to add correct “hash”, that corresponds to matterial-server (HashUtil).
URL
PUT <application-url>/api/licence
Consumes
application/json
application/xml
com.matterial.mtr.api.object.Licence
Produces
application/json
application/xml
com.matterial.mtr.api.object.Licence
Permission
instanceOwnerRequired
Sample
PUT http://localhost:8080/mtr-backend/api/licence
This checks a given licence if it could be updated. Be sure to add correct “hash”, that corresponds to matterial-server (HashUtil).
URL
PUT <application-url>/api/licence/check
Consumes
application/json
application/xml
com.matterial.mtr.api.object.Licence
Produces
application/json
application/xml
com.matterial.mtr.api.object.Licence
Permission
instanceOwnerRequired
Sample
PUT http://localhost:8080/mtr-backend/api/licence/check
Attention:
This API requires the systemAccount which is only available in on-premises installations (private cloud).
This adds a valid licence-key to given licence.
URL
PUT <application-url>/api/licence/generate
Consumes
application/json
application/xml
com.matterial.mtr.api.object.Licence
Produces
application/json
application/xml
com.matterial.mtr.api.object.Licence
Permission
systemAccountRequired
Sample
PUT http://localhost:8080/mtr-backend/api/licence/generate