Ich habe eine grundlegende Auth-gesicherte API, aber nach dem Ausfüllen der Authentifizierungsdaten gilt es nicht für Anfrage Header. Ich sah "ERROR Server nicht gefunden oder ein Fehler ist aufgetreten" bei swagger Editor und "401 Unauthorized" auf Fiddler.Basic Auth-Header nicht gesendet (Swagger)
Benutzername und Pwd: OData und qtkr47PTM3pmzLyEHNrW4DXhhgyjMfM3CKUZfXdn0tk =
Hier ist meine Prahlerei json
{
"swagger": "2.0",
"info": {
"version": "1.0.0",
"title": "Basic Auth Example",
"description": "An example for how to use Basic Auth with Swagger.\nServer code is available [here](http://navm3.cloudapp.net:90/nav/odata). It's running on NAVM3.\n\n**You can use below User Name and Password for test.**\n* User Name: `ODATA`\n* Password: `qtkr47PTM3pmzLyEHNrW4DXhhgyjMfM3CKUZfXdn0tk=`\n"
},
"host": "navm3.cloudapp.net:90",
"basePath": "/nav/odata",
"schemes": [
"http"
],
"securityDefinitions": {
"basicAuth": {
"type": "basic",
"description": "HTTP Basic Authentication. Works over `HTTP` and `HTTPS`"
}
},
"paths": {
"/": {
"get": {
"security": [
{
"basicAuth": []
}
],
"responses": {
"200": {
"description": "Will send `Authenticated` if authentication is succesful, otherwise it will send `Unauthorized`"
}
}
}
}
}
}