There would be different teams that would be publishing their APIs in our API Management instance. We need to set sunset header in response. I understand we can do so in the Outbound policies of each Product/API/Operation(as per requirement the scope will be different) using the return response policy: https://learn.microsoft.com/en-us/azure/api-management/api-management-advanced-policies#ReturnResponse.
We would need to do the above manually. Is there some way we make it configurable such that different teams wanting to publish can select the scope i.e. the Product/API/Operation and set the sunset header as per the requirements so that manually going and putting in the policy in the azure api management is not required.
Do we need to create a custom task in which different teams publishing apis can se the scope(Product/API/Operation) and apply the policy that set the sunset header in the return response policy : https://learn.microsoft.com/en-us/azure/api-management/api-management-advanced-policies#ReturnResponse. If we go by the custom task , do we need to create separate tasks for Product, API and Operation level? What about existing APIs that already have a policy applied, in that case how do we handle.?
Any inputs in this direction is much appreciated.
Thanks,
SuvraJyoti