1)Download the extension2)For rest api consumption create an OnAfterResponse in the endpoint and call the extension function.
3) Make sure to pass the name of the object name and property name for which the response is dynamic in nature