Skip to content

Instantly share code, notes, and snippets.

@lozadaOmr
Created June 7, 2015 05:29
Show Gist options
  • Save lozadaOmr/3d3990d14b40e16f928b to your computer and use it in GitHub Desktop.
Save lozadaOmr/3d3990d14b40e16f928b to your computer and use it in GitHub Desktop.
@app.route('/api/help', methods = ['GET'])
def help():
    """Print available functions."""
    func_list = {}
    for rule in app.url_map.iter_rules():
        if rule.endpoint != 'static':
            func_list[rule.rule] = app.view_functions[rule.endpoint].__doc__
    return jsonify(func_list)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment