ntamvl/rails_5_api_tutorial

No operations defined in spec! with swagger

bindiry opened this issue · 1 comments

I generate API documentation use Swagger UI.

qq20170324-174031

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
}

I place /public/api_html in my project fixed the issue.

thank you.