[RFC 2/2] REST: Add Projects to the REST API

Finucane, Stephen stephen.finucane at intel.com
Sat Mar 26 00:29:38 AEDT 2016

On 24 Mar 15:27, Andy Doan wrote:
> On 03/24/2016 10:47 AM, Finucane, Stephen wrote:
> >>+class ProjectSerializer(serializers.HyperlinkedModelSerializer):
> >>>+    class Meta:
> >>>+        model = Project
> >Should we serialize 'tags' also (read only)?
> As project.tags is really just Tags.objects.all(), does it really
> make much sense from a REST API perspective? ie - should we just
> expose a "tags" endpoint?

Good point. Let's count this as a separate endpoint, and a low
priority one at that.

I might get rid of that 'tags' field altogether, assuming it doesn't
impact performance.


More information about the Patchwork mailing list