Using the REST Client Library to Access REST-based Web Services
Using the REST Client Library to Access REST-based Web Services
Contents
1 Creating the Project
2 Adding the REST Components
3 Using the LiveBindings Designer
4 Preparing your Application for Run Time
4.1 Creating the Event Handler for the Execute Button
4.2 Running Your Application
5 See Also
This REST BaaS (Backend as a Service) client tutorial shows how to use the REST Client Library for accessing
REST-based web services (REST stands for Representational State Transfer). The REST library is available for
all platforms that are supported by Delphi. The REST Library framework focuses on JSON as the representation
format. XML is not explicitly supported.
For Delphi, choose File > New > Multi-Device Application - Delphi > Blank Application.
For C++Builder, choose File > New > Multi-Device Application - CBuilderUI > Blank Application.
1 of 5 12/27/2018, 10:24 AM
Tutorial: Using the REST Client Library to Access REST-based Web Ser... http://docwiki.embarcadero.com/RADStudio/Seattle/en/Tutorial:_Using_...
Note: This scenario illustrates how to get a response from the Songsterr Web service in the JSON
(http://www.json.org) format. The Songsterr Web service also supports the xml and plist formats. For more
information, see http://www.songsterr.com/a/wa/api.
2 of 5 12/27/2018, 10:24 AM
Tutorial: Using the REST Client Library to Access REST-based Web Ser... http://docwiki.embarcadero.com/RADStudio/Seattle/en/Tutorial:_Using_...
3 of 5 12/27/2018, 10:24 AM
Tutorial: Using the REST Client Library to Access REST-based Web Ser... http://docwiki.embarcadero.com/RADStudio/Seattle/en/Tutorial:_Using_...
Delphi:
Important: The TJSONValue class is declared in the System.JSON unit. Before compiling this
project, please add System.JSON to the uses clause of your unit.
C++Builder:
Important: The TJSONValue class is declared in the System.JSON library. Before compiling this
project, please add #include <System.JSON.hpp> to the project header file.
4 of 5 12/27/2018, 10:24 AM
Tutorial: Using the REST Client Library to Access REST-based Web Ser... http://docwiki.embarcadero.com/RADStudio/Seattle/en/Tutorial:_Using_...
See Also
REST Client Library
REST Debugger
REST.RESTDemo Sample
Bind to new control
LiveBindings Designer
5 of 5 12/27/2018, 10:24 AM