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.5.5.tar.gz (5.4 kB view details)

Uploaded Source

File details

Details for the file dj-tiny-api-0.5.5.tar.gz.

File metadata

  • Download URL: dj-tiny-api-0.5.5.tar.gz
  • Upload date:
  • Size: 5.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for dj-tiny-api-0.5.5.tar.gz
Algorithm Hash digest
SHA256 9eb771a263995f4e9563a10682f2e2b141ce35616cdc81ce85cc55c70e5ea9bc
MD5 d5a137e32f80e4ca3cd21393f098cb06
BLAKE2b-256 f402978495da9fe228e98b90fc94b3180572e509047467299c3ab4ae1b43bdd6

See more details on using hashes here.

Supported by

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