Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

drf_http_response-0.0.1.0.tar.gz (3.3 kB view hashes)

Uploaded Source

Built Distribution

drf_http_response-0.0.1.0-py3-none-any.whl (3.7 kB view hashes)

Uploaded Python 3

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