def METHOD_NAME() -> Response:
    content = request.get_json()
    if not content:
        raise BadRequest("Invalid request json")
    text = content.get("text", "")
    deanonymize_entities = AppEntitiesConvertor.deanonymize_entities_from_json(
        content
    )
    deanonymize_config = AppEntitiesConvertor.operators_config_from_json(
        content.get("deanonymizers")
    )
    deanonymized_response = self.METHOD_NAME.METHOD_NAME(
        text=text, entities=deanonymize_entities, operators=deanonymize_config
    )
    return Response(
        deanonymized_response.to_json(), mimetype="application/json"
    )