leeroywking / bad-guy-quotes

Node.js server for providing bad Guy quotes

Home Page:https://bad-guy-quotes.herokuapp.com/v2/quotes

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bad Guy Quotes API (Forked from Ron Swanson API)

Because I was bored at work today

Production host

Not Promising to keep this running

The Access-Control-Allow-Origin header is set to * so that you can make requests from any domain.

APIs

GET /v2/quotes

Returns an array with one quote:

[
    "Capitalism: God’s way of determining who is smart and who is poor."
]

GET /v2/quotes/<count>

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."
]

OpenAPI 3 Schema

An OpenAPI 3 schema is available at /v2/schema. Thanks to Chris Gali for the suggestion and the initial draft.

JavaScript demo

JSFiddle (requires a browser with support for Promises, ES6, fetch, and generator functions.)

Hubot integration

I wrote a Hubot script that can be installed via npm. See the repo for more details.

About

Node.js server for providing bad Guy quotes

https://bad-guy-quotes.herokuapp.com/v2/quotes


Languages

Language:JavaScript 100.0%