Closed elonmallin closed 4 years ago
This is the requestBody of that method in the apoen api json.
"requestBody": {
"content": {
"application/x-www-form-urlencoded": {
"schema": {
"required": [
"grant_type"
],
"type": "object",
"properties": {
"grant_type": {
"type": "string"
},
"scope": {
"type": "string"
},
"client_id": {
"type": "string"
},
"client_secret": {
"type": "string"
}
}
},
"encoding": {
"grant_type": {
"style": "form"
},
"scope": {
"style": "form"
},
"client_id": {
"style": "form"
},
"client_secret": {
"style": "form"
}
}
}
}
},
It's generated from Swashbuckle.Swaggergen for C#.
application/x-www-form-urlencoded
is not currently implemented.
Will be for version 0.8.0.
Okey, nice =)
I have an endpoint that should use
application/x-www-form-urlencoded
but the data is sent as a json string with the content type beingapplication/x-www-form-urlencoded
.I got this function generated:
But the problem seems to be in:
rb.body
which has this content:Probably there needs to be a check for
application/x-www-form-urlencoded
also?