django-uniapi
Django General/Universal API
Installation
pip install django-uniapi
Urls.py
urlpatterns = [
url(r'^uniapi/', include('django_uniapi.urls', namespace='django_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'),
]
urlpatterns += [
url(r'^set_cookie$', uni_views.set_cookie, name='set_cookie'),
url(r'^del_cookie$', uni_views.del_cookie, name='del_cookie'),
url(r'^del_cookie2$', uni_views.del_cookie2, name='del_cookie2'),
]
Settings.py
INSTALLED_APPS = (
...
'django_uniapi',
...
)
Release files for django-uniapi 1.0.11
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| django-uniapi-1.0.11.tar.gz | 2.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| django_uniapi-1.0.11-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size: 6.6 kB
Release files / django-uniapi-1.0.11.tar.gz
| Download URL | django-uniapi-1.0.11.tar.gz |
|---|---|
| Size | 2.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
376b49d452b33b7ed6a414b05cd05c083e5b2f90f2edd452fde7d795612852be
|
|
BLAKE2b-256 checksum How to use checksums |
6466ff57f051f9ae9cf1bb0e0f8439b9a4074cb538b56a070846d08fcf26e7a7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.1
|
Release files / django_uniapi-1.0.11-py2.py3-none-any.whl
| Download URL | django_uniapi-1.0.11-py2.py3-none-any.whl |
|---|---|
| Size | 3.7 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
79fbd5e9920266ccd87175cd54f199551674b188d3d73e8ef8d8df8c67616fee
|
|
BLAKE2b-256 checksum How to use checksums |
7bc288ba064fb266cda57a05d59e8b0bc98855b84a28d4657fb1132934920c0b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.1
|