Saturday, December 24, 2016¶
Jo asked me to build a http service for accessing the data in a Lino Care database so that he can build a sexy and reactive user interface around it.
I wrote lino.modlib.restful
, an adapter to the Django REST
framework. A first usage is
lino_noi.projects.team.urls
(currently exposing just a few
fields as a proof of concept).
As a side effect, we have a new field last_login because Lino now inherits from Django’s AbstractBaseUser. I have no idea why we would need this field, but I could remove three methods from my code which I previously had copied from Django’s User model. https://stackoverflow.com/questions/21349418/django-1-6-where-is-the-user-field-last-login-updated
As expected, the authentication does not work out of the box since Lino replaces Django’s permission model. This will require more investigation.
TODO:
Write a
ChoiceListField.serialize()
method.Get authentication and permissions to work.