Sha256: 143fa77fe2c05da4750462cf270a2e94564096c8dc1a9956dacdd0893cd5e450

Contents?: true

Size: 343 Bytes

Versions: 4

Compression:

Stored size: 343 Bytes

Contents

module API
  class Base < Grape::API
<% unless app_prefix.empty? -%>
    prefix :<%= app_prefix %>
<% end -%>

    # mount API<VERSION>::Base

<% if app_swagger? -%>
    add_swagger_documentation \
      info: {
        title: '<%= app_name %>',
        description: '<%= app_name %> - 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/new/api/base.rb.tt
grapethor-0.2.2 lib/grapethor/templates/new/api/base.rb.tt
grapethor-0.2.1 lib/grapethor/templates/new/api/base.rb.tt
grapethor-0.2.0 lib/grapethor/templates/new/api/base.rb.tt