src.eddie.app

The main web application that serves the Digital Twin to the web through a Rest API.

Attributes

app

SWAGGER_URL

API_URL

swagger_ui_blueprint

eddie_plugins

gunicorn_logger

Functions

index(→ flask.Response)

Ping this endpoint to check that the flask app is running.

health_check(→ flask.Response)

Ping this endpoint to check that the server is up and running.

terria_catalog(→ flask.Response)

Return a terria catalog that includes entries for static files and input layers from geoserver.

Module Contents

src.eddie.app.app
src.eddie.app.SWAGGER_URL = '/swagger'
src.eddie.app.API_URL = '/static/api_documentation.yml'
src.eddie.app.swagger_ui_blueprint
src.eddie.app.eddie_plugins
src.eddie.app.index() flask.Response

Ping this endpoint to check that the flask app is running. Supported methods: GET

Returns:

The HTTP Response. Expect OK if health check is successful

Return type:

Response

src.eddie.app.health_check() flask.Response

Ping this endpoint to check that the server is up and running. Supported methods: GET

Returns:

The HTTP Response. Expect OK if health check is successful

Return type:

Response

src.eddie.app.terria_catalog() flask.Response

Return a terria catalog that includes entries for static files and input layers from geoserver. Supported methods: GET

Returns:

The HTTP Response. Expect OK if health check is successful

Return type:

Response

src.eddie.app.gunicorn_logger