Skip to content

Commit

Permalink
fix connected device api schema #12682
Browse files Browse the repository at this point in the history
  • Loading branch information
abhi1693 committed Jun 14, 2023
1 parent 2e95865 commit d03bfe8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion netbox/dcim/api/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -646,7 +646,10 @@ class ConnectedDeviceViewSet(ViewSet):
def get_view_name(self):
return "Connected Device Locator"

@extend_schema(responses={200: OpenApiTypes.OBJECT})
@extend_schema(
parameters=[_device_param, _interface_param],
responses={200: serializers.DeviceSerializer}
)
def list(self, request):

peer_device_name = request.query_params.get(self._device_param.name)
Expand Down

0 comments on commit d03bfe8

Please sign in to comment.