Merge pull request #486 from JeroenDeDauw/patch-1

Only show request format dropdown when there are multiple formats
This commit is contained in:
William Durand 2014-08-21 10:40:20 +02:00
commit ce54848c31

View File

@ -24,11 +24,13 @@
{% if 'json' in bodyFormats %}<option value="json"{{ defaultBodyFormat == 'json' ? ' selected' : '' }}>JSON</option>{% endif %}
</select>
{% endif %}
{% if bodyFormats|length > 0 %}
request format:
<select id="request_format">
{% for format, header in requestFormats %}
<option value="{{ header }}"{{ defaultRequestFormat == format ? ' selected' : '' }}>{{ format }}</option>
{% endfor %}
{% endif %}
</select>
{% if authentication %}
{% if authentication.delivery == 'http' and authentication.type == 'basic' %}