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.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 12ffba1b4c3975c472dd2e1dab166e468810844501402030e10c94877638ec4e |
|
MD5 | 1abe158c679c3f2ee940bb3685e30ef6 |
|
BLAKE2b-256 | 606fab69c8ec64c71e0bbef0a91f080c8ac77c2f1f95ad4382cbb4d261caa550 |