Merge lp:~cjwatson/launchpad/snap-api-doc-links into lp:launchpad

Proposed by Colin Watson on 2018-08-10
Status: Merged
Merged at revision: 18750
Proposed branch: lp:~cjwatson/launchpad/snap-api-doc-links
Merge into: lp:launchpad
Diff against target: 32 lines (+22/-0)
1 file modified
lib/lp/services/webservice/wadl-to-refhtml.xsl (+22/-0)
To merge this branch: bzr merge lp:~cjwatson/launchpad/snap-api-doc-links
Reviewer Review Type Date Requested Status
William Grant code 2018-08-10 Approve on 2018-08-14
Review via email: mp+352885@code.launchpad.net

Commit message

Document API URLs for snap, snap_build, and snap_build_request.

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 2017-07-31 11:45:32 +0000
3+++ lib/lp/services/webservice/wadl-to-refhtml.xsl 2018-08-10 10:18:49 +0000
4@@ -509,6 +509,28 @@
5 <xsl:text>/messages/</xsl:text>
6 <var >&lt;message.index&gt;</var>
7 </xsl:when>
8+ <xsl:when test="@id = 'snap'">
9+ <xsl:text>/~</xsl:text>
10+ <var>&lt;person.name&gt;</var>
11+ <xsl:text>/+snap/</xsl:text>
12+ <var>&lt;snap.name&gt;</var>
13+ </xsl:when>
14+ <xsl:when test="@id = 'snap_build'">
15+ <xsl:text>/~</xsl:text>
16+ <var>&lt;person.name&gt;</var>
17+ <xsl:text>/+snap/</xsl:text>
18+ <var>&lt;snap.name&gt;</var>
19+ <xsl:text>/+build/</xsl:text>
20+ <var>&lt;id&gt;</var>
21+ </xsl:when>
22+ <xsl:when test="@id = 'snap_build_request'">
23+ <xsl:text>/~</xsl:text>
24+ <var>&lt;person.name&gt;</var>
25+ <xsl:text>/+snap/</xsl:text>
26+ <var>&lt;snap.name&gt;</var>
27+ <xsl:text>/+build-request/</xsl:text>
28+ <var>&lt;id&gt;</var>
29+ </xsl:when>
30 <xsl:when test="@id = 'source_package'">
31 <xsl:text>/</xsl:text>
32 <var>&lt;distribution.name&gt;</var>