I am trying to get to grips with a REST server stand alone application using Embarcadero C++ Builder XE10.1 Berlin Enterprise edition.
I have used the WebBroker wizard to create an application which runs with the default Webmodule handler.
I have added a new handler called Action1 and placed some trivial code in the handler to display a new message
when the server is tested with a browser as follows http://localhost:8080/Action1
and this works as expected.
What I want to do is have the server return data according to a parameter value appended to the REST endpoint such as :
1234 ( I don't know the syntax to use to provide a parameter)
Where 1234 would be a record id in a database table.
The event handler in the WebModule is as follows:
void __fastcall TWebModule1::WebModule1Act
(TObject *Sender, TWebRequest *Request,
TWebResponse *Response, bool &Handled)
I need to know how to get the parameters into the TWebRequest parameter from the web browser that's being used to test the REST server.
I am a novice as far as html is concerned.