Check XML Predicate from Library Entity¶
/api/repositories/{repository}/library/entities/{libraryID}/checkxmlpredicatefromentity
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)/checkxmlpredicatefromentity
¶
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.
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>'Vin Number'>71006</text>
<gt>
<var>Vin Number</var>
<int>71006</int>
</gt>
</expr>