I'm just looking at some opinions about what is the best way to update many different types of resource types or if I Seeing the problem incorrectly
We are looking for a solution to change, the specialty of collection of various resource types
For example, we have accounts and deals, each of which owns and deals accounts Are connected to. Owners of some or all of the deals associated with the account owner may be the owner, but the owner of the transaction can be the owner who is not the account owner. We are trying to implement such functionality which will allow us to change the owner of an account and will also update the deal owner in a call by the account owner.
What's the best way to use this kind of functionality? REST
Many thanks
You can create a new virtual resource that is responsible for it
Resource: User, Account, Deal
An attribute in the account, Owner (user)
There are many deals in the account
A feature of the deal, owner (user)
User has many deals
Resource management
synchronous:
URL / account_ownership_update
- Post: Failed to send account and new user to failure:
URL / account_ownership_update
- Post: sending account
update and new user return ANK succeed / fail
- Obtain: Return Status of Update (Pending , Running, successful, failed)
Comments
Post a Comment