Sha256: 1a63e295d21990629298bf91a810e838ed72ea36c420bd0dab54a2815421e693

Contents?: true

Size: 459 Bytes

Versions: 4

Compression:

Stored size: 459 Bytes

Contents

module API<%= api_version %>
  class Base < Grape::API
    format :json
    version '<%= api_version %>', using: :path

    # mount API<%= api_version %>::<ResourceOrEndpointClass>

<% if app_swagger? -%>
    add_swagger_documentation \
      base_path: '/<%= app_prefix %>',
      info: {
        title: '<%= app_name %> <%= api_version %>',
        description: '<%= app_name %> <%= api_version %> - generated with Grapethor'
      }
<% end -%>

  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
grapethor-0.2.3 lib/grapethor/templates/api/api/%api_version%/base.rb.tt
grapethor-0.2.2 lib/grapethor/templates/api/api/%api_version%/base.rb.tt
grapethor-0.2.1 lib/grapethor/templates/api/api/%api_version%/base.rb.tt
grapethor-0.2.0 lib/grapethor/templates/api/api/%api_version%/base.rb.tt