[PATCH v4 05/10] REST: Add Users to the API

Andy Doan andy.doan at linaro.org
Fri May 27 11:12:35 AEST 2016

On 05/25/2016 04:26 AM, Finucane, Stephen wrote:
>> +class UserSerializer(HyperlinkedModelSerializer):
>> >+    class Meta:
>> >+        model = User
>> >+        fields = ('username',)
> We're going to need to expose a lot more information than this to make
> things useful. For example: name, email, linked 'people', projects etc.

Keep in mind this is purely to allow delegates to be set on a patch. The 
current UI's don't expose any of this information (unless you go to 
manage your own profile). I've added a few more fields to this object v5 
including url, username, first_name, last_name, and email. I'm not sure 
if other stuff like linked people and projects should be exposed 
globlly? It sort of feels like an orthogonal feature request.

More information about the Patchwork mailing list