Skip to content

Latest commit

 

History

History
18 lines (13 loc) · 468 Bytes

File metadata and controls

18 lines (13 loc) · 468 Bytes

Magic 8 ball API

Two endpoints for delivering the standard 20 Magic 8 ball answers + 1 custom as a REST API with JSON:

  • /magic - give the client one Magic 8 ball answer as a JSON object
  • /completemagic - give the client all 21 standard answer objects in an array

Example answer object:

{
    "Id":13,
    "Answer":"Cannot predict now.",
    "Type":"neutral"
}

The Type attribite indicates if the answer is "affirmative", "neutral", or "negative".