Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added headers in operation response docs #1117

Merged
merged 1 commit into from
Jan 14, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,34 @@ <h3>Response: <span data-bind="text: response.statusCode"></span></h3>
<p data-bind="markdown: response.description"></p>
<!-- /ko -->

<!-- ko if: response.headers && response.headers.length > 0 -->
<h4>Response headers</h4>

<div role="table" class="table-preset table-preset-headers">
<div class="d-contents" role="rowgroup">
<div class="d-contents" role="row">
<div role="columnheader" class="table-preset-head text-truncate">Name</div>
<div role="columnheader" class="table-preset-head text-truncate">Required</div>
<div role="columnheader" class="table-preset-head text-truncate">Type</div>
<div role="columnheader" class="table-preset-head">Description</div>
</div>
</div>
<div class="d-contents" role="rowgroup">
<!-- ko foreach: { data: response.headers, as: 'header' } -->
<div class="d-contents" role="row">
<div role="cell" class="text-truncate monospace"
data-bind="text: header.name, attr: { title: header.name }"></div>
<div role="cell" class="text-truncate" data-bind="text: header.required"></div>
<div role="cell" class="text-truncate monospace"
data-bind="text: header.type, attr: { title: header.type }"></div>
<div role="cell" data-bind="markdown: header.description"></div>
</div>
<!-- /ko -->
</div>
</div>

<!-- /ko -->

<!-- ko if: response.meaningfulRepresentations().length > 0 -->
<div class="tabs" data-bind="foreach: { data: meaningfulRepresentations(), as: 'representation' }">
<input class="tab-radio" type="radio"
Expand Down