ruby-grape/grape-on-rack

View on GitHub
api/path_versioning.rb

Summary

Maintainability
A
0 mins
Test Coverage
module Acme
  class PathVersioning < Grape::API
    version 'vendor', using: :path, vendor: 'acme', format: :json
    desc 'Returns acme.'
    get do
      { path: 'acme' }
    end
  end
end