code: def _get_capabilities(self, urn=None):
          
          r = self.resolver.getMetadata(objectId=urn)
          if len(r.parents) > 0:
              r = r.parents[-1]
          r = render_template(
              "cts/GetCapabilities.xml",
              filters="urn={}".format(urn),
              inventory=Markup(r.export(Mimetypes.XML.CTS))
          )
          return r, 200, {"content-type": "application/xml"}
docs: Provisional route for GetCapabilities request
  
          :param urn: URN to filter the resource
          :param inv: Inventory Identifier
          :return: GetCapabilities response