Exemple #1
0
def version():
    dictver = {
        'version': dictionary_version(),
        'commit': dictionary_commit(),
    }
    base = {
        'version': VERSION,
        'commit': COMMIT,
        'dictionary': dictver,
    }

    return jsonify(base), 200
Exemple #2
0
def version():
    """
    Returns the version of Sheepdog
    ---
    tags:
      - system
    responses:
      200:
        description: successful operation
    """
    dictver = {"version": dictionary_version(), "commit": dictionary_commit()}
    base = {"version": VERSION, "commit": COMMIT, "dictionary": dictver}

    return jsonify(base), 200
Exemple #3
0
def version():
    dictver = {"version": dictionary_version(), "commit": dictionary_commit()}
    base = {"version": VERSION, "commit": COMMIT, "dictionary": dictver}

    return jsonify(base), 200