Skip to main content

UNKNOWN

Project description

https://drone.io/bitbucket.org/eodolphi/flask-json-resource/status.png

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


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 details)

Uploaded Source

File details

Details for the file flask_json_resource-0.2.18.tar.gz.

File metadata

File hashes

Hashes for flask_json_resource-0.2.18.tar.gz
Algorithm Hash digest
SHA256 1a4aa4ad07524044d8e902926fc69754c29ba2eaf04a47f915888d1c421bf7e6
MD5 26e37d0de940193f60e4ca5c2a19e235
BLAKE2b-256 4f0177d868c07f196a36f6e785feaad3db52651e3b3b1597b1c015cc0c4d2d91

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page