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.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2125165729ac168470bf3f1cbf3c5f84a748d57a16b48ff1d2beeb5922c5f216 |
|
MD5 | 7515897bbe1aad808a5311f268a83f36 |
|
BLAKE2b-256 | 718e0e553e6f286d5aaad56d68f80bfd16bd58de4c2e0520f275ee77bfa1dcd6 |