Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Frontier vendoring #116

Merged
merged 2 commits into from
Jan 5, 2012
Merged

Commits on Jan 5, 2012

  1. Added consideration of vendors when using header based version selection

    class MyAPI < Grape::API
    vendor 'v1', :using => :header, :vendor => 'twitter', :format => :json
    
    get '/' do
    'hello world'
    end
    end
    
    and let it still return the '/' even when the accept-header
    "application/vnd.some_other_vendor-v1+json" was given. This commit will
    let it return a 404, and sets the X-Cascade pass as well.
    
    I've added this because although the version is right, part of the
    Accept header (the vendor part) is not correct.
    jwkoelewijn committed Jan 5, 2012
    Configuration menu
    Copy the full SHA
    cba257e View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    9447781 View commit details
    Browse the repository at this point in the history