@api_view(['GET'])
def get_public_channel_list(request, version):
    ' Endpoint: /public/<version>/channels/?=<query params> '
    try:
        channel_list = _get_channel_list(version, request.query_params)
    except LookupError:
        return HttpResponseNotFound(json.dumps({'id': error_constants.NOT_FOUND, 'metadata': {'view': ''}}), content_type='application/json')
    return HttpResponse(json.dumps(PublicChannelSerializer(channel_list, many=True).data), content_type='application/json')
Endpoint: /public/<version>/channels/?=<query params>
@api_view(['GET'])
def get_public_channel_list(request, version):
    '  '
    try:
        channel_list = _get_channel_list(version, request.query_params)
    except LookupError:
        return HttpResponseNotFound(json.dumps({'id': error_constants.NOT_FOUND, 'metadata': {'view': }}), content_type='application/json')
    return HttpResponse(json.dumps(PublicChannelSerializer(channel_list, many=True).data), content_type='application/json')