Creating a GET operation to fetch a list of loan applications - Cloud

Talend Cloud API Designer Getting Started Guide

Version
Cloud
Language
English
Product
Talend Cloud
Module
Talend API Designer
Content
Design and Development > Designing APIs
Last publication date
2024-01-22

Create an operation that returns an array of loan applications.

Procedure

  1. Click the + button in the left panel and click Operation.
  2. Enter the following information in the GENERAL section:
    Field Value
    Name Get loan applications
    Method GET
    Path /applications
    Description Get a list of all loan applications accessible to you.
  3. Scroll down to the RESPONSES section and click Add.
  4. Select 200 - OK in the Status code field.
  5. Click Add next to BODY to specify the content of the response to send.
  6. Under TYPE, click object to show the data types available and select array, then click string next to of and select Application.
    This indicates that the response body will contain an array of the Application data type previously created.
    Definition of the 200 status response.
  7. Click Use a component next to RESPONSES.
  8. Select 4XX - Default in the Status code field and select Error in the Name field, then click OK.
  9. Click Save.