Spring Rest docs ignore request body fields in documentation

537 Views Asked by At

I have the followin situation:

My Endpoint consumes an Object A that results in the backend depending on the requesting user to Object B or C. So the problem is, that Object A has all the fields of Object B and C. As a result I want to ignore request fields for a specific user group because they are always null and are irgnored in the backend.

Is there a way to set a .ignore option for request fields so I can provide the example JSON request body when using the http-request.snippet?

0

There are 0 best solutions below