How to change API responseBody Message in WebFilter - Spring Flux

71 views Asked by At

Actual response:

"serviceMessage" :{ "code": 200 }

Expected response:

"message": { "code":200 }

The response Message has to be changed in WebFilter Implementation. Since this API is Spring-Flux implementation, Filter Interface cannot be used.

How do i change responseBody? I see the options to change header, statusCode.

0

There are 0 answers