def METHOD_NAME(request, format=None):
    codes = utils.param_to_list(request.query_params.get("q", []))
    codes = [c.upper() for c in codes]
    is_exact = request.GET.get("exact", None)
    is_exact = is_exact == "true"
    querysets = _get_matching_products(codes, is_exact)
    data = _convert_querysets(querysets)
    return Response(data)