Solved

Embarcadero WebBroker REST server endpoint parameters

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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
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 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…

679 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