mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-16 12:12:53 -06:00
Add an api endpoint for listing all connections
This commit is contained in:
parent
4f6f032ca2
commit
c65b9fcb0b
@ -326,6 +326,14 @@ class InterfaceConnectionView(generics.RetrieveUpdateDestroyAPIView):
|
|||||||
queryset = InterfaceConnection.objects.all()
|
queryset = InterfaceConnection.objects.all()
|
||||||
|
|
||||||
|
|
||||||
|
class InterfaceConnectionListView(generics.ListAPIView):
|
||||||
|
"""
|
||||||
|
Retrieve a list of all interface connections
|
||||||
|
"""
|
||||||
|
serializer_class = serializers.InterfaceConnectionSerializer
|
||||||
|
queryset = InterfaceConnection.objects.all()
|
||||||
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# Device bays
|
# Device bays
|
||||||
#
|
#
|
||||||
|
Loading…
Reference in New Issue
Block a user