How to add a URL parameter to an API using the REST datasource?

How to add a URL parameter to an API using the REST datasource?

book

Article ID: KB0071284

calendar_today

Updated On:

Products Versions
TIBCO Data Virtualization All Supported Versions

Description

When creating an operation using the REST datasource(take the example of 'getItem' from the image below), if the URL is parsed the results will be fetched directly as there isn't a need to provide any URL(input) parameter.

Screenshot for reference:
User-added image

Issue/Introduction

This article will provide the steps to add the URL parameter to an API when the REST datasource is used in TIBCO Data Virtualization.

Resolution

Now, what if the user wants to enter an input so that the entire data is not returned and only the specific information is fetched based on the requirements?  In that case, the Operation URL can be provided in the following format: ' ability/{ability}/'.

Now, when the Operation URL is parsed then the user will now see a URL Parameter in the window below which actually will be the input that needs to be provided when the API is executed.


Refer to the image below:
User-added image