Skip to content

rishabkumar7/stoic-quotes

Repository files navigation

Stoic Quotes

Pytest Hits

A simple Flask app that displays random Stoic quotes from stoics: Marcus Aurelius, Seneca and Epictetus.

Using the API

This app also exposes a public API which you can use to fetch random Stoic quotes for use in your own applications.

Endpoints

Get a random Stoic quote

GET https://stoic-quotes.azurewebsites.net/api/random
Example JSON response
{
    "author": "Epictetus",
    "quote": "Wealth consists not in having great possessions, but in having few wants"
}

Get a list of Stoic quotes based on a word

GET https://stoic-quotes.azurewebsites.net/api/search?word=<YOUR-WORD>
Example JSON response
{
    "response": 200,
    "results": [
        {
            "author": "Epictetus",
            "quote": "Wealth consists not in having great possessions, but in having few wants"
        }
    ]
}

Architecture

This project is hosted on Azure, it uses:

  • Azure App Service
  • Azure CosmosDB

Stoic Quotes Architecture

Author

About

A Flask app that gives you a Stoic quote, also has a public API.

Topics

Resources

License

Stars

Watchers

Forks