Provide a base REST API serializer class for plugins #6186

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

Originally created by @jeremystretch on GitHub (Mar 8, 2022).

Originally assigned to: @jeremystretch on GitHub.

NetBox version

v3.2-beta1

Feature type

New functionality

Proposed functionality

Introduce and document a REST API serializer class suitable for use by plugins, to enable features like tagging and custom fields. NetBox core models employ the PrimaryModelSerializer class for this; we can probably just rename this to NetBoxModelSerializer and document accordingly.

Use case

Enables plugins to support tag assignment and custom fields on their models via NetBox's REST API.

Database changes

No response

External dependencies

No response

Originally created by @jeremystretch on GitHub (Mar 8, 2022). Originally assigned to: @jeremystretch on GitHub. ### NetBox version v3.2-beta1 ### Feature type New functionality ### Proposed functionality Introduce and document a REST API serializer class suitable for use by plugins, to enable features like tagging and custom fields. NetBox core models employ the `PrimaryModelSerializer` class for this; we can probably just rename this to `NetBoxModelSerializer` and document accordingly. ### Use case Enables plugins to support tag assignment and custom fields on their models via NetBox's REST API. ### Database changes _No response_ ### External dependencies _No response_
adam added the status: acceptedtype: featurebeta labels 2025-12-29 19:37:49 +01:00
adam closed this issue 2025-12-29 19:37:49 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#6186