Solved

Embarcadero WebBroker REST server endpoint parameters

Posted on 2016-11-21
2
143 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Container Orchestration platforms empower organizations to scale their apps at an exceptional rate. This is the reason numerous innovation-driven companies are moving apps to an appropriated datacenter wide platform that empowers them to scale at a …
Finding original email is quite difficult due to their duplicates. From this article, you will come to know why multiple duplicates of same emails appear and how to delete duplicate emails from Outlook securely and instantly while vital emails remai…
In this tutorial viewers will learn how to embed Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

623 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