Solved

Embarcadero WebBroker REST server endpoint parameters

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
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 learn how to clear a vector as well as how to detect empty vectors in C++.

943 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

1 Experts available now in Live!

Get 1:1 Help Now