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
=== modified file 'lib/lp/services/webservice/wadl-to-refhtml.xsl'
--- lib/lp/services/webservice/wadl-to-refhtml.xsl 2015-04-13 19:55:37 +0000
+++ lib/lp/services/webservice/wadl-to-refhtml.xsl 2016-04-24 23:45:09 +0000
@@ -798,6 +798,12 @@
798 </dd>798 </dd>
799 </xsl:template>799 </xsl:template>
800800
801 <!-- Documentation for the standard DELETE on an entry -->
802 <xsl:template match="wadl:method[@name='DELETE']" mode="standard-method">
803 <dt><xsl:value-of select="@name" /></dt>
804 <dd>Deletes the entry.</dd>
805 </xsl:template>
806
801 <!-- Documentation for the custom GET operations of the resource type -->807 <!-- Documentation for the custom GET operations of the resource type -->
802 <xsl:template name="custom-GETs">808 <xsl:template name="custom-GETs">
803 <xsl:variable name="operations" select="wadl:method[809 <xsl:variable name="operations" select="wadl:method[
@@ -1052,7 +1058,7 @@
1052 representation of a1058 representation of a
1053 <a href="#{$resource_type}"><xsl:value-of1059 <a href="#{$resource_type}"><xsl:value-of
1054 select="$resource_type"1060 select="$resource_type"
1055 /></a><xsl:if test="contains($id, '-page')">collection</xsl:if>.1061 /></a><xsl:if test="contains($id, '-page')"> collection</xsl:if>.
1056 </p>1062 </p>
1057 </xsl:template>1063 </xsl:template>
10581064