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
flask_json_resource-0.2.14.tar.gz
(17.9 kB
view hashes)
Close
Hashes for flask_json_resource-0.2.14.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d6d006ca10b2b2e40dae673304daa692c88ac94983a817e2f9961e3e2118a009 |
|
MD5 | 483bbf156f167d9f77c417c50364ae78 |
|
BLAKE2b-256 | a53304bfbbc02763cf9c2633bf33a5a78bb2f02667037acb76e6cb71332d19e6 |