REST - Document - Lock

REST-Interface

Acquire or update document-lock

URL
PUT <application-url>/api/document/lock/<documentId>

Path parameter

  • documentId

Produces

application/json
application/xml

com.matterial.mtr.api.object.DocumentLock

  • 201 CREATED
  • 400 BAD_REQUEST
  • 500 INTERNAL_SERVER_ERROR

Permission
Login

Sample
PUT http://localhost:8080/mtr-backend/api/document/lock/8


Release my document-lock

URL
DELETE <application-url>/api/document/lock/<documentId>

Path parameter

  • documentId

Produces

text/plain

Integer - count of released

  • 200 OK
  • 400 BAD_REQUEST
  • 404 NOT_FOUND
  • 500 INTERNAL_SERVER_ERROR

Permission
Login

Sample
DELETE http://localhost:8080/mtr-backend/api/document/lock/8

×
Peter's Problem.