У меня есть следующая конфигурация для использования с Rest Docs:
webTestClient = buildWebClient().mutate()
.filter(documentationConfiguration(restDocumentation))
.baseUrl("https://api.my-domain.com/")
.build()
В моем случае я использую префикс пути к моему сервису — service/foo
, поскольку я использую вход k8s, а мой сервис обслуживается по смещению пути.
Есть ли способ вставить такой префикс без изменения производственного кода?
Связанный фрагмент документации: