Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

universal-response-mobile-api

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

universal-response-mobile-api

Add universal response for your API

  • 0.1.9
  • PyPI
  • Socket score

Maintainers
1

Library for django rest framework

Repository: https://bitbucket.org/anmv/universal-response-mobile-api

PIP package: https://pypi.org/project/universal-response-mobile-api/

Install

pip install universal-response-mobile-api

Use

import universal_response_mobile_api as u_mobile_api

1. Decorator

Add your Django project, for default behavior:

file: settings.py

 import universal_response_mobile_api as u_mobile_api

'DEFAULT_RENDERER_CLASSES': (
        'u_mobile_api.StructuredJsonRenderer',
    ),

or use as decorator for rest-api.

2. Errors handler

Add your Django project:

file: settings.py

import universal_response_mobile_api as u_mobile_api

REST_FRAMEWORK = {
    ...
    'EXCEPTION_HANDLER': 'u_mobile_api.custom_exception_handler',
    ...
}

Keywords

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc