@@ -53,7 +53,7 @@ $base = $this->categories;
53
53
<a href="#<?= $ category ->get_href (); ?> "><?= $ category ->title ; ?> </a>
54
54
<a class="btn-xs pull-right" role="button" data-toggle="collapse"
55
55
href="#collapse-<?= $ category ->get_href (); ?> " aria-expanded="false"
56
- aria-controls="collapseMenu ">
56
+ aria-controls="collapse- <?= $ category -> get_href (); ?> ">
57
57
<span class="glyphicon glyphicon-plus"></span>
58
58
</a>
59
59
</h3>
@@ -91,7 +91,7 @@ $base = $this->categories;
91
91
<a href="#datastructures">Data Structures</a>
92
92
<a class="btn-xs pull-right" role="button" data-toggle="collapse"
93
93
href="#collapse-structures" aria-expanded="false"
94
- aria-controls="collapseMenu ">
94
+ aria-controls="collapse-structures ">
95
95
<span class="glyphicon glyphicon-plus"></span>
96
96
</a>
97
97
</h3>
@@ -138,8 +138,7 @@ $base = $this->categories;
138
138
</h3>
139
139
</div>
140
140
<div class="panel-body">
141
- <a type="button"
142
- class="btn btn-default curl"
141
+ <a class="btn btn-default curl"
143
142
role="button"
144
143
title="cURL command"
145
144
tabindex="0"
@@ -152,7 +151,7 @@ $base = $this->categories;
152
151
</a>
153
152
<p class="lead"><?= $ transition ->description ; ?> </p>
154
153
<?php if (!empty ($ transition ->requests )): ?>
155
- <?php foreach ($ transition ->requests as $ request ): ?>
154
+ <?php foreach ($ transition ->requests as $ key => $ request ): ?>
156
155
<div class="panel panel-default">
157
156
<div class="panel-heading">
158
157
<h4 class="request panel-title"
@@ -163,8 +162,9 @@ $base = $this->categories;
163
162
</h4>
164
163
</div>
165
164
166
- <div class="collapse in request-panel panel-body"
165
+ <div class="collapse <?php if ( $ key < 1 ): ?> in <?php endif ; ?> request-panel panel-body"
167
166
id="request-coll-<?= $ transition ->get_href (); ?> ">
167
+ <?= $ request ->description ;?>
168
168
<?php if ($ transition ->url_variables !== []): ?>
169
169
<h5>Example URI</h5>
170
170
<span class="base-url"><?= $ this ->base_data ['HOST ' ]; ?> </span>
@@ -219,7 +219,7 @@ $base = $this->categories;
219
219
<?php endforeach ; ?>
220
220
<?php endif ; ?>
221
221
<?php if (isset ($ transition ->responses )): ?>
222
- <?php foreach ($ transition ->responses as $ response ): ?>
222
+ <?php foreach ($ transition ->responses as $ key => $ response ): ?>
223
223
<div class="panel panel-default">
224
224
<div class="panel-heading">
225
225
<h4 class="panel-title response"
@@ -231,8 +231,9 @@ $base = $this->categories;
231
231
class="glyphicon indicator glyphicon-menu-down pull-right"></span>
232
232
</h4>
233
233
</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"
235
235
id="request-coll--<?= $ transition ->get_href () . '- ' . $ response ->statuscode ; ?> ">
236
+ <?= $ response ->description ;?>
236
237
<?php if ($ response ->headers !== []): ?>
237
238
<h5>Headers</h5>
238
239
<ul class="headers list-unstyled">
0 commit comments