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.18.tar.gz
(18.5 kB
view hashes)
Close
Hashes for flask_json_resource-0.2.18.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1a4aa4ad07524044d8e902926fc69754c29ba2eaf04a47f915888d1c421bf7e6 |
|
MD5 | 26e37d0de940193f60e4ca5c2a19e235 |
|
BLAKE2b-256 | 4f0177d868c07f196a36f6e785feaad3db52651e3b3b1597b1c015cc0c4d2d91 |