5 REST API Selection

In this step, the user has to select the REST APIs to enable the functioning of the elements on the screen. The dropdown will contain all the REST APIs mentioned in the swagger document hosted on the URL which user had specified in the landing page.



In case, the user needs REST APIs whose documentation is hosted on other URLs apart from the ones the user had mentioned earlier, the user can add them by selecting manage Swagger URLs link.

On clicking the link, a panel will open on the left side. By default, it will contain the URL and the version, the user had specified during installation. User can change this URL or can add multiple URLs by clicking on ‘Add URL’ text link, depending upon the requirements.



Once the user has entered the URLs he can save the details by clicking the save button. After the dialog box closes, all the REST APIs will be consolidated and are available in the dropdown

User can select multiple RESTs as per requirement. All the selected RESTs are shown in the list view form.



User can configure the REST properties by clicking on the edit icon.



On clicking on the edit button, a panel will open on right, which has three configuration options.

Parameters are the options that the user can pass with the endpoint (such as specifying the response format or the amount returned) to influence the response.
  • Required Parameters:

    They are also known as path parameters. These parameters are part of the REST URL written within curly braces. E.g. /accessPoints/ {accessPointId}. Here accessPointId is the required parameter.

  • Optional Parameters:

    They are also known as query parameters. These parameters are part of the REST URL written at the end of the URL followed by? Symbol. E.g. /accessPoints? NoOfpoints=3. Here NoOfPoints is an optional parameter.

The value of these parameters can be set by two ways.
  1. Current component sets the value.
  2. Value is passed to the current component from the previous component.
    In case the parameter values are being passed from the previous component, the variable name has to be mentioned in this pane

    The current parameter value is set in later steps, refer Value attribute.