-
Notifications
You must be signed in to change notification settings - Fork 55
Closed
Labels
Description
The global and per request consumes and produces properties are ignored.
Dapperdox does not provide a way to select the mime type of data being send but always assumes data send is "application/json".
It also does not provide a way to select the mime type of the data you want to receive. It seems to not touch the Accept header which in my case means it is set to "text/plain, */*; q=0.01" causing the server to return XML instead of JSON.
I would expect dropdowns listing the mimetypes listed in the consumes/produces to select what data is send/expected.
In swaggerui a dropdown is shown for selecting what the mime type is of the body send or the mime type of the expected result:
Minimal example:
{
"x-navigateMethodsByName": true,
"info": {
"title": "minimal"
},
"swagger": "2.0",
"host": "localhost:3123",
"paths": {
"/account": {
"post": {
"parameters": [ { "in": "body", "schema": { "type": "string", "title": "something" } } ],
"summary": "post",
"consumes": [
"application/json",
"application/json-patch+json"
],
"produces": [
"application/json",
"text/xml"
],
"responses": {
"200": {
"description": "Success",
"schema": {
"title": "response",
"type": "string"
}
}
}
}
}
}
}
Reactions are currently unavailable

