Solved

Embarcadero WebBroker REST server endpoint parameters

Posted on 2016-11-21
2
18 Views
Last Modified: 2016-11-21
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::WebModule1Action1Action(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.
0
Comment
Question by:alcindor
  • 2
2 Comments
 
LVL 2

Accepted Solution

by:
alcindor earned 0 total points
ID: 41896813
I have found the answer
0
 
LVL 2

Author Closing Comment

by:alcindor
ID: 41896816
Sorry to have wasted anyone's time.
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

This is a PowerShell web interface I use to manage some task as a network administrator. Clicking an action button on the left frame will display a form in the middle frame to input some data in textboxes, process this data in PowerShell and display…
Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now