Skip to content

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

About

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

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Contributors 5