code: def configure_discover(self, ns, definition):
          
          page_schema = OffsetLimitPageSchema()
  
          @self.add_route("/", Operation.Discover, ns)
          def discover():
              # accept pagination limit from request
              page = OffsetLimitPage.from_query_string(page_schema)
              page.offset = 0
  
              response_data = dict(
                  _links=Links({
                      "self": Link.for_(Operation.Discover, ns, qs=page.to_items()),
                      "search": [
                          link for link in iter_links(self.find_matching_endpoints(ns), page)
                      ],
                  }).to_dict()
              )
              return make_response(response_data)
docs: Register a discovery endpoint for a set of operations.