code: def endpoint_for(self, operation):
          
          return operation.value.pattern.format(
              subject=self.subject_name,
              operation=operation.value.name,
              object_=self.object_name if self.object_ else None,
              version=self.version or "v1",
          )
docs: Create a (unique) endpoint name from an operation and a namespace.
  
          This naming convention matches how Flask blueprints routes are resolved
          (assuming that the blueprint and resources share the same name).
  
          Examples: `foo.search`, `bar.search_for.baz`