I'm creating a set of REST extensions that will be used in Mulit-Statement ACID Transactions.
The underlying code will use xdmp:eval() with the transaction-id option. Unfortunately, the transaction-id option is undocumented. Can someone please provide an example of using xdmp:eval() with a transaction-id option? Here's the RESTful APIs that are being created. 1. POST /transaction (: Returns a transaction-id. e.g., 11111111 :) 2. GET /inventory?rs:type=artichoke&rs:transId=11111111 3. GET /inventory?rs:type=bongo&rs:transId=11111111 4. PUT /inventory?rs:type=artichoke&rs:transId=11111111&rs:action=decr&rs:quantity= 3 5. PUT /inventory?rs:type=bongo&rs:transId=11111111&rs:action=decr&rs:quantity=1 6. POST /order?rs:transId=11111111 (: Prepares Document Insert :) 7. PUT /transaction?rs:transId=11111111 (: commits transaction :) 8. DELETE /transaction?rs:transId=11111111 (: rolls back transaction :) Thanks in advance. - GR Gary Russo Enterprise NoSQL Developer http://garyrusso.wordpress.com _______________________________________________ General mailing list General@developer.marklogic.com http://developer.marklogic.com/mailman/listinfo/general