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.12.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5c374af247b8e18cc68094c0cb54eeb0b52d8a9701a2937bffa9cea3c0e2a484 |
|
MD5 | ae336002e3d8974162010239f5a90cae |
|
BLAKE2b-256 | 005fcd04d61d0aeb5687b03e018f3a1f68548699d094f22aeeff85623b5879c8 |