]> git.ipfire.org Git - thirdparty/patchwork.git/commit
REST: Add 'web_url' link to API responses
authorStephen Finucane <stephen@that.guru>
Thu, 7 Jun 2018 14:14:14 +0000 (15:14 +0100)
committerStephen Finucane <stephen@that.guru>
Sat, 16 Jun 2018 11:03:57 +0000 (12:03 +0100)
commit9c179bf4ce968f87b1e960063f4a6dbb9cfae0f9
tree9bc3c4a73a60c20df44810d4d537bb6efa78a0ac
parent98ac7c2bfda3e208b95c8281482904610d708b9e
REST: Add 'web_url' link to API responses

This provides an easy way for clients to navigate to the web view. The
URL is added to four resources: bundles, comments, cover letters and
series. We could also extend this to projects and users in the future,
but the latter would require renaming an existing property while the
latter would require a public "user" page which does not currently
exists.

Signed-off-by: Stephen Finucane <stephen@that.guru>
Reviewed-by: Daniel Axtens <dja@axtens.net>
patchwork/api/bundle.py
patchwork/api/comment.py
patchwork/api/cover.py
patchwork/api/embedded.py
patchwork/api/patch.py
patchwork/api/series.py
patchwork/models.py
patchwork/tests/api/test_bundle.py
patchwork/tests/api/test_cover.py
patchwork/tests/api/test_patch.py
patchwork/tests/api/test_series.py