Type of the example value (typically the route's response DTO).
Attach an example value to the response body of a controller method.
Two forms are supported:
Response(value): registers value as the single
default example.Response(key, value): registers value under
examples[key]. May be applied multiple times to attach several
named examples.Both forms can coexist on the same method — the default example and
any number of named examples will all surface in the generated
Swagger document.
Type of the example value (typically the route's response DTO).
Attach an example value to the response body of a controller method.
Two forms are supported:
Response(value): registersvalueas the single defaultexample.Response(key, value): registersvalueunderexamples[key]. May be applied multiple times to attach several named examples.Both forms can coexist on the same method — the default
exampleand any number of namedexampleswill all surface in the generated Swagger document.