Netbox plugin, extend existing serializer #19031
Replies: 1 comment 1 reply
-
I might be wrong, but I don't think you can extend NetBox's core API serializers. The only approach that comes to mind is subclassing the |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am trying to create my first plugin to manage SSH public keys.
My SSHList model has ManyToManyField relation to VirtualMachine model. How to extent VirtualMachine serializer to list assigned SSHList's via API /api/virtualization/virtual-machines?
models.py
/api/serializers.py
Netbox v4.2.4
Beta Was this translation helpful? Give feedback.
All reactions