spring-projects / spring-restdocs

Test-driven documentation for RESTful services
https://spring.io/projects/spring-restdocs
Apache License 2.0
1.16k stars 734 forks source link

How to hide Request Body and curl particular fields like "Token"? while generating spring rest docs through rest assured approach #908

Closed nikhilp14 closed 10 months ago

nikhilp14 commented 10 months ago

Hi wilkinsona sir, Greetings!

Hope you are doing well.

How to hide Request Body and curl particular fields like "Token". I don't want to share this token information to my clients. So is there any way to hide this particular field(TOKEN)? Pls pls help me on this.

Best Regards, Nikkhil Screenshot (1215)

wilkinsona commented 10 months ago

https://docs.spring.io/spring-restdocs/docs/current/reference/htmlsingle/#customizing-requests-and-responses-preprocessors-modify-headers

If you have any further questions then, as requested several times before, please follow up on Stack Overflow. We prefer to use GitHub issues only for bugs and enhancements.