Created
October 23, 2012 14:41
-
-
Save vessi/3939155 to your computer and use it in GitHub Desktop.
Gemfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$:.unshift File.dirname(__FILE__) | |
require 'bundler/setup' | |
require 'rubygems' | |
require 'grape' | |
require 'twitter/api' | |
run Twitter::API |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source 'https://rubygems.org' | |
gem 'grape' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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