Skip to main content

Define the API Response

Define a GetProducts API Definition to set response to available products.

Navigate to the Logic module within your application and follow the steps as mentioned below:

  1. In the explorer panel, right click on API Definitions and select Create API Definition.
  2. In the property pane that appears, configure the following properties:
    • Name: Input a name for the API definition. (GetProducts)
    • Verb Type: GET
    • Produces: Json
    • URL: ads_dev (controller/GetProducts)
    • Description: None
    • Is Active: Yes
  3. Click Save to finish.

Configure Output Parameter

  1. Right click on Output Parameter as seen under the created API Definitions, and select Add.
  2. In the property pane that appears, configure the following properties:
    • Parameter Name: Input a name for the API definition. (GetProducts)
    • Is Array: Yes
    • Data Type: Product
    • Description: None
  3. Click Save to finish.

API definition configuration

Output parameter configuration