UNKNOWN
Project description
Flask JSON Resource
Quickly create REST api’s using json-schema.
Minimal Example
from flask import Flask
from flask.ext.pymongo import PyMongo
from json_resource import Schema
from flask.ext.json_resource import API
app = Flask('test')
app.debug = True
db = PyMongo(app)
api = API(app, db)
@api.register()
class TestResource(api.Resource):
schema = Schema({'id': 'test'})
class TestResourceCollection(api.CollectionResource):
schema = Schema({'id': 'test-collection'})
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.9.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4e1c8cb220a9bf50fcc190377ecd41158c93d61e908529328217fe46acb1ba0f |
|
MD5 | dc04cf0e1b10e4683dc9f30c235f82b4 |
|
BLAKE2b-256 | 8ea11fd08bb3376d6ef67a9743623db7d093a8fec015b178e90c5cd06c6b2b42 |