Have an amazing solution built in RAD Studio? Let us know. Looking for discounts? Visit our Special Offers page!

How to make RESTful WebBroker using C++Builder

Author: Andrea L59044


I used FireDAC because I wanted to make a DB connection to MySQL DB.

Resource and suffix can be obtained with Request-´╝×PathInfo.

So decompose PathInfo into std::vector´╝ťUnicodeString´╝× and put it in.


We made each resource as a member function.


And I set it on the map.


Call from the main action function.

Each resource implementation part.

It is the code below.


Accessing the above URL goes through the function of WebModule1WebActionResource1.

This function connects to DB using FireDAC.



The above URL goes through the function of WebModule1WebActionResource2.

This is just a function to echo the item.

Two resource functions are returned by JSON.





Reduce development time and get to market faster with RAD Studio, Delphi, or C++Builder.
Design. Code. Compile. Deploy.
Start Free Trial   Upgrade Today

   Free Delphi Community Edition   Free C++Builder Community Edition

Get some love as Delphi turns 26
Related posts

Robust DataSet To JSON And JSON To DataSet API For Delphi


PAT: An Incredible Process Analysis Tool Made In Delphi

CodeDatabaseDelphiRAD Studio

Flexible InterBase AdminUtility Sample Tours You Through Powerful InterBase Features

CodeDelphiRAD Studio

Learn How To Migrate dbExpress To FireDAC With The reFind Tool In This Delphi Sample

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.