Skip to content

Instantly share code, notes, and snippets.

@vessi
Created October 23, 2012 14:41
Show Gist options
  • Save vessi/3939155 to your computer and use it in GitHub Desktop.
Save vessi/3939155 to your computer and use it in GitHub Desktop.
Gemfile
$:.unshift File.dirname(__FILE__)
require 'bundler/setup'
require 'rubygems'
require 'grape'
require 'twitter/api'
run Twitter::API
source 'https://rubygems.org'
gem 'grape'
# really stored in twitter/api.rb
module Twitter
class API < ::Grape::API
version 'v1', :using => :header, :vendor => 'twitter'
format :json
desc "Typical endpoint"
get :endpoint do
"lol"
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment