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.13.tar.gz
(18.1 kB
view hashes)
Close
Hashes for flask_json_resource-0.2.13.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 17c785d60ee9bf14d2725f358695f15bcc896ad29e2a9fa14349b4c98d4282df |
|
MD5 | 4dfb96b15ee357d7a0d470e7ed6dd3eb |
|
BLAKE2b-256 | 101469a6301853f246b49b35b91bf3117968507818a5d7c153f92447fa87cb32 |