Does Box support client side transactions?
I'm using Box APIs in my application and I wish to undo some of the non-idempotent stuff like create / update file.
In case something goes wrong in my workflow, I need to reverse actions in Box. I can do this if I get transaction support. Before calling Box APIs I can create transaction and once my workflow is complete I will commit transaction for Box.
-
The Box API doesn't support a custom user-defined transaction over multiple API calls — you'll need to maintain the logic for what operations need to be undone in your application. One tool you might find helpful in this area is the If-Match header and ETags to ensure that you're operating on the item state you last saw.
サインインしてコメントを残してください。
コメント
1件のコメント