← Back to team overview

launchpad-reviewers team mailing list archive

[Merge] ~pelpsi/launchpad:rock-api-doc-fix-entry-points into launchpad:master

 

Simone Pelosi has proposed merging ~pelpsi/launchpad:rock-api-doc-fix-entry-points into launchpad:master.

Commit message:
Fix Rock API doc

These changes fix the URL entry point displayed on the generated
documentation.

Requested reviews:
  Launchpad code reviewers (launchpad-reviewers)

For more details, see:
https://code.launchpad.net/~pelpsi/launchpad/+git/launchpad/+merge/473627
-- 
Your team Launchpad code reviewers is requested to review the proposed merge of ~pelpsi/launchpad:rock-api-doc-fix-entry-points into launchpad:master.
diff --git a/lib/lp/services/webservice/wadl-to-refhtml.xsl b/lib/lp/services/webservice/wadl-to-refhtml.xsl
index 4ddccb9..ad918b1 100644
--- a/lib/lp/services/webservice/wadl-to-refhtml.xsl
+++ b/lib/lp/services/webservice/wadl-to-refhtml.xsl
@@ -314,6 +314,34 @@
                 <xsl:text>/+build-request/</xsl:text>
                 <var>&lt;id&gt;</var>
             </xsl:when>
+            <xsl:when test="@id = 'rock_recipe'">
+                <xsl:text>/~</xsl:text>
+                <var>&lt;person.name&gt;</var>
+                <xsl:text>/</xsl:text>
+                <var>&lt;project.name&gt;</var>
+                <xsl:text>/+rock/</xsl:text>
+                <var>&lt;recipe.name&gt;</var>
+            </xsl:when>
+            <xsl:when test="@id = 'rock_recipe_build'">
+                <xsl:text>/~</xsl:text>
+                <var>&lt;person.name&gt;</var>
+                <xsl:text>/</xsl:text>
+                <var>&lt;project.name&gt;</var>
+                <xsl:text>/+rock/</xsl:text>
+                <var>&lt;recipe.name&gt;</var>
+                <xsl:text>/+build/</xsl:text>
+                <var>&lt;id&gt;</var>
+            </xsl:when>
+            <xsl:when test="@id = 'rock_recipe_build_request'">
+                <xsl:text>/~</xsl:text>
+                <var>&lt;person.name&gt;</var>
+                <xsl:text>/</xsl:text>
+                <var>&lt;project.name&gt;</var>
+                <xsl:text>/+rock/</xsl:text>
+                <var>&lt;recipe.name&gt;</var>
+                <xsl:text>/+build-request/</xsl:text>
+                <var>&lt;id&gt;</var>
+            </xsl:when>
             <xsl:when test="@id = 'cve'">
                 <xsl:text>/bugs/cve/</xsl:text>
                 <var>&lt;sequence&gt;</var>
@@ -810,6 +838,9 @@
             <xsl:when test="@id = 'snaps'">
                 <xsl:text>/+snaps</xsl:text>
             </xsl:when>
+            <xsl:when test="@id = 'rock_recipes'">
+                <xsl:text>/+rock-recipes</xsl:text>
+            </xsl:when>
             <xsl:otherwise>
                 <xsl:text>/</xsl:text><xsl:value-of select="@id" />
             </xsl:otherwise>