Skip to content

zolghadri/jsend-python

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jsend-python

This is a package to response jsend-like format

Installation

pip install jsend
pip install git+https://github.com/Visapick-Team/jsend-python.git

Django example

settings.py

INSTALLED_APPS = [
    ...
    "jsend",
]
REST_FRAMEWORK = {
    # jsend limit/offset pagination 
    "DEFAULT_PAGINATION_CLASS": "jsend.utils.JSendLimitOffsetPagination",
    
    # jsend response
    "DEFAULT_RENDERER_CLASSES": [
        "jsend.utils.JSendRenderer",
    ],
}

About

This is a package to response jsend-like format

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%