netbox icon indicating copy to clipboard operation
netbox copied to clipboard

Customize theme & styling of browseable REST API

Open jeremystretch opened this issue 1 year ago • 0 comments

NetBox version

v3.7.2

Feature type

Change to existing functionality

Proposed functionality

When requested by a browser, NetBox's REST API endpoints return a human-readable HTML rendering of the relevant data (a nice bonus feature of Django REST framework), as seen below.

screenshot

In light of the complete UI refresh for NetBox v4.0, we should take some time to incorporate elements of the new theme for the browseable API as well. This can be done by overriding and extending DRF's default HTML templates.

Use case

Customization of the browseable REST API will provide a more consistent feel and better UX.

Database changes

N/A

External dependencies

N/A

jeremystretch avatar Feb 14 '24 17:02 jeremystretch