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 details)

Uploaded Source

Built Distribution

dj_apibrowser-0.2.0-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

Details for the file dj-apibrowser-0.2.0.tar.gz.

File metadata

  • Download URL: dj-apibrowser-0.2.0.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.2

File hashes

Hashes for dj-apibrowser-0.2.0.tar.gz
Algorithm Hash digest
SHA256 f52af3f2c723dc689ee4345f4d96ad94336d0403945b229fef8b94fcf3842786
MD5 702dfcca8e505b1c21ddb773c69feabf
BLAKE2b-256 11f80bf14e06221d652d6765e8c8c4b68a80bd9b74b49ff3e40d33de1609b585

See more details on using hashes here.

File details

Details for the file dj_apibrowser-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: dj_apibrowser-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 3.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.2

File hashes

Hashes for dj_apibrowser-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d664ef728df38ec134e4b9727cfbefe028e1dfe1691b4e7ac3694650909ae365
MD5 e1ca9976a8171dd0b6354929ba683ac1
BLAKE2b-256 f8cc08ca96363d631a9e4d834ea9355b750f255fdc4e6b6c898cfe0a46a68f56

See more details on using hashes here.

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