Skip to main content

Generic GUI for any RESTful API

Project description

Generic GUI for any RESTful API

See the demo at https://apibrowser-demo.herokuapp.com/ (source).

dj-apibrowser itself is just a trivial middleware that serves APIBrowser, which is written in JS, and works purely in the web browser. It returns the APIBrowser HTML code whenever a web browser navigates to a page.

Installation

pip install dj-apibrowser

settings.py

  • Add dj_apibrowser.APIBrowserServerMiddleware to the list of MIDDLEWAREs.
  • If neccesary, specify on which endpoints should we serve APIBrowser. Default config means that this is disabled on paths starting from /admin/, and enabled on all other paths:
API_ENDPOINTS = [
    ('admin/', False),
    ('', True),
]

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

dj-apibrowser-0.2.0.tar.gz (3.2 kB view hashes)

Uploaded Source

Built Distribution

dj_apibrowser-0.2.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