I have manually deployed a WAR (on Tomcat) containing the implementation of a REST API which exposes a Swagger 2.0 end point. The REST API is developed using the Restlet framework in Java. The folder structure on the app host looks like the following:
/site/wwwroot/webapps/myapp.war
/site/wwwroot/apiapp.json
The content of apiapp.json
is:
{
"$schema": "http://json-schema.org/schemas/2014-11-01/apiapp.json#",
"id": "myapp.apiapp",
"namespace": "<myusername>.onmicrosoft.com",
"gateway": "2015-01-14",
"version": "1.0.0",
"title": "Title",
"summary": "",
"author": "Author",
"endpoints": {
"apiDefinition": "/myapp/api-docs",
"status": null
}
}
I am able to get the swagger json by navigating to https://<myapphost>.azurewebsites.net/myapp/api-docs
However when I attempt to view the API definition on Azure Portal I see a blank table and then get the following error:
The gateway did not receive a response from 'Microsoft.AppService' within the specified time period.