UNKNOWN
Project description
Flask JSON Resource
Quickly create REST api’s using json-schema.
Installation
pip install flask_json_resource
Minimal Example
from flask import Flask
from flask.ext.pymongo import PyMongo
from flask_json_resource.api import API
app = Flask('test')
app.debug = True
db = PyMongo(app)
api = API(db)
app.register_blueprint(api)
@api.register()
class TestResource(api.Resource):
schema = 'test.json'
class TestResourceCollection(api.CollectionResource):
schema = 'test-collection.json'
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.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0241664add5b069b0c2ff0be0f78229a2d61ba6386a6e896ef7a1c03f28b676a |
|
MD5 | f77a706d98c926e7ef34622dc0fae450 |
|
BLAKE2b-256 | 03b1c30cf75e1013ed2e854129809bae99991e19519cbe6ac5c033b8a1529283 |