Created
December 1, 2011 23:53
-
-
Save petejohanson/1420800 to your computer and use it in GitHub Desktop.
Simple Sinatra RESTful Service
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
require 'json' | |
require 'sinatra' | |
chief_complaints = [ | |
{ name: "Dizziness" }, | |
{ name: "Chest Pain" }, | |
] | |
before /.*/ do | |
content_type :json | |
end | |
get '/chief_complaints' do | |
chief_complaints.to_json | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment