Configuring the service to get a specific movie - Cloud

Talend Cloud API Services Platform Getting Started Guide

Version
Cloud
Language
English
Operating system
API Services Platform
Product
Talend Cloud
Module
Talend API Designer
Talend API Tester
Talend Management Console
Talend Studio
Content
Design and Development
Last publication date
2024-03-05

Configure the tXMLMap component for your GET request.

Procedure

  1. Double-click the tXMLMap_2 component to open the Map Editor.
  2. In the main :getMovieById table on the left, select the movieId column and drag and drop it in the Exp.key field to the left of movieId in the lookup table below.
    Warning: Make sure that the type of the movieId element is the same in the main and lookup tables. In this example, the type should be Integer. You can see the types for the selected table in the Schema editor tab at the bottom of the window.
  3. In the movie table on the right, right-click the root node and click Rename, enter movies as the new name and click OK.
  4. Right-click the movies node and click Create Sub-Element, then name the element movie and click OK.
  5. Select all the columns in the lookup table, then drag and drop them on the movie node.
  6. In the dialog box that appears, select Create as sub-element of target node and click OK.
  7. Right-click the movieId node and click As loop element, then click OK.
    Mapping in the Map Editor.
  8. Click OK to close the editor.
  9. Save your service.

Results

The second part of your data service is configured. You can run it to check the results of the GET operation.