Routing Policy


I have an REST API to be exposed on gateway. It consists of 4 resources and each will support GET , POST and PUT methods.
I have used swagger first approach and created REST descriptors using swagger definition. I see there are 4 REST descriptors created , there by having a separate invocation path for each resource.

I want to create a Single API on for all resources on API gateway. if that’s possible , i am wondering which routing policy to use so that appropriate resource gets invoked. I was looking at content and context based routing policies will help in this case and if its right way to do it.

Appreciate if someone can throw light on it.