For use with the BuzzwordBingo application
Tested with Ruby 1.9.3
bundle install
foreman start
The base url is /api/v0.1
.
Returns an array of list names
Returns a JSON object like:
{
"name": "list name",
"words": [ "word1", "word2" ]
}
curl -v localhost:5000/api/v0.1/lists
Returns
[
"States",
"State Capitals",
"...",
"Time's Top 100 Books",
"Greek Mythology",
"Metaphysicians"
]
curl -v localhost:5000/api/v0.1/lists/States
Returns
{
"name": "States",
"words": [
"Alabama",
"Alaska",
"American Samoa",
"Arizona",
"Arkansas",
"...",
"Washington",
"West Virginia",
"Wisconsin",
"Wyoming"
]
}
Problems installing event machine?
bundle config build.eventmachine \
--with-cppflags=-I$(brew --prefix openssl)/include