Configuring the tRESTRequest component - 7.3

ESB REST

Version
7.3
Language
English
Product
Talend Big Data
Talend Big Data Platform
Talend Data Fabric
Talend Data Integration
Talend Data Management Platform
Talend Data Services Platform
Talend ESB
Talend MDM Platform
Talend Real-Time Big Data Platform
Module
Talend Studio
Content
Data Governance > Third-party systems > ESB components > ESB REST components
Data Quality and Preparation > Third-party systems > ESB components > ESB REST components
Design and Development > Third-party systems > ESB components > ESB REST components
Last publication date
2024-02-21

Procedure

  1. Drop the following components from the Palette onto the design workspace: a tRESTRequest, two tXMLMap and two tRESTResponse.
  2. Double-click tRESTRequest in the design workspace to display its Basic settings view.
  3. Fill the REST Endpoint field with the URI location where the REST-ful web service will be accessible for requests. For example, "http://192.168.0.235:8088/user".
    Note:

    If you want your service to be available on both HTTP and HTTPS, fill the field with a relative path. For example, if you type in "/test", your service will be available on both http://<DefaultHTTPEnpointAddress>/test and https://<DefaultHTTPSEnpointAddress>/test, provided that you have configured your Runtime container to support HTTPS. For more information, see the Talend ESB Container Administration Guide.

  4. Click the [+] button to add one line in the REST API Mapping table.
  5. Select the newly-added line and click the [...] button in the Output Flow column to add a schema for the output flow.
    In this scenario, the output flow will be named as GetOneUser.
    Then click the [+] button to add a new line id to the schema in the dialog box.
  6. Click OK to save the schema.
  7. Select GET from the list in the HTTP Verb column.
  8. Fill the field in the URI Pattern column with "/{id}/".
  9. In the same way, add another line in the REST API Mapping table and name this schema GetUserNumber. Add a line string of String type to the schema. Enter query in the Comment field to get the number parameter in the request.
    Select GET from the list in the HTTP Verb column. Fill the field in the URI Pattern column with "/number".