Skip to content

Latest commit

 

History

History
77 lines (54 loc) · 1.51 KB

README.md

File metadata and controls

77 lines (54 loc) · 1.51 KB

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