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.7.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 90f43de4ee0464137eeb364b8fa26513f8e9c76e60eae6fa8b044d0ed6fb4dd0 |
|
MD5 | 7cb608d62ad87b66d2708d7544fb7fb3 |
|
BLAKE2b-256 | b3254091991cdf0b264e26edcf43dfa2ef4db4ef6a6f1025860f8cedbec91441 |