Creating a client app for RAD Server
Let’s now create a client application for the REST API we just built with RAD Server. We’ll do this by reusing the UI and some of the code from the previous versions:
- Create a new, blank multi-device project and save it as
ToDoListEMS
in theclient
folder. - Keep the default name of the main form. It does not matter because in a moment we are going to remove it from the project.
- Add to the project the
uToDoTypes
anduToDoUtils
units. - Add a new data module to the client project. Save it as
uDMToDoEMS
and change itsName
property toDMToDoEMS
. - Add
uToDoTypes
to itsuses
clause in theinterface
section and copy the fiveIToDoData
interface method declarations from theuToDoTypes
unit to the public section of the data module. The class should look like this:type TDMToDoEMS = class(TDataModule, IToDoData) private { Private declarations } public ...