code: def configure_swagger(graph):
      
      ns = Namespace(
          subject=graph.config.swagger_convention.name,
          version=graph.config.swagger_convention.version,
      )
      convention = SwaggerConvention(graph)
      convention.configure(ns, discover=tuple())
      return ns.subject
docs: Build a singleton endpoint that provides swagger definitions for all operations.