Check XML Expression from Library Entity

/api/repositories/{repository}/library/entities/{libraryID}/checkxmlexpressionfromentity
Parameter Type Purpose
repository string The name of the Repository to access
libraryID int The ID of the library entity

Post

POST /api/repositories/(string: repository)/library/entities/(int: libraryID)/checkxmlexpressionfromentity
POST /api/repositories/jupiter/library/entities/2/checkxmlexpressionfromentity HTTP/1.1
Content-Type: application/json

{
    "entity": "2",
    "expression": "'Bank Name'"
}

The message body is a JSON string containing two key-value pairs: the first, ENTITY, is the Entity ID to check against; the second, expression, is the expression to check.

Response Code Reason
200 Success
500 Server error

A successful response contains the expression transformed into XML.

The request above would result in the following response:

HTTP/1.1 200 OK
Content-type: text/xml

<?xml version="1.0" ?>
<expr>
    <text>'Bank Name'</text>
    <var>Bank Name</var>
</expr>

If an attribute referenced in the expression doesn’t exist in the Entity, the reponse will be:

HTTP/1.1 200 ok
Content-type: text/xml

unrecognized variable 'Bank Name'