Update script and reports serializer to return NetBox standardized results #8258

Closed
opened 2025-12-29 20:34:25 +01:00 by adam · 0 comments
Owner

Originally created by @abhi1693 on GitHub (Jun 28, 2023).

Originally assigned to: @abhi1693 on GitHub.

NetBox version

v3.5.4

Feature type

Change to existing functionality

Proposed functionality

The serialized data should be moved under results key and add count key if possible.

https://github.com/netbox-community/netbox/blob/develop/netbox/extras/api/views.py#L210

https://github.com/netbox-community/netbox/blob/develop/netbox/extras/api/views.py#L310

This will allow the results to be displayed in slim-select

Use case

I want to use scripts GET API in the plugin model to display list of choices to the user. This does not work as the result returned does not have the results key.

Database changes

No response

External dependencies

No response

Originally created by @abhi1693 on GitHub (Jun 28, 2023). Originally assigned to: @abhi1693 on GitHub. ### NetBox version v3.5.4 ### Feature type Change to existing functionality ### Proposed functionality The serialized data should be moved under `results` key and add `count` key if possible. https://github.com/netbox-community/netbox/blob/develop/netbox/extras/api/views.py#L210 https://github.com/netbox-community/netbox/blob/develop/netbox/extras/api/views.py#L310 This will allow the results to be displayed in `slim-select` ### Use case I want to use scripts GET API in the plugin model to display list of choices to the user. This does not work as the result returned does not have the `results` key. ### Database changes _No response_ ### External dependencies _No response_
adam added the status: acceptedtype: feature labels 2025-12-29 20:34:25 +01:00
adam closed this issue 2025-12-29 20:34:25 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#8258