Grep the server Modules and Apps directory to find uses of it. You 
probably also want to find out about xdmp:transaction-create() as well.

Maybe it's time we documented this functionality - I've seen lots of 
people wanting to use it recently.

John

On 06/10/14 23:55, Gary Russo wrote:
> 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
> [email protected]
> http://developer.marklogic.com/mailman/listinfo/general
>


-- 
John Snelson, Lead Engineer                    http://twitter.com/jpcs
MarkLogic Corporation                         http://www.marklogic.com
_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to