Closed Lack30 closed 6 years ago
How do you want format?
I want string type not file string I want
"parameters": [
{
"type": "string",
"description": "用户邮箱
"name": "email",
"in": "formData",
"required": true
},
{
"type": "string",
"description": "用户名",
"name": "username",
"in": "formData",
"required": true
},
{
"type": "string",
"description": "用户密码
"name": "password",
"in": "formData",
"required": true
}
],
not
"parameters": [
{
"type": "file",
"description": "用户邮箱
"name": "email",
"in": "formData",
"required": true
},
{
"type": "file",
"description": "用户名",
"name": "username",
"in": "formData",
"required": true
},
{
"type": "file",
"description": "用户密码
"name": "password",
"in": "formData",
"required": true
}
],
OK. I'll check.
Why do you use multipart/form-data? I think not necessary.
Do you want to use application/x-www-form-urlencoded?
Yes! Can you help me?
Can you give me an example?
Then use the command
swag init
.But...