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.15.tar.gz
(17.9 kB
view hashes)
Close
Hashes for flask_json_resource-0.2.15.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | fce294787fef026b738e1ac8c2fb3f925fd94ff810fb82f980e37f61b41496fa |
|
MD5 | 2ac9c6eadbd8f021f39b3df21160dcaa |
|
BLAKE2b-256 | 0bdd77470242a2c1129f270ea5355c95f00e4e6a007fd203307588414572e2e6 |