No project description provided
Project description
DRF http response
A DRF http custom response
Description
This a http response package for django rest framework custom response. This is only for any django projects which used drf for http response.
Dependencies
Djago DRF
Uses
Install it by runing
pip install drf-http-response
Import into your project
from drf_http_response import success, result, error
Use it in your http response
return success.get_response(message='Successfully Completed', status=200)
If you use any type of response without passing parameter into it. No problem it will always return a default message. For result.get_response()
you can pass data or object as a message into it.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for drf_http_response-0.0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 692f12f72c3adb18434b1df0d100fe536418efab4312a69e392262c416800c79 |
|
MD5 | d05ff9be9532dce7b796d8a27ab208c4 |
|
BLAKE2b-256 | 0644078139ac7464ff1dc72eb93f04f3cf5dfcfafb6434d9baa6a5d1befa026c |
Close
Hashes for drf_http_response-0.0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1a0d400e6ef3c219e99e4d8e56f0754476065c1f0d696ce2aee9a0fdb3d7f34a |
|
MD5 | fb590fc4ffe49ecfcdb55bdd69b11089 |
|
BLAKE2b-256 | 9fd61394a8a39d27d5f99b92ea8f6530884e3306bcc634d5fe6621a2eec916e1 |