code: def get_swagger_fragment(cls):
          '''Return the swagger-formatted fragment for the Resource Listing.'''
          if cls.__swagger_fragment:
              return cls.__swagger_fragment
          cls.__swagger_fragment = {
              'path': cls.endpoint_path.replace('<', '{').replace('>', '}'),
              'description': cls.description,
              'operations': cls.get_resource_operations(),
          }
          return cls.__swagger_fragmenf get_swagger_fragment(cls):
          '''Return the swagger-formatted fragment for the Resource Listing.'''
          if cls.__swagger_fragment:
              return cls.__swagger_fragment
          cls.__swagger_fragment = {
              'path': cls.endpoint_path.replace('<', '{').replace('>', '}'),
              'description': cls.description,
              'operations': cls.get_resource_operations(),
          }
          return cls.__swagger_fragment
docs: Return the swagger-formatted fragment for the Resource Listing.