old_contents: # -*- encoding: utf-8 -*-
  from aiohttp.web import Response
  from plone.supermodel import model
  from zope import schema
  from plone.server.api.service import Service
  
  
  class ITodo(model.Schema):
      title = schema.TextLine(title=u"Title",
                              required=False)
      done = schema.Bool(title=u"Done",
                         required=False)
  
  
  class View(Service):
      def __init__(self, context, request):
          self.context = context
          self.request = request
  
      async def __call__(self):
          return Response(text='Hello World!')
  
new_contents: # -*- encoding: utf-8 -*-
  from aiohttp.web import Response
  from plone.supermodel import model
  from zope import schema
  from plone.server.api.service import Service
  
  
  class ITodo(model.Schema):
      title = schema.TextLine(title=u"Title",
                              required=False,
                              description=u"It's a title")
      done = schema.Bool(title=u"Done",
                         required=False,
                         description=u"Has the task been completed?")
  
  
  class View(Service):
      def __init__(self, context, request):
          self.context = context
          self.request = request
  
      async def __call__(self):
          return Response(text='Hello World!')
  
  
  from zope.dublincore.interfaces import IWriteZopeDublinCore
  from zope.dublincore.annotatableadapter import ZDCAnnotatableAdapter
  from zope.interface import provider
  from zope import schema
  from plone.dexterity.interfaces import IFormFieldProvider
  from plone.dexterity.interfaces import IDexterityContent
  from zope.component import adapter
  
  
  @provider(IFormFieldProvider)
  class IDublinCore(IWriteZopeDublinCore):
      """ We basically just want the IFormFieldProvider interface applied
          There's probably a zcml way of doing this. """
  
  
  @adapter(IDexterityContent)
  class DublinCore(ZDCAnnotatableAdapter):
      pass
  
subject: Add title, description to todo schema