In my organization, I have several asp.net web api projects.
I am ready to develop a web api that will act as a gateway and have a single entry point.
I tried handlers and filters, but routing does not allow me to do this.
Let me explain what I really want to do.
Let HumanResourceProject at: api.domain.com/api/hr Sample Controller be api / hr / LeaveRecord / GetByEmployee /
Let CRMProject at: api.domain.com/api/crm Sample Controller - api / crm / Clients / GetByRegion /
Let Gateway at: api.domain.com/api/gateway
I want my gateway to process requests, for example, 1. api.domain.com/api/gateway/ api / crm / Customers / GetByRegion /
or
api.domain.com/api/gateway/ api / hr / LeaveRecord / GetByEmployee /
Do some controls like ip / access / browser etc.
I want to call the correct api controller api / crm / Customers / GetByRegion /
- Returns the response of the called api controller.

c # asp.net-web-api
zapoo
source share