Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Select option in Rest API

jagadeesh1024
Explorer
442
  • SAP Managed Tags:

How to pass range values in the API URL and how to use it in the class level.

1 ACCEPTED SOLUTION

Harish_Vatsa
Active Contributor
393
  • SAP Managed Tags:

Hello jagadeesh1024,

The easiest way is to create two parameters for the start range and the end range and pass these range variables into the API URL.

e.g: If you need to send date range in the API parameters, then you can use two parameters (Start date and End date)

To use it at the class level, you need to declare two instance variables to store the values of the range parameters and the same can be used to filter the data based on the values received.

--

Regards,

H.V.

2 REPLIES 2

Harish_Vatsa
Active Contributor
394
  • SAP Managed Tags:

Hello jagadeesh1024,

The easiest way is to create two parameters for the start range and the end range and pass these range variables into the API URL.

e.g: If you need to send date range in the API parameters, then you can use two parameters (Start date and End date)

To use it at the class level, you need to declare two instance variables to store the values of the range parameters and the same can be used to filter the data based on the values received.

--

Regards,

H.V.

393
  • SAP Managed Tags:

Thanks Harish.