ruby-grape/grape-on-rack

View on GitHub
app/api.rb

Summary

Maintainability
A
0 mins
Test Coverage
module Acme
  class API < Grape::API
    prefix 'api'
    format :json
    mount ::Acme::Ping
    mount ::Acme::RescueFrom
    mount ::Acme::PathVersioning
    mount ::Acme::HeaderVersioning
    mount ::Acme::PostPut
    mount ::Acme::WrapResponse
    mount ::Acme::PostJson
    mount ::Acme::GetJson
    mount ::Acme::ContentType
    mount ::Acme::UploadFile
    mount ::Acme::Entities::API
    mount ::Acme::Headers
    mount ::Acme::StreamData
    add_swagger_documentation api_version: 'v1'
  end
end