Sha256: 8c16d8651d1b0582d553e3b2702bb9a28f4463a3a486e774f559ebdaa36138f3

Contents?: true

Size: 214 Bytes

Versions: 8

Compression:

Stored size: 214 Bytes

Contents

class HelloAPI < Grape::API
  helpers G5AuthenticatableApi::Helpers::Grape

  before { authenticate_user! }

  get :hello do
    { hello: 'get world' }
  end

  post :hello do
    { hello: 'post world' }
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
g5_authenticatable_api-1.0.0 spec/dummy/app/api/hello_api.rb
g5_authenticatable_api-1.0.0.pre.1 spec/dummy/app/api/hello_api.rb
g5_authenticatable_api-0.4.1 spec/dummy/app/api/hello_api.rb
g5_authenticatable_api-0.4.0 spec/dummy/app/api/hello_api.rb
g5_authenticatable_api-0.3.2 spec/dummy/app/api/hello_api.rb
g5_authenticatable_api-0.3.1 spec/dummy/app/api/hello_api.rb
g5_authenticatable_api-0.3.0 spec/dummy/app/api/hello_api.rb
g5_authenticatable_api-0.2.0 spec/dummy/app/api/hello_api.rb