def METHOD_NAME(request, project_id):
    group_by = request.GET.get("group_by", "category")
    result_dict = check_and_rename_params({}, group_by)
    if not result_dict["success"]:
        return JsonResponse({"result": False, "message": result_dict["content"]})
    filters = {"is_deleted": False, "project_id": project_id}
    success, content = app_maker.dispatch(result_dict["group_by"], filters)
    if not success:
        return JsonResponse({"result": False, "message": content})
    return JsonResponse({"result": True, "data": content})