Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/rcravens/flask_api_example


https://github.com/rcravens/flask_api_example

Last synced: 9 days ago
JSON representation

Awesome Lists containing this project

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`