Generic functionality to use to use serializers and views with 'fields=' parameter