def owns_endpoint(self, endpoint):

        if self.blueprint:
            if endpoint.startswith(self.blueprint.name):
                endpoint = endpoint.split(self.blueprint.name + '.', 1)[-1]
            else:
                return False
        return endpoint in self.endpoints
Tests if an endpoint name (not path) belongs to this Api.  Takes
dataset/ETHPy150Open flask-restful/flask-restful/flask_restful/__init__.py/Api.owns_endpoint