Skip to content

Support for accept_version_header? #573

Open
@giorgian

Description

@giorgian

I have:

class MyAPI < Grape::API
  version :v1, using: :accept_version_header, cascade: true
  ...

  add_swagger_documentation
end

When I go to http://localhost:3000/api/swagger, it wants to fetch its info from http://localhost:3000/api/v1/swagger_doc, which doesn't exist.

Is there a way to tell grape-swagger that I'm using accept_version_header?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions