mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-02-02 15:51:48 +03:00
Merge pull request #486 from JeroenDeDauw/patch-1
Only show request format dropdown when there are multiple formats
This commit is contained in:
commit
ce54848c31
@ -24,11 +24,13 @@
|
|||||||
{% if 'json' in bodyFormats %}<option value="json"{{ defaultBodyFormat == 'json' ? ' selected' : '' }}>JSON</option>{% endif %}
|
{% if 'json' in bodyFormats %}<option value="json"{{ defaultBodyFormat == 'json' ? ' selected' : '' }}>JSON</option>{% endif %}
|
||||||
</select>
|
</select>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{% if bodyFormats|length > 0 %}
|
||||||
request format:
|
request format:
|
||||||
<select id="request_format">
|
<select id="request_format">
|
||||||
{% for format, header in requestFormats %}
|
{% for format, header in requestFormats %}
|
||||||
<option value="{{ header }}"{{ defaultRequestFormat == format ? ' selected' : '' }}>{{ format }}</option>
|
<option value="{{ header }}"{{ defaultRequestFormat == format ? ' selected' : '' }}>{{ format }}</option>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
{% endif %}
|
||||||
</select>
|
</select>
|
||||||
{% if authentication %}
|
{% if authentication %}
|
||||||
{% if authentication.delivery == 'http' and authentication.type == 'basic' %}
|
{% if authentication.delivery == 'http' and authentication.type == 'basic' %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user