]> git.ipfire.org Git - thirdparty/patchwork.git/commit
docs/api: change POST to PATCH in REST API parameters example
authorAndrew Donnellan <andrew.donnellan@au1.ibm.com>
Thu, 25 May 2017 08:05:10 +0000 (18:05 +1000)
committerStephen Finucane <stephen@that.guru>
Fri, 26 May 2017 10:16:08 +0000 (11:16 +0100)
commit105f79041a08f1c557b364b07518b4b2a683909a
treef0652d1ee9d421f554c0f4ffb45d3a9d79f8e611
parent3285634ab37eb1f1f6dd95e671281ad7c6beca54
docs/api: change POST to PATCH in REST API parameters example

api/rest.rst gives an example of how to POST parameters to the PatchDetail
view at api/patches/<patch_id>. However, the endpoint in question doesn't
support POST - you need to use PUT or PATCH. Change it to PATCH.

Signed-off-by: Andrew Donnellan <andrew.donnellan@au1.ibm.com>
Reviewed-by: Stephen Finucane <stephen@that.guru>
docs/api/rest.rst