Multiple renderer for some endpoints #1556
Unanswered
RemiDesgrange
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
Is there a way to have multiple renderers based on the

Acceptheaders, and all of this in the swagger doc ?given this example
If the client provides a
Accept: application/jsonit should return json, but if the client sendsAccept: text/plainit should send infos in plain text format (how do I specify the renderer for this ?)I can see in the doc that I can specify a custom renderer, but not a list of renderers.
Thx !
Beta Was this translation helpful? Give feedback.
All reactions