Writing modules to extend your server
Let's dive right into writing our first extension using a very simple example. All extensions we build will be Delphi packages that contain a RAD Server resource. A RAD Server resource is an extension of the functionality in RAD Server that groups API endpoints registered in RAD Server.
Using the wizard to create our first resource package
The steps to building a RAD Server resource are simple:
- Select File | New | Other... from the Delphi menu.
- Select RAD Server Package from the RAD Server section.
- Select Create package with resource on the first page of the Package Wizard:
- On the next page, set the resource name to something simple such as
Test
and select Unit for File type: - From the list of Sample EndPoints, select only Get and GetItem (these differ only in the number of records...