When developing a web service that will allow the service consumer to store and retrieve a complex data type (say, Foo), should the service call the Create (Foo) service and update (Foo) service, or should the service be just called the Save (Foo) service? If Save (Foo) is better, should the user predict whether the system will create or update (based on the contents of Foo), or should the system simply create or update based on whether Foo exists or not?
Suppose we want a simple interface and don’t want to confuse the consumer with several ways of doing something, but we also want unforeseen results.
I see the pros and cons of each, but before I bias my answer, what do you think?
Finally, are there any articles on this?
(search engine help: create versus save, update or save, create / update compared to save)
source
share