23
Views
5
Comments
How to Customize API Response?

I have tried to get API responses as I want but it shows a list of text, how can I customize the API response?

2024-03-22 09-17-23
Chandra Vikas Sharma

Hi ,

can you share the response format what you are greeting and what format you except.

thanks

cv

2024-09-16 06-49-07
Dhanalashmi Murugan

This is the response I got ,as a list of  text..but I need a key point only because user's are not having that much time to read all of this text .

 

2020-07-21 19-28-50
Rajat Agrawal
Champion


Hi @Dhanalashmi Murugan,

You can customize your response by using OnAfterResponse of API.

 What you need to customize you can do it here.


or we have one reference document link that also I am attaching you can refer that also:

https://success.outsystems.com/documentation/10/extensibility_and_integration/rest/expose_rest_apis/customize_rest_api_responses/ 


Hope this helps you!!


Regards,

Rajat

2024-09-16 06-49-07
Dhanalashmi Murugan

Hi @Rajat Agrawal , Thanks for your response.

2020-09-15 13-07-23
Kilian Hekhuis
 
MVP

Hi Dhanalashmi,

Why do you need to change the actual API response? You write "I need a key point only because user's are not having that much time to read all of this text", but if it's about presenting the information to users, it's just wrapping the API call in a public action and change the data in that action? You don't need to do anything with the API response before it reaches the calling action?

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