Skip to main content

Django General/Universal API

Project description

Django General/Universal API

Installation

pip install django-uniapi

Urls.py

urlpatterns = [
    url(r'^uniapi/', include('django_uniapi.urls', namespace='uniapi')),
]

or:

from django.conf.urls import include, url
from django_uniapi import views as uni_views

urlpatterns = [
    url(r'^status$', uni_views.server_status, name='server_status'),
    url(r'^time$', uni_views.server_time, name='server_time'),
    url(r'^error$', uni_views.raise_error, name='raise_error'),
]

Settings.py

INSTALLED_APPS = (
    ...
    'django_uniapi',
    ...
)

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

django-uniapi-1.0.4.tar.gz (2.4 kB view details)

Uploaded Source

Built Distribution

django_uniapi-1.0.4-py2.py3-none-any.whl (3.5 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file django-uniapi-1.0.4.tar.gz.

File metadata

File hashes

Hashes for django-uniapi-1.0.4.tar.gz
Algorithm Hash digest
SHA256 00c406fbfb3bd17079dd0072248bef075fece5529b17908f4ffe69f7215931c6
MD5 9c40853b37a9c0afb6a9ddd6a1c5e380
BLAKE2b-256 037ff32672fd2e02075e4ef17430ee344e2af0ee40d201975d1e56830f9e3986

See more details on using hashes here.

File details

Details for the file django_uniapi-1.0.4-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for django_uniapi-1.0.4-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 0f5ba52c785ea0dd71549f958fa66f64364a9765dfc8c3d78e136134c20eaa15
MD5 4cc6b4f2a459445bef398c9103af5ffd
BLAKE2b-256 b8a6171f6013fbf5990acf7539e3946100268807ef0d1b43aab5b565f00b0f8a

See more details on using hashes here.

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