https://github.com/rishabkumar7/stoic-quotes
A Flask app that gives you a Stoic quote, also has a public API.
https://github.com/rishabkumar7/stoic-quotes
api philosophy python quotes stoicism
Last synced: 5 months ago
JSON representation
A Flask app that gives you a Stoic quote, also has a public API.
- Host: GitHub
- URL: https://github.com/rishabkumar7/stoic-quotes
- Owner: rishabkumar7
- License: mit
- Created: 2023-06-10T20:40:42.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-04-08T20:51:29.000Z (about 1 year ago)
- Last Synced: 2024-05-08T00:27:18.779Z (12 months ago)
- Topics: api, philosophy, python, quotes, stoicism
- Language: Python
- Homepage: https://stoic-quotes.azurewebsites.net
- Size: 327 KB
- Stars: 1
- Watchers: 2
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Stoic Quotes
[](https://github.com/rishabkumar7/stoic-quotes/actions/workflows/run_test.yml)
[](https://hits.seeyoufarm.com)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
```json
{
"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=
```##### Example JSON response
```json
{
"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
## Author
- Twitter: [@rishabincloud](https://x.com/rishabincloud)
- GitHub: [@rishabkumar7](https://github.com/rishabkumar7)