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.

Files for dj-tiny-api, version 0.5.5
Filename, size File type Python version Upload date Hashes
Filename, size dj-tiny-api-0.5.5.tar.gz (5.4 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page