Sha256: db8826a6311e04b4070a34a77b97551604b4f235e7f70bf1efdf2f553239b4c3

Contents?: true

Size: 791 Bytes

Versions: 12

Compression:

Stored size: 791 Bytes

Contents

<% if responses.any? %>
<h4 id="<%= id %>">Responses</h4>
<table>
<thead>
<tr><th>Status</th><th>Description</th><th>Schema</th></tr>
</thead>
<tbody>
<% responses.each do |key,response| %>
<tr>
<td><%= key %></td>
<td>
<%= render_markdown(response.description) %>
<% if response.content['application/json']
if response.content['application/json']["example"]
  request_body = json_prettyprint(response.content['application/json']["example"])
else
  request_body = json_output(response.content['application/json'].schema)
end
end %>
<% if !request_body.blank? %>
<pre><code><%= request_body %></code></pre>
<% end %>
</td>
<td>
<%= if response.content['application/json']
  get_schema_link(response.content['application/json'].schema)
end %>
</td>
</tr>
<% end %>
</tbody>
</table>
<% end %>

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
govuk_tech_docs-4.1.1 lib/govuk_tech_docs/api_reference/templates/responses.html.erb
govuk_tech_docs-4.1.0 lib/govuk_tech_docs/api_reference/templates/responses.html.erb
govuk_tech_docs-4.0.0 lib/govuk_tech_docs/api_reference/templates/responses.html.erb
govuk_tech_docs-3.5.0 lib/govuk_tech_docs/api_reference/templates/responses.html.erb
govuk_tech_docs-3.4.5 lib/govuk_tech_docs/api_reference/templates/responses.html.erb
govuk_tech_docs-3.4.0 lib/govuk_tech_docs/api_reference/templates/responses.html.erb
govuk_tech_docs-3.3.1 lib/govuk_tech_docs/api_reference/templates/responses.html.erb
govuk_tech_docs-3.3.0 lib/govuk_tech_docs/api_reference/templates/responses.html.erb
govuk_tech_docs-3.2.1 lib/govuk_tech_docs/api_reference/templates/responses.html.erb
govuk_tech_docs-3.2.0 lib/govuk_tech_docs/api_reference/templates/responses.html.erb
govuk_tech_docs-3.1.0 lib/govuk_tech_docs/api_reference/templates/responses.html.erb
govuk_tech_docs-3.0.1 lib/govuk_tech_docs/api_reference/templates/responses.html.erb