Sha256: 36cbf5624d2299ff3f939db94d4318901e6385845c4fec22395eb594095e7a88

Contents?: true

Size: 366 Bytes

Versions: 1

Compression:

Stored size: 366 Bytes

Contents

# -*- encoding : utf-8 -*-
module REST
  class API < Grape::API

    begin

      version 'v1.0.0',
              using: :header,
              vendor: 'APP'

      default_format :txt
      format :json
      content_type :txt,  "application/text"
      content_type :json, "application/json"

    end

    mount_subclasses
    #console_write_out_routes

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
clone-1.0.0.beta2 samples/grape/init/lib/grape/mount/rest_api.rb