1
我正在爲我的API創建招搖,但對於具有相同方法的相同端點,我遇到了問題。這裏有兩個相同的端點(/令牌),它們具有相同的httpMethod POST
,並且兩者在主體中具有不同的參數。在用戶界面上沒有顯示第一個端點。同一端點上的相同HTTP方法未顯示
這是我的昂首闊步代碼:
"/token": {
"post": {
"tags": [
"Authorisation"
],
"summary": "Get Token by Username and Password",
"operationId": "6bfe7ad3-64e8-4550-8fc9-c93ff30f4f0e",
"consumes": [
"application/x-www-form-urlencoded"
],
"parameters": [
],
"responses": {
"200": {
"schema": {
"$ref": "#/definitions/getTokenResponse"
}
}
},
"security": [
{
"basic_auth": []
}
]
},
"post": {
"tags": [
"Authorisation"
],
"summary": "Refresh Acces Token",
"operationId": "6bfe7ad3-64e8-4550-8fc9-c93ff30f4f0e",
"consumes": [
"application/x-www-form-urlencoded"
],
"parameters": [
],
"responses": {
"200": {
"schema": {
"$ref": "#/definitions/getTokenResponse"
}
}
},
"security": [
{
"basic_auth": []
}
]
}
}