4 ms·
This is a really nice way to plug your product. :) Writing web applications where the server is just a RESTful api that handles authorization makes a lot of sen
by bjourne 14y ago
This is a really nice way to plug your product. :) Writing web applications where the server is just a RESTful api that handles authorization makes a lot of sense. Clean separation between models and views, easy to deploy almost anywhere and easy to scale and cache. I've been using flask-restless to accomplish something similar, but there is still some glue code you need and sql to define database models.
Though it seems your collection api does not support arbitrary queries yet? E.g. you can't fetch the last 10 blog posts or the highest rated comments by user X? That are imho must have features for anything more than the most basic web application.
Uniqueness validation seem to be missing too. E.g. currently no way to say to a user that "a user with that username already exists"?
- colevscode 14y agoUniqueness validation is built into the collections API. If you attempt to add a model with a duplicate ID you'll get a 400 error. In addition you can specify validation rules in the config.yml file. Some additional info here: http://backlift.github.com/docs/validation.html#validation-rule-reference http://backlift.github.com/docs/validation.html#validation-r.... As for query parameters on the collections API, we totally agree it's a must and we're working on it.