/sha-disruptions-api

Backend API to serve SHA service disruptions in an easy to consume API

Primary LanguagePythonMIT LicenseMIT

Saskatchewan Health Authority Service Disruptions API

Backend API to serve SHA service disruptions in an easy to consume API.

Service disruptions sourced from the SK Health Authority Website

Dependencies

  • Pipenv: Python Dev Workflow for Humans
  • Flasgger: A Flask extension to extract OpenAPI-Specification from all Flask views registered in your API.
  • Flask-Caching: An extension to Flask that adds caching support for various backends to any Flask application.

Quick Start

pipenv install
export FLASK_APP=flaskr
export FLASK_ENV=development
flask run

Production Run Command

gunicorn wsgi:app

Environment

Relies on the following variables existing in the local environment:

SECRET_KEY=secret key for Flask app

Go to http://localhost:5000/apidocs for API documentation