這裏我swagger.yaml:招搖:基本身份驗證工作不
...
paths:
/api/geocode:
get:
....
responses:
200:
description: "OK"
schema:
$ref: "#/definitions/ResourcesOfGeocodingInformation"
204:
description: "Pas de résultat"
schema:
$ref: "#/definitions/ResourcesOfGeocodingInformation"
401:
description: "Unauthorized"
403:
description: "Forbidden"
404:
description: "Not Found"
500:
description: "Erreur technique"
504:
description: "Via Michelin ne répond pas "
security:
- basicAuth: []
x-swagger-router-controller: "Geocode"
securityDefinitions:
basicAuth:
type: "basic"
definitions:
...
但是當我嘗試請求此WS無需驗證這是工作,給我一個200點的狀態。 有什麼問題?
難道你的後臺實際執行基本身份驗證? – Helen