(self, request, pk=None)
return RestResponse(serializer.data)
get:
        Retrieve asset instance.
get:
        Retrieve asset instance.
get : Retrieve asset instance .
def retrieve(self, request, pk=None):
        """
        get:
        Retrieve asset instance.
        """
        asset = AssetInstance.objects.get(id=pk)
        serializer = AssetDetailSerializer(asset, many=False, context={'request': request})
        return RestResponse(serializer.data)
def retrieve ( self , request , pk = None ) : asset = AssetInstance . objects . get ( id = pk ) serializer = AssetDetailSerializer ( asset , many = False , context = { 'request' : request } ) return RestResponse ( serializer . data )