Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rcravens/flask_api_example
https://github.com/rcravens/flask_api_example
Last synced: 9 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/rcravens/flask_api_example
- Owner: rcravens
- Created: 2024-02-26T16:21:52.000Z (10 months ago)
- Default Branch: master
- Last Pushed: 2024-02-26T16:26:03.000Z (10 months ago)
- Last Synced: 2024-08-13T07:07:52.959Z (4 months ago)
- Language: Python
- Size: 1.95 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- jimsghstars - rcravens/flask_api_example - (Python)
README
# Flask API Example
Visit the application at the following end-points:
- ping: `http://localhost/ping`
- news: `http://localhost/news`
- weather: `http://localhost/weather`I
Note the ID of the responding container is provided in the "PONG" response.To scale up the app:
`docker compose up -d --scale app=5 --no-recreate`
To scale it back down the app:
`docker compose up -d --scale app=1 --no-recreate`
To quit the app:
`docker compose down`