Roger Alcindor
asked on
Embarcadero WebBroker REST server endpoint parameters
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 :
http://localhost:8080/Action1 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 ion1Action (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.
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 :
http://localhost:8080/Action1 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
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.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Hi, it's was a long time ago but can you give me the answer if you remember it please ?
ASKER