]> git.ipfire.org Git - thirdparty/patchwork.git/commit
REST: Add Patches to the API
authorAndy Doan <andy.doan@linaro.org>
Thu, 16 Jun 2016 21:13:21 +0000 (16:13 -0500)
committerStephen Finucane <stephen.finucane@intel.com>
Mon, 27 Jun 2016 17:20:34 +0000 (18:20 +0100)
commitca2781a8b464e6014415d7375762379066bde1cb
treec13bea6adedd821caa345e5505fc079431d2dea8
parent62d567aee6f9c2f5f3b1b84e581a5b337f07dfa3
REST: Add Patches to the API

This exposes patches via the REST API.

Security Constraints:
 * Anyone (logged in or not) can read all objects.
 * No one can create/delete objects.
 * Project maintainers are allowed to update (ie "patch"
   attributes)

NOTE: Patch.save was overridden incorrectly and had to be
fixed to work with DRF.

Signed-off-by: Andy Doan <andy.doan@linaro.org>
Signed-off-by: Stephen Finucane <stephen.finucane@intel.com>
patchwork/models.py
patchwork/rest_serializers.py
patchwork/tests/test_rest_api.py
patchwork/views/rest_api.py