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

Uploaded Source

Built Distribution

django_uniapi-1.0.1-py2.py3-none-any.whl (4.4 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

File hashes

Hashes for django-uniapi-1.0.1.tar.gz
Algorithm Hash digest
SHA256 b6fbe370508b68471a3e88eae4f97909ef8024a220b1fe6731d4f8dd13f30151
MD5 67ff1ac8b9717c316ec6b9767c74a108
BLAKE2b-256 871d12c20f0ebffe18a347f245ef1d6bc9ffa6b198ba92e31c74ff4e11b33a13

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for django_uniapi-1.0.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 360f3b6eee57d46fd9eb232742c0acc6d2527f7f6066961ed062e7f7904040f1
MD5 1b2454f763e938398b808c62d467e9af
BLAKE2b-256 f2cdb3bd97e2a19605728c63559e87c82918c1c0fe9595d92cc0760773b05538

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