Translate a request path different from an API path

Hello,
I would like to use Kong Gateway to access an internal API accessible through a url of the type http://172.1.1.1/toto/titi
I would like the public url of this api to be accessible through the url: http://api.application/lolo/lili

I have created the service in Kong and the attached route, but I don’t know how to map the path of the request (/ lolo/lili) which is different from the path of the internal API (/ toto/titi).

With an identical path between the request and the API path, it works well but when the paths are different, I don’t know how to do it …

Thanks for your help.
Eric

Create a route with /lolo/lili. And then in the service of this corresponding route, set the path attribute to /toto/titi.

Thank you for your answer.
However, I would like to keep “/” as path for the service because I have multiple routes for this service.

This is one area where Kong unfortunately struggles at the moment.

Our docs are outdated in this specific area as well.
Can you follow along this thread: Plans to expose config.rewrite.uri in request-transformer plugin?

I think that’s what you need.

Thank you for these informations