Check XML Predicate from Library Entity ======================================= .. code-block:: http /api/repositories/{repository}/library/entities/{libraryID}/checkxmlpredicatefromentity .. csv-table:: :header: Parameter, Type, Purpose :widths: 20, 20, 60 :stub-columns: 1 repository, string, The name of the :doc:`repository` to access libraryID, int, The ID of the library entity Post ~~~~ .. http:post:: /api/repositories/(string:repository)/library/entities/(int:libraryID)/checkxmlpredicatefromentity :synopsis: Check a predicate against an entity .. code-block:: http POST /api/repositories/jupiter/library/entities/2/checkxmlexpressionfromentity HTTP/1.1 Content-Type: application/json { "entity": "2", "expression": "'Vin Number'>71006" } The message body is a JSON string containing two key-value pairs: the first, ``entity``, is the library ID to check against; the second, ``expression``, is the expression to check. .. csv-table:: :header: Response Code, Reason :widths: 25, 75 200, Success 500, Server error A successful response contains the expression transformed into XML. The request above would result in the following response: .. code-block:: http HTTP/1.1 200 OK Content-type: text/xml 'Vin Number'>71006 Vin Number 71006