jeudi 25 août 2016

Remove port number from URL web API

I've created a web API and hosted it on IIS 7.0, but the default port hosts another web application. Therefore, I specified another port for the WEB API. The issue is how the web API is accessed as it includes the port number along with the URL. I want to remove this port dependency or at least hide it.

So instead of http://website:26018/api/products?brand_id=2,3

I want it to be accessible from a URL like this:

http://website/api/products?brand_id=2,3

How can I achieve this?




Aucun commentaire:

Enregistrer un commentaire