ı am coding a microservice architectural with gateway in .NET6 web api.
My gateway run on 5000 port on local,
a microservice run on 5001 port on local,
other microservice run on 5002 port on local
i want to make a pagging in microservices and i return response with pagging links like next,previous...
When I make a request to microservices on the gateway, the response I get is as follows
"links": {
"_previous": "https://localhost:5001/api/customers/5/5?page=4&size=5",
"_next": "https://localhost:5001/api/customers/5/5?page=6&size=5",
"_first": "https://localhost:5001/api/customers/5/5?page=1&size=5",
"_last": "https://localhost:5001/api/customers/5/5?page=1207&size=5"
},
but I want the links to come on the host(localhost:5000) of the gateway like the example below
"_previous": "https://localhost:5000/api/customers/5/5?page=4&size=5"
I looked at sample questions, I did research on the internet, but somehow I could not get a gateway host on microservice. what should i do to ge the host of the gateway at microservices
ı use ocelot for gateway