]> git.ipfire.org Git - thirdparty/patchwork.git/commit
REST: Add '/series' endpoint
authorStephen Finucane <stephen@that.guru>
Fri, 4 Nov 2016 14:17:46 +0000 (14:17 +0000)
committerStephen Finucane <stephen@that.guru>
Fri, 23 Dec 2016 23:41:34 +0000 (23:41 +0000)
commitf1d7c8f7dca818ef4df0b22a7f9f879ff59da782
tree2e353c7e9b670953d763f5fee951227e882dddc9
parent4d36190ac7013dd96b57915a11ecdeeee03bbcb5
REST: Add '/series' endpoint

Adopt a hybrid approach, by adding an additional series endpoint to the
existing patch endpoint:

    /series/${series_id}/
    /patches/${patch_id}/

This is based on the approach described here:

    http://softwareengineering.stackexchange.com/a/275007/106804

This is necessary due to the N:N mapping of series and patches: it's
possible for a patch to belong to many series, and a series usually
contains many patches. This means it is not possible to rely on the
patch endpoint alone.

It is also necessary to add a cover letter endpoint, such that the
series body can include this.

Signed-off-by: Stephen Finucane <stephen@that.guru>
patchwork/api/cover.py [new file with mode: 0644]
patchwork/api/patch.py
patchwork/api/series.py [new file with mode: 0644]
patchwork/tests/test_rest_api.py
patchwork/urls.py