'How to expose different path of an operation?

I have a spring boot application which is located behind a reverse proxy. This proxy rewrites paths. In my application I have a REST controller and document it with springdoc

@Operation(summary = "Expose some data", ...)
@RequestMapping(path = "/a", produces = MediaType.APPLICATION_JSON_VALUE, method = RequestMethod.GET)
public MyDto getA() {

The springdoc / OpenAPI generation leads to an operation reachable at /a However the reverse proxy makes it available at /b

How can I tell springdoc that it should not use the introspected path from the @RequestMapping annotation but instead pass a path to any springdoc annotation?

Thanks.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source