'List all tasks'

@etag
@api.response(200, model=tasks_list_schema)
@api.doc(parser=tasks_parser)
def get(self, session=None):

    args = tasks_parser.parse_args()
    if (not args.get(u'include_config')):
        return jsonify(list(self.manager.user_config.get(u'tasks', {})))
    tasks = []
    for (name, config) in self.manager.user_config.get(u'tasks', {}).items():
        tasks.append({u'name': name, u'config': config})
    return jsonify(tasks)
