43
Views
5
Comments
Create a API Response for Dynamic URL
Question

Hello,

I am taking one URL from the form to use in the On Before Request > Custom URL Path, where I can pass it to the API.

I only want the ID and Name from the API response. How can I map required Response.


Expected : 


I received:

2023-04-07 07-55-02
Krushna Mantri

Hi Nihil,

Can you please share the API call action and what output structure you are getting

Regards,

Krushna

2022-12-05 07-28-20
Nihil Gujar

2024-12-02 12-15-17
Aravind EONE
2024-12-18 16-06-42
Junaid Syed

Hello Nihil,

Are you getting full response if you remove whatever logic you have in On Request? Would you mind adding a log in the API method itself to check if some valid response is getting generated at all?

Hope it helps!

Junaid

2022-12-05 07-28-20
Nihil Gujar

In my case, I have Two APIs, which is Expose with List "Students" and "employees,", Both having ID,Name, and Class ID.

I am using same ConsumeAPI for both; Students data will come, but employee null records will be Added   


I attached OML - Dynamic API Screen 

DynamicAPI.oml
Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.