Skip to content

A simple API which returns aphorisms because fortunecookie.heroku was taken

License

Notifications You must be signed in to change notification settings

free-ignorance/fortunecookie

Repository files navigation

fortunecookie

Issues License Known Vulnerabilities codecov

🥠 Fortunecookie API

Description:

This RESTful API returns a json object with aphorisms, much like a opening a fortune cookie.

Basic usage

curl https://aphorismcookie.herokuapp.com

Response

{
  "data": {
    "message": "Everything will now come your way.",
  },
  "meta": {
    "status": 200,
  }
}

Also has a slack friendly endpoint!

curl https://aphorismcookie.herokuapp.com/slack

Response

{
  "response_type": "in_channel",
  "text": "🥠 your fortune reads: 'Everything has beauty but not everyone sees it.'"
}

Documentation

Local Development

Installation

npm install

Example Usage

Basic usage

npm run start