Sha256: 46b81859f884401b4d6ee5f4291ac2d5fce4850709b1a9d58230235294833efb
Contents?: true
Size: 558 Bytes
Versions: 6
Compression:
Stored size: 558 Bytes
Contents
class Dummy::CompanyAPI < IntrospectiveGrape::API paginate restful Company do desc "Test default values in an extra endpoint" params do optional :boolean_default, type: Boolean, default: false optional :string_default, type: String, default: "foo" optional :integer_default, type: Integer, default: 123 end get '/special/list' do authorize Company.new, :index? present params end end class CompanyEntity < Grape::Entity expose :id, :name, :short_name, :created_at, :updated_at end end
Version data entries
6 entries across 6 versions & 1 rubygems