Skip to main content Skip to complementary content

Creating a GET operation to fetch a list of loan applications

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.

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – let us know how we can improve!