Issue #2 new
created an issue

How would you support transactions though?

Comments (3)

  1. Anonymous

    Right. But since a model maps to a table and in REST it maps to a list of row-like resources, then this can't be used as a drop-in replacement. With relational models you handle transactions in Django because you potentially update multiple tables in one request. With django-roa, I suppose, you'd have to structure the data accordingly. For example with xml or json fields. And then it'd be up to the server (the resource provider) to take care of the transaction. Is that the idea?

  2. David Larlet repo owner

    Yes, exactly. Or create a Transaction resource but that's more tricky. There are a lot of articles on this topic.

    Do not hesitate to propose a generic solution to django-roa if you find something interesting.

  3. Log in to comment