2
Introducing
I need to access a web service in PHP via mobile application.
I have seen several videos and read many tutorials about Delphi’s REST Client.
I even managed 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 web service listing or search, never do something like "Create a record and then list" or "Search a record and update it".
Doubt
I would like to know what would be the best practice to perform a "CRUD" for example...
I would only use a Restclient/Restrequest/Restresponse/ETC. And from that, carry out operations by code, changing the properties of Restrequest/ETC according to need/screen, and do all treatments at hand.
OR
I would have several Restrequests/ETC, for every operation I might need (and who knows how to put them inside a DM).
Because with this, I would be able to do the Livebindings and do the data processing without much suffering.
OR
Whatever the way it is done, both forms would be correct and could be merged.
Ex: Create a Trestrequest to list "products", another to list "customers" and another to perform Create/Update/Delete operations
Daniel, here we do not use "solved" in the title. The correct is to mark your answer as "correct".
– brasofilo
That’s right, thank you for the correction. Tomorrow I will mark the answer as "correct".
– Daniel Kuroski