swagger-ui
swagger-ui copied to clipboard
Two url parameters are not separated with &
Two url parameters are not separated with &
"/security/authUser": {
"get": {
"summary": "User auth",
"description": "Auth API",
"parameters": [
{
"name": "username",
"in": "query",
"description": "Username.",
"required": true,
"type": "string"
},
{
"name": "password",
"in": "query",
"description": "Password.",
"required": true,
"type": "string"
}
],
"tags": [
"Security"
],
"responses": {
"200": {
"description": "String representing auth satus",
"schema": {
"type": "string"
}
}
}
}
}
produces : http://localhost:8080/restapi/security/authUser?username=1password=2
when i write 1 and 2 as values and press "Try it out!"
I see this too. I think when building up the query parameter you could add in the delimiter:
else if (param.in === 'query') {
- if(querystring === '')
- querystring += '?';
+ if(querystring === ''){
+ querystring += '?';
+ } else {
+ querystring += '&';
+ }
thanks, pushed