def Y(self):
        return self.data.year
Create and register pyramid endpoints to service swagger api docs.
dataset/ETHPy150Open django/django/django/utils/dateformat.py/DateFormat.Y--crossover with--dataset/ETHPy150Open striglia/pyramid_swagger/pyramid_swagger/api.py/register_api_doc_endpoints