'List schedules'

@etag
@api.response(200, model=api_schedules_list_schema)
def get(self, session=None):

    schedule_list = []
    schedules = self.manager.config.get(u'schedules', [])
    if (schedules is True):
        schedules = DEFAULT_SCHEDULES
    elif (schedules is False):
        raise Conflict(u'Schedules    are    disables    in    config')
    for schedule in schedules:
        schedule_id = id(schedule)
        schedule = schedule.copy()
        schedule[u'id'] = schedule_id
        schedule_list.append(schedule)
    return jsonify(schedule_list)
