Django General/Universal API
Project description
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',
...
)
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.11.tar.gz
(2.9 kB
view details)
Built Distribution
File details
Details for the file django-uniapi-1.0.11.tar.gz
.
File metadata
- Download URL: django-uniapi-1.0.11.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 376b49d452b33b7ed6a414b05cd05c083e5b2f90f2edd452fde7d795612852be |
|
MD5 | a0b65ace20d0bc662c7e4c435ca7a6d7 |
|
BLAKE2b-256 | 6466ff57f051f9ae9cf1bb0e0f8439b9a4074cb538b56a070846d08fcf26e7a7 |
File details
Details for the file django_uniapi-1.0.11-py2.py3-none-any.whl
.
File metadata
- Download URL: django_uniapi-1.0.11-py2.py3-none-any.whl
- Upload date:
- Size: 3.7 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 79fbd5e9920266ccd87175cd54f199551674b188d3d73e8ef8d8df8c67616fee |
|
MD5 | ec68ba106d10559eca94e4a6d9885fd6 |
|
BLAKE2b-256 | 7bc288ba064fb266cda57a05d59e8b0bc98855b84a28d4657fb1132934920c0b |