@@ -53,7 +53,7 @@ $base = $this->categories;
5353 <a href="#<?= $ category ->get_href (); ?> "><?= $ category ->title ; ?> </a>
5454 <a class="btn-xs pull-right" role="button" data-toggle="collapse"
5555 href="#collapse-<?= $ category ->get_href (); ?> " aria-expanded="false"
56- aria-controls="collapseMenu ">
56+ aria-controls="collapse- <?= $ category -> get_href (); ?> ">
5757 <span class="glyphicon glyphicon-plus"></span>
5858 </a>
5959 </h3>
@@ -91,7 +91,7 @@ $base = $this->categories;
9191 <a href="#datastructures">Data Structures</a>
9292 <a class="btn-xs pull-right" role="button" data-toggle="collapse"
9393 href="#collapse-structures" aria-expanded="false"
94- aria-controls="collapseMenu ">
94+ aria-controls="collapse-structures ">
9595 <span class="glyphicon glyphicon-plus"></span>
9696 </a>
9797 </h3>
@@ -138,8 +138,7 @@ $base = $this->categories;
138138 </h3>
139139 </div>
140140 <div class="panel-body">
141- <a type="button"
142- class="btn btn-default curl"
141+ <a class="btn btn-default curl"
143142 role="button"
144143 title="cURL command"
145144 tabindex="0"
@@ -152,7 +151,7 @@ $base = $this->categories;
152151 </a>
153152 <p class="lead"><?= $ transition ->description ; ?> </p>
154153 <?php if (!empty ($ transition ->requests )): ?>
155- <?php foreach ($ transition ->requests as $ request ): ?>
154+ <?php foreach ($ transition ->requests as $ key => $ request ): ?>
156155 <div class="panel panel-default">
157156 <div class="panel-heading">
158157 <h4 class="request panel-title"
@@ -163,8 +162,9 @@ $base = $this->categories;
163162 </h4>
164163 </div>
165164
166- <div class="collapse in request-panel panel-body"
165+ <div class="collapse <?php if ( $ key < 1 ): ?> in <?php endif ; ?> request-panel panel-body"
167166 id="request-coll-<?= $ transition ->get_href (); ?> ">
167+ <?= $ request ->description ;?>
168168 <?php if ($ transition ->url_variables !== []): ?>
169169 <h5>Example URI</h5>
170170 <span class="base-url"><?= $ this ->base_data ['HOST ' ]; ?> </span>
@@ -219,7 +219,7 @@ $base = $this->categories;
219219 <?php endforeach ; ?>
220220 <?php endif ; ?>
221221 <?php if (isset ($ transition ->responses )): ?>
222- <?php foreach ($ transition ->responses as $ response ): ?>
222+ <?php foreach ($ transition ->responses as $ key => $ response ): ?>
223223 <div class="panel panel-default">
224224 <div class="panel-heading">
225225 <h4 class="panel-title response"
@@ -231,8 +231,9 @@ $base = $this->categories;
231231 class="glyphicon indicator glyphicon-menu-down pull-right"></span>
232232 </h4>
233233 </div>
234- <div class="panel-body collapse in response-panel"
234+ <div class="panel-body collapse <?php if ( $ key < 1 ): ?> in <?php endif ; ?> response-panel"
235235 id="request-coll--<?= $ transition ->get_href () . '- ' . $ response ->statuscode ; ?> ">
236+ <?= $ response ->description ;?>
236237 <?php if ($ response ->headers !== []): ?>
237238 <h5>Headers</h5>
238239 <ul class="headers list-unstyled">
0 commit comments