lino.modlib.restful

Lino's lino.modlib.restful plugin is an adapter to the django-restful framework.

Usage:

  • Add 'lino.modlib.restful' to your get_installed_apps().

  • Install djangorestframework manually in case it is not installed automatically:

    $ pip install djangorestframework
    
  • Set your root_urlconf to 'mysite.urls'

  • Write your mysite/urls.py using lino_noi.projects.team.urls as example.

urls

Login and logout views for the browsable API.

(This module's source code is available here.)

Classes

Plugin(site, app_label, app_name, ...)

See Introduction to plugins.

class lino.modlib.restful.Plugin(site, app_label, app_name, app_module, needed_by)

Bases: lino.core.plugin.Plugin

See Introduction to plugins.