fix page param and use param in swagger for #1624 (#1628)

fix page param and use param in swagger for #1624
This commit is contained in:
Woong 2022-05-19 07:30:58 +08:00 коммит произвёл GitHub
Родитель bf88a3b885
Коммит 2304b5df24
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 17 добавлений и 37 удалений

Просмотреть файл

@ -56,7 +56,7 @@
}
},
"parameters": [{
"name": "Search",
"name": "search",
"in": "query",
"required": false,
"type": "string",
@ -64,13 +64,7 @@
"x-ms-summary": "Search string",
"description": "Search species by name"
}, {
"name": "Page",
"in": "query",
"required": false,
"type": "integer",
"format": "int32",
"description": "Page number",
"x-ms-summary": "Page number"
"$ref": "#/parameters/Page"
}
],
"summary": "Get All Species"
@ -100,13 +94,7 @@
"x-ms-summary": "Search string",
"description": "Search sharships by name"
}, {
"name": "Page",
"in": "query",
"required": false,
"type": "integer",
"format": "int32",
"description": "Page number",
"x-ms-summary": "Page number"
"$ref": "#/parameters/Page"
}
],
"summary": "Get all starships"
@ -158,13 +146,7 @@
"x-ms-summary": "Search string",
"description": "Search films by name"
}, {
"name": "Page",
"in": "query",
"required": false,
"type": "integer",
"format": "int32",
"description": "Page number",
"x-ms-summary": "Page number"
"$ref": "#/parameters/Page"
}
],
"summary": "Get all films"
@ -239,13 +221,7 @@
"x-ms-summary": "Search string",
"description": "Search planets by name"
}, {
"name": "Page",
"in": "query",
"required": false,
"type": "integer",
"format": "int32",
"description": "Page number",
"x-ms-summary": "Page number"
"$ref": "#/parameters/Page"
}
]
}
@ -269,13 +245,7 @@
"x-ms-summary": "Search string",
"description": "Search people by name"
}, {
"name": "Page",
"in": "query",
"required": false,
"type": "integer",
"format": "int32",
"description": "Page number",
"x-ms-summary": "Page number"
"$ref": "#/parameters/Page"
}
],
"summary": "Get People",
@ -852,7 +822,17 @@
"propertyValue": "Lifestyle and Entertainment"
}
],
"parameters": {},
"parameters": {
"Page": {
"name": "page",
"in": "query",
"required": false,
"type": "integer",
"format": "int32",
"description": "Page number",
"x-ms-summary": "Page number"
}
},
"responses": {},
"securityDefinitions": {},
"security": [],