Exemple #1
0
 def add_version(response):  # pylint:  disable=unused-variable
     version = get_run_version()
     response.headers['API'] = f'report_api/{version}'
     return response
Exemple #2
0
 def get():
     """Return a JSON object with meta information about the Service."""
     version = get_run_version()
     return jsonify(API=f'report_api/{version}')