def METHOD_NAME(request, region_slug, language_slug):
    """
    Parse feedback API request parameters
    :param request: Django request
    :type request: ~django.http.HttpRequest
    :param region_slug: slug of a region
    :type region_slug: str
    :param language_slug: slug of a language
    :type language_slug: str
    :return: The decorated feedback view function
    :rtype: ~collections.abc.Callable
    """
    if request.method != "POST":
        return JsonResponse({"error": "Invalid request."}, status=405)
    try:
        region = Region.objects.get(slug=region_slug)
        language = Language.objects.get(slug=language_slug)
    except Region.DoesNotExist:
        return JsonResponse(
            {"error": f'No region found with slug "{region_slug}"'}, status=404
        )
    except Language.DoesNotExist:
        return JsonResponse(
            {"error": f'No language found with slug "{language_slug}"'}, status=404
        )
    data = (
        json.loads(request.body.decode())
        if request.content_type == "application/json"
        else request.POST.dict()
    )
    comment = data.pop("comment", "")
    rating = data.pop("rating", None)
    category = data.pop("category", None)
    if rating not in [None, "up", "down"]:
        return JsonResponse({"error": "Invalid rating."}, status=400)
    if not comment and not rating:
        return JsonResponse(
            {"error": "Either comment or rating is required."}, status=400
        )
    if rating == "up":
        rating_normalized = feedback_ratings.POSITIVE
    elif rating == "down":
        rating_normalized = feedback_ratings.NEGATIVE
    else:
        rating_normalized = feedback_ratings.NOT_STATED
    is_technical = category == "Technisches Feedback"
    return func(data, region, language, comment, rating_normalized, is_technical)