News for hackers. Stuff that matters.
Re:Eve: A Python REST API Framework by aidos on Tuesday September 10, 2013 @12:26PM (#6361065)
Interesting. I've just completed a library to run on Flask. Actually, it's an extension of flask_restful that allows for arbitrary nested resources, control over fields exposed the whole way down the tree etc. PUT/POST of deeply nested objects. I built it because I'm using SQLAlchemy and nothing quite supported how I wanted to do it. I've also used the helpers from flask_restless (with a bunch of modifications) to help with the loading / saving of SQLAlchemy object trees.

Example definition of a resource:

    class JobList(resty.ResourceList):
        model = models.Job
        deep = dict(disciplines=dict(drawings=None))
        query_options = subqueryload_all('disciplines.drawings')
I know have a really easy to configure api that plays very nicely with Restangular. It's very simple - totally not rest complete, but sufficient for my needs.

There are no comments on this comment yet.