netbox-community / go-netbox

The official Go API client for Netbox IPAM and DCIM service.
Other
199 stars 157 forks source link

Add support for exclude param on dcim devices list #140

Closed fdelayen closed 1 year ago

fdelayen commented 1 year ago

Hello!

To improve performances in dcim devices listing operations, netbox have implemented a feature allowing to exclude config context data.

This change aims at providing support for the "exclude" param.

Related information: https://demo.netbox.dev/static/docs/rest-api/overview/#excluding-config-contexts https://github.com/netbox-community/netbox/issues/4559

Have a nice day, Florent

v0ctor commented 1 year ago

Hi, Florent.

Since everything under the netbox directory is automatically generated from the OpenAPI spec, all changes made would be overwritten by the next code regeneration.

I'm going to close the PR, but feel free to make the corresponding contribution to the Netbox repo for the OpenAPI specification to include this parameter.