ruby-grape / grape-swagger

Add OAPI/swagger v2.0 compliant documentation to your grape API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

can not create documentation without namespace

vladimirtcats opened this issue · comments

I am trying to create documentation for this

    desc 'Returns your public timeline.' do
    summary 'summary'
    detail 'more details'
    named 'My named route'
    headers XAuthToken: {
              description: 'Validates your identity',
              required: true
            },
            XOptionalHeader: {
              description: 'Not really needed',
              required: false
            }
    hidden false
    deprecated false
    is_array true
    nickname 'nickname'
    produces ['application/json']
    consumes ['application/json']
    tags ['tag1', 'tag2']
  end
  
  post '/:name.json' do

  end

As I understand It does not work with routes like /:test and only works with namespaces or resources