Adding a RAD Server Module to a RAD Server Package

From RAD Studio
Jump to: navigation, search

Go Up to Developing a RAD Server Package


You can add new RAD Server resources to an existing RAD Server Package by adding additional RAD Server modules. Add new resources to your RAD Server Engine (EMS Server) to extend its functionality.

To add a RAD Server to an existing RAD Server Package:

  1. Open the RAD Server Module Wizard:
    • For Delphi: File > New > Other > Delphi projects > RAD Server > RAD Server Module
    • For C++: File > New > Other > C++Builder projects > RAD Server > RAD Server Module
  2. The RAD Server Module Wizard opens. Enter the new resource information:
    • Name. The name of the created resource.
    • File type. Select if you want to implement the resource using a designer and components (Data Module) or using code (Unit).
    RSModuleWizard.png
  3. On the Endpoints wizard you can select:
    RAD Server Package Wizard.png
    • Database EndPoints, click Next and a new wizard displays, you can select a FireDAC connection to display the available tables, by selecting a table you expose the access to it.
    Attention: If you use InterBase, install the extensions for the table filter available in the InterBase UDF library.
    Note: For each selected table, the wizard will add an FDQuery and an EMSDataSetResource component to the data module, visible at the design time with the components generated with the selection made above.
    DatabaseEndpoints.png
    • API Documentation to generate the necesary code to support Swagger API Documentation.
    Note: You get the Swagger documentation with no problem even if you have methods without attributes.
  4. Click the Finish button.
  5. Implement the resource endpoint methods.

See Also