Merge lp:~cjwatson/launchpad/api-document-delete into lp:launchpad

Proposed by Colin Watson on 2016-04-24
Status: Merged
Merged at revision: 18005
Proposed branch: lp:~cjwatson/launchpad/api-document-delete
Merge into: lp:launchpad
Diff against target: 24 lines (+7/-1)
1 file modified
lib/lp/services/webservice/wadl-to-refhtml.xsl (+7/-1)
To merge this branch: bzr merge lp:~cjwatson/launchpad/api-document-delete
Reviewer Review Type Date Requested Status
William Grant code 2016-04-24 Approve on 2016-04-26
Review via email: mp+292738@code.launchpad.net

Commit message

Document the standard DELETE method in the apidoc.

Description of the change

Document the standard DELETE method in the apidoc. While I was at it, I fixed a whitespace bug that I introduced a while ago.

To post a comment you must log in.
William Grant (wgrant) :
review: Approve (code)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'lib/lp/services/webservice/wadl-to-refhtml.xsl'
2--- lib/lp/services/webservice/wadl-to-refhtml.xsl 2015-04-13 19:55:37 +0000
3+++ lib/lp/services/webservice/wadl-to-refhtml.xsl 2016-04-24 23:45:09 +0000
4@@ -798,6 +798,12 @@
5 </dd>
6 </xsl:template>
7
8+ <!-- Documentation for the standard DELETE on an entry -->
9+ <xsl:template match="wadl:method[@name='DELETE']" mode="standard-method">
10+ <dt><xsl:value-of select="@name" /></dt>
11+ <dd>Deletes the entry.</dd>
12+ </xsl:template>
13+
14 <!-- Documentation for the custom GET operations of the resource type -->
15 <xsl:template name="custom-GETs">
16 <xsl:variable name="operations" select="wadl:method[
17@@ -1052,7 +1058,7 @@
18 representation of a
19 <a href="#{$resource_type}"><xsl:value-of
20 select="$resource_type"
21- /></a><xsl:if test="contains($id, '-page')">collection</xsl:if>.
22+ /></a><xsl:if test="contains($id, '-page')"> collection</xsl:if>.
23 </p>
24 </xsl:template>
25