Remove filter form from the browsable API #1466

Closed
opened 2025-12-29 16:32:19 +01:00 by adam · 0 comments
Owner

Originally created by @jeremystretch on GitHub (Dec 19, 2017).

Issue type

[ ] Feature request
[x] Bug report
[ ] Documentation

Environment

  • Python version: 3.5.2
  • NetBox version: 2.2.7

Description

When viewing an API endpoint in a web browser, NetBox returns a convenient browsable interface. Currently, this interface includes a button which brings up a modal containing all the filter options for the endpoint. Each field in this form is prepopulated with all potential values. This introduces a huge performance hit when viewing, for example, the IP addresses endpoint, as the interface_id field is pre-populated with all interfaces defined in NetBox.

Given that the available filters for each endpoint are documented separately, there is not much value in including the filter form in the browsable API. We can simply omit it from the API renderer and avoid what is in many cases a large amount of overhead and delay.

Originally created by @jeremystretch on GitHub (Dec 19, 2017). ### Issue type [ ] Feature request <!-- An enhancement of existing functionality --> [x] Bug report <!-- Unexpected or erroneous behavior --> [ ] Documentation <!-- A modification to the documentation --> ### Environment * Python version: 3.5.2 * NetBox version: 2.2.7 ### Description When viewing an API endpoint in a web browser, NetBox returns a convenient browsable interface. Currently, this interface includes a button which brings up a modal containing all the filter options for the endpoint. Each field in this form is prepopulated with _all_ potential values. This introduces a huge performance hit when viewing, for example, the IP addresses endpoint, as the `interface_id` field is pre-populated with all interfaces defined in NetBox. Given that the available filters for each endpoint are documented separately, there is not much value in including the filter form in the browsable API. We can simply omit it from the API renderer and avoid what is in many cases a large amount of overhead and delay.
adam added the type: bug label 2025-12-29 16:32:19 +01:00
adam closed this issue 2025-12-29 16:32:19 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#1466