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.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4a58d4b076878284a7688ef20c3a68e30cd0001462e04e0e91d25b605e194755 |
|
MD5 | fd3da34ffd747df5b1fc43b95d668eaf |
|
BLAKE2b-256 | 9a10bec9f1bd26432944598b2110b7bb65fe91760527888ade13fd1211dfee10 |