INNER CODE UNIT · Python

version_endpoint

fescobar/allure-docker-service · allure-docker-api/app.py:731

def version_endpoint():
    try:
        version = get_file_as_string(ALLURE_VERSION).strip()
    except Exception as ex:
        body = {
            'meta_data': {
                'message' : str(ex)
            }
        }
        resp = jsonify(body)
        resp.status_code = 400
    else:
        body = {
            'data': {
                'version': version
            },
            'meta_data': {
                'message' : "Version successfully obtained"

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…