- do
bundle install
- run tests with
rake
- boot app via
foreman start
- visit
localhost:9292
(mainly for bots and stuff)
GET /expanding_brain(.json) (Retrieve the url for a generated expanding brain image)
Request
- id String (required)
$ curl -H "Content-Type: application/json" \
-X GET localhost:9292/expanding_brain.json?id=something -i
Response
- url
{
"url":"https://..."
}
POST /expanding_brain(.json) (Generate an expanding brain image)
Request
- brains Array (required)
- ***** Hash (at least one is required)
- text String (required)
- _ _ (there will be more options eventually)
- ***** Hash (at least one is required)
$ curl -H "Content-Type: application/json" \
-d '{"brains":[{"text":"a"},{"text":"b"},{"text":"c"},{"text":"d"}]}' \
-X POST localhost:9292/expanding_brain.json -i
Response
- name String
- url String
{
"name":"identifier",
"url":"https://..."
}```