In SAO architecture should single API do everything or API should be spilt
as multiple action
We have an app which is exposing api(RESTful) to UI for purchasing a item.
I have a question regardinng API design. Lets say the following action
should be taken in order
Item to be chosen for purchase
Next give the address to be delivered to
My question is should we design a single api which gets both data perform
both? Or should we desgin two api calls one that creates a purchase record
and second that update the address to be delivered to?
No comments:
Post a Comment