def METHOD_NAME(self, endpoint, pid_value=None):
    record = get_record_from_legacy(pid_value)
    if not record:
        abort(404)
    serializer = self._get_serializer_from_endpoint(endpoint)
    serialized_record = serializer().dump(record)
    return jsonify({'data': serialized_record.data})