]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-5250 Display default values in API documentation
authorJean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com>
Tue, 13 May 2014 08:56:26 +0000 (10:56 +0200)
committerJean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com>
Tue, 13 May 2014 08:56:26 +0000 (10:56 +0200)
sonar-server/src/main/hbs/api-documentation/api-documentation-action.hbs

index 0b4315c84ace4c629d75e16a839d590f47cdd86e..d728667dc60979878abdd8cb0af9eecd98673db2 100644 (file)
@@ -18,6 +18,7 @@
     </td>
     <td>
       <p>{{{description}}}</p>
+
       {{#if possibleValues}}
       <p>
       <em>Possible values:</em>
       </ul>
       </p>
       {{/if}}
+
+      {{#if defaultValue}}
+      <p>
+      <em>Default value:</em> <code>{{defaultValue}}</code>
+      </p>
+      {{/if}}
+
       {{#if exampleValue}}
       <p>
       <em>Example value:</em> <code>{{exampleValue}}</code>
@@ -40,4 +48,4 @@
 {{/if}}
 {{#if hasResponseExample}}
 <p><a name="example-key" class="example-response">Example response</a></p>
-{{/if}}
\ No newline at end of file
+{{/if}}