Skip to content

Tags field missing from REST API serializers #105

@j-eid

Description

@j-eid

Plugin version

v1.1.5

NetBox version

v4.2.7

Feature type

Change to existing functionality

Proposed functionality

Summary

The current REST API implementation doesn't include the tags field. The models all include the mixin and the forms already include the field. It would be great if the field could be added to the serializers too.

Affected Code

fields = ('url', 'id', 'display', 'manufacturer', 'sku', 'description', 'comments', )

'url', 'id', 'display', 'vendor', 'contract_id', 'start', 'renewal', 'end', 'description', 'comments',

'url', 'id', 'display', 'contract', 'sku', 'device', 'license', 'end', 'description', 'comments',

'url', 'id', 'display', 'assigned_object_type', 'assigned_object_id', 'end_of_sale',
'end_of_maintenance', 'end_of_security', 'last_contract_attach', 'last_contract_renewal',
'end_of_support', 'notice', 'documentation', 'description', 'comments',

fields = ('url', 'id', 'display', 'name', 'manufacturer', 'description', 'comments', )

fields = ('url', 'id', 'display', 'vendor', 'license', 'device', 'description', 'comments', )

fields = ('url', 'id', 'display', 'name', 'description', 'comments', )

Use case

Current REST API functionality is limited, affecting POST/PUT/PATCH integration pipelines. GraphQL inherits these fields, but not being able to update or create objects with a tag severely limits functionality at scale.

Database changes

No response

External dependencies

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions