Introduction
I need to access a web service in PHP via mobile application.
I've seen a lot of videos and read many tutorials about Delphi's REST Client.
I was even able to develop a prototype of my application.
Problem
But the problem is that in all the materials I've seen, they show examples with a single functionality. All example applications perform a listing or a search for a web service, they never do something like "Create a record and then list" or "Search for a record and update it".
Doubt
I would like to know what would be the best practice to do a "CRUD" for example ...
I would use only one RESTClient / RESTRequest / RESTResponse / ETC. And from there, perform the operations by code, changing the RESTRequest / ETC properties according to the need / screen, and do all the treatments at hand.
OU
I would have multiple RESTRequests / ETC, for every operation I might need (and who knows put them inside a DM).
Well, with this, I would be able to do the LiveBindings and do the data treatments without much suffering.
OU
Whatever the way it is done, both forms would be right and could be merged.
Ex: Create a TRESTRequest to list "products", another to list "clients" and another to perform Create / Update / Delete operations