Open arcotek-ltd opened 6 years ago
I have cut down the definition to just:
{
"swagger" : "2.0",
"info" : {
"description" : "OpenAPI for Abbyy's OCR SDK",
"version" : "1.0.0",
"title" : "AbbyyOCR",
"contact" : {
"email" : "blah@blah.com"
}
},
"host" : "cloud.ocrsdk.com",
"schemes" : [ "https" ],
"basePath" : "/",
"securityDefinitions" : {
"basicAuth" : {
"type" : "basic"
}
},
"security" : [ {
"basicAuth" : [ ]
} ],
"paths" : {
"/getApplicationInfo" : {
"get" : {
"summary" : "Gets information about the account",
"description" : "This method allows you to receive information about the application type, its current balance and expiration date. You may find it helpful for keeping the usage records.",
"operationId": "GetApplicationInfo",
"responses" : {
"200" : {
"description" : "Successful method call."
},
"403" : {
"description" : "The call to this method is disabled in your application settings."
}
}
}
}
}
}
I have to provide the credentials every time I test it and it's still generating the TypeError: Failed to fetch
.
Thanks
Might be a CORS problem. Can you try to open in browser and see what error is shown in developer console.
In swagger hub, I do not get the error, however in your preview pane I do:![Error](http://blog.thingsgeeky.co.uk/wp-content/uploads/2018/02/swagger-TypeError.png)
Is it to do with the XML?
The definition:
Thanks