Sha256: f554a3950c11346570f8921960265520e02e54fe88c0a737b6656dd6d14abab0

Contents?: true

Size: 299 Bytes

Versions: 1

Compression:

Stored size: 299 Bytes

Contents

module <%= vendor.classify %>
  class <%= version.upcase %> < <%= vendor.classify %>::API
    version "<%= version %>", using: :path
    prefix :api

    get do
      { version: "<%= version %>" }
    end

    add_swagger_documentation hide_format: true, api_version: "api/<%= version %>"
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
grape-api-generator-0.1.0 lib/generators/grape/templates/api/version.rb