A tiny toolkit to implement HTTP APIs using Django.
Project description
# dj-tiny-api
A tiny toolkit to implement HTTP APIs using Django.
Basic Usage
===========
# in views.py
from dj_tiny_api import Endpoint
@Endpoint(
url=r'^api/v1/foo/?$',
methods=['GET', 'POST'],
)
def foo_view()
return {'foo': 'bar'}
# this will return response with body
{"data": {"foo": "bar"}, "error": null}
A tiny toolkit to implement HTTP APIs using Django.
Basic Usage
===========
# in views.py
from dj_tiny_api import Endpoint
@Endpoint(
url=r'^api/v1/foo/?$',
methods=['GET', 'POST'],
)
def foo_view()
return {'foo': 'bar'}
# this will return response with body
{"data": {"foo": "bar"}, "error": null}
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
dj-tiny-api-0.2.tar.gz
(3.9 kB
view hashes)