Skip to content

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

@abhi1693

Description

@abhi1693

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

Metadata

Metadata

Assignees

Labels

status: acceptedThis issue has been accepted for implementationtype: featureIntroduction of new functionality to the application

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions