Consultation API

Open Bookmark from a form

Api used to open a bookmark from a html form (like the bookmark files)

POST/rest/consultation/bookmarkForm
 Query parameters None
 Header

Content-type: application/x-www-form-urlencoded

 Body The bookmark has to be stored in a form parameter named "XmlMessage"

The auth-token can be stored in a cookie named "matchSession" (see how to send auth token)

Returns ConsultationResponse
Required role USER
Managed errors
  • 404: kb not found
  • 401: insufficient privileges

Example request

<form id="bookmarkForm" method="post" action="http://localhost:8080/mwp/rest/consultation/bookmarkForm">
    <input type="hidden" name="XmlMessage" value="%3C%3Fxml+version%3D%221.0%22+encoding%3D%22UTF-8%22+standalone..."/>
    <input type="submit" name="submitButton" value="Open bookmark" />
</form>

Feedback