Format response data for text/plain #25974
Jakub27blue
started this conversation in
General
Replies: 1 comment 4 replies
-
Hi my friend, try this method.
|
Beta Was this translation helpful? Give feedback.
4 replies
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.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello everyone,
I want to set the [Produces ("text/plain")] attribute for a method that returns an int value.
Unfortunately, the method returns a status code of 406.
Code:
Request:
without accept header
Response:
Error: response status is 406
In the documentation:
The documentation is not clear about this.
Do you know how to return an int value in text/plain format?
Beta Was this translation helpful? Give feedback.
All reactions