No operations defined in spec! with swagger
bindiry opened this issue · 1 comments
bindiry commented
I generate API documentation use Swagger UI.
there is "No operations defined in spec!" in page.
I got error message when I clicked the error button.
{"schemaValidationMessages":[{"level":"error","message":"Can't read from file /manage_api_docs/api-docs.json"}]}
api-docs.json:
{
"apiVersion": "1.0",
"swaggerVersion": "1.2",
"basePath": "http://localhost:3001",
"apis": [
{
"path": "/manage_api_docs/api/manage/v1/sessions.{format}",
"description": "sessions"
}
],
"authorizations": null
}
bindiry commented
I place /public/api_html
in my project fixed the issue.
thank you.