Skip to main content


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)

class TestResource(api.Resource):
    schema = Schema({'id': 'test'})

class TestResourceCollection(api.CollectionResource):
    schema = Schema({'id': 'test-collection'})
    objects = TestResource.objects

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for flask_json_resource, version 0.2.18
Filename, size File type Python version Upload date Hashes
Filename, size flask_json_resource-0.2.18.tar.gz (18.5 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page