@action(route="/radiovis/api/<secret>/get_channels")
@only_orga_admin_user()  # To prevent call from IO
@json_only()
def radiovis_api_get_channels(request, secret):

    if secret != config.API_SECRET:
        abort(404)
        return

    list = []

    object = Station.query.filter_by(id=int(request.form.get('station_id'))).first()

    for channel in object.channels:
        list.append(channel.topic)

    return {'list': list}
Api call to get a list of channels
dataset/ETHPy150Open ebu/radiodns-plugit/RadioDns-PlugIt/radiovis/actions.py/radiovis_api_get_channels