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.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9b31e5a63a63aef30680ac999e697ba09e8bbce9caddd3f84ee12e275cc99f67 |
|
MD5 | e1b7fe88810afc6c8726a91d329f3a1f |
|
BLAKE2b-256 | 678e26d65c4fa6a8b6bded118012eb0ec446ea79581aabb5e1182a7702677430 |