Skip to content
Marcel Guzik edited this page Apr 24, 2018 · 7 revisions

Welcome to the wal-quotes wiki!

DOCS ARE AVAILABLE HERE

🔒 - only accessible with a secret key

API:

  • /api/quotes - gets a list of quotes
  • /api/quote/:id - gets a specific quote
  • /api/random - gets a random quote
  • /api/daily - gets a daily quote
  • /api/submissions - gets all user submisions 🔒
    • /api/submissions/:id - gets a specific user submission:
      • ?action=[accept|reject]

The URL without /api/ is a human-readable website.

Output is going to be in JSON format. A typical response contains, besides the quote, the metadata, such as data and annotation. Example:

{
    "quote": "Przyszedł i opindala mi na lekcji.",
    "date": "13.02.2018",
    "annotation": "chodziło o bułkę xD"
}
Clone this wiki locally