答案 0 :(得分:0)
你没有多说你的api选择语言或者你是如何产生你的swagger.json ...
但是有可能,以下是一些实例:
http://swashbuckletest.azurewebsites.net/swagger/ui/index?filter=Company#/Company/Company_Post
最后一个的json代码如下所示:
"delete": {
"tags": [
"Dictionary"
],
"operationId": "Dictionary_DeleteEcho",
"consumes": [
"application/json",
"text/json",
"text/html"
],
"produces": [
"application/json",
"text/json",
"text/html"
],
"parameters": [
{
"name": "guids",
"in": "body",
"required": true,
"schema": {
"type": "array",
"items": {
"format": "uuid",
"type": "string",
"example": "00000000-0000-0000-0000-000000000000"
},
"example": [
"00000000-0000-0000-0000-000000000000",
"00000000-0000-0000-0000-000000000000"
]
}
}
],
...