Skip to main content

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}

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

dj-tiny-api-0.1.tar.gz (3.9 kB view hashes)

Uploaded Source

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