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.

Filename, size & hash SHA256 hash help File type Python version Upload date
dj-tiny-api-0.5.5.tar.gz (5.4 kB) Copy SHA256 hash SHA256 Source None

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