UNKNOWN
Project description
Flask JSON Resource
Quickly create REST api’s using json-schema.
Minimal Example
from flask import Flask
from flask.ext.pymongo import PyMongo
from json_resource import Schema
from flask.ext.json_resource import API
app = Flask('test')
app.debug = True
db = PyMongo(app)
api = API(app, db)
@api.register()
class TestResource(api.Resource):
schema = Schema({'id': 'test'})
class TestResourceCollection(api.CollectionResource):
schema = Schema({'id': 'test-collection'})
objects = TestResource.objects
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Close
Hashes for flask_json_resource-0.2.8.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5e2c1d8f3efa13f0b3c1a5574dbf5516788eb74fd6ccd18501e244e4cfc8559f |
|
MD5 | 8b729efaaa544a2ecee1412584fc6371 |
|
BLAKE2b-256 | d353307165b291c3e110304363dce3784b470e117b509a375abce2e26ae1231a |