Check XML Predicate from Entity =============================== .. code-block:: http /api/repositories/{repository}/entities/{entity}/checkxmlpredicatefromentity .. csv-table:: :header: Parameter, Type, Purpose :widths: 20, 20, 60 :stub-columns: 1 repository, string, The name of the :doc:`repository` to access entity, int, The :doc:`entity` ID Post ~~~~ .. http:post:: /api/repositories/(string:repository)/entities/(int:entityID)/checkxmlpredicatefromentity :synopsis: Check a predicate against an entity .. code-block:: http POST /api/repositories/jupiter/entities/1/checkxmlexpressionfromentity HTTP/1.1 Content-Type: application/json { "entity": "1", "expression": "'Vin Number'>71006" } The message body is a JSON string containing two key-value pairs: the first, ``entity``, is the :doc:`entity` 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