Solved

Embarcadero WebBroker REST server endpoint parameters

Posted on 2016-11-21
2
115 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Webinar: Aligning, Automating, Winning

Join Dan Russo, Senior Manager of Operations Intelligence, for an in-depth discussion on how Dealertrack, leading provider of integrated digital solutions for the automotive industry, transformed their DevOps processes to increase collaboration and move with greater velocity.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
Find out what you should include to make the best professional email signature for your organization.
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

751 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