Because Ron Swanson is a hero. Just a ridiculously simple Node.js server.
https://ron-swanson-quotes.herokuapp.com/v2/quotes
The Access-Control-Allow-Origin
header is set to *
so that you can make requests from any domain.
Returns an array with one quote:
[
"Capitalism: God’s way of determining who is smart and who is poor."
]
Returns an array with <count>
quotes e.g. GET /quotes/2
[
"Capitalism: God’s way of determining who is smart and who is poor.",
"Clear alcohols are for rich women on diets."
]
An OpenAPI 3 schema is available at /v2/schema
. Thanks to Chris Gali for the suggestion and the initial draft.
JSFiddle (requires a browser with support for Promise
s, ES6, fetch
, and generator functions.)
I wrote a Hubot script that can be installed via npm. See the repo for more details.