After closing #1025 , we have to display the fetched details to the user. This includes:
-
Addition of the fetched details in device admin alongside Last IP field.

-
To include details of WHOIS record in device listing/details endpoint, I plan to create a BriefSerializer for summary and DetailedSerializer for detailed version. We can accept something like detailed=True/False query param in device details endpoint to allow option to switch between summary and detailed version.
class BriefWHOisSerializer(serializers.ModelSerializer):
class Meta:
model=WHOIS
fields = ["organization_name", "country"]
class DetailedWHOisSerializer(serializers.ModelSerializer):
class Meta:
model=WHOIS
fields = "__all__"
-
Test cases to ensure the WHOIS details are correctly displayed in the device admin alongside the Last IP field and properly included in the device list and detail API responses. The tests should cover both summary and detailed views, verifying the functionality of the detailed=True/False query parameter and ensuring correct behavior when WHOIS information is missing or incomplete.
Dependencies
After closing #1025 , we have to display the fetched details to the user. This includes:
Addition of the fetched details in device admin alongside
Last IPfield.To include details of WHOIS record in device listing/details endpoint, I plan to create a BriefSerializer for summary and DetailedSerializer for detailed version. We can accept something like
detailed=True/Falsequery param in device details endpoint to allow option to switch between summary and detailed version.Test cases to ensure the WHOIS details are correctly displayed in the device admin alongside the Last IP field and properly included in the device list and detail API responses. The tests should cover both summary and detailed views, verifying the functionality of the detailed=True/False query parameter and ensuring correct behavior when WHOIS information is missing or incomplete.
Dependencies