michaelkuty / leonardo-api

My personal and experimental API for Leonardo CMS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Leonardo leonardo-api

API for Leonardo CMS.

Just PoC under development, not production ready yet.

pip install leonardo-api

This API is only generic skeleton for your APIs.

class MyModel:

    class Meta:
        app = 'web'
http GET localhost/api/models/web.mymodel/
...

For customization declare serializer_class on your model:

class MyModel:

    serializer_class = MyModelSerializer

    class Meta:
        app = 'web'

About

My personal and experimental API for Leonardo CMS

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:Python 99.6%Language:Shell 0.4%