mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-02-02 15:51:48 +03:00
Merge pull request #381 from mvdbos/master
Only render sandbox config if the sandbox is enabled
This commit is contained in:
commit
a88e7d8278
@ -15,27 +15,29 @@
|
|||||||
<body>
|
<body>
|
||||||
<div id="header">
|
<div id="header">
|
||||||
<a href="{{ path('nelmio_api_doc_index') }}"><h1>{{ apiName }}</h1></a>
|
<a href="{{ path('nelmio_api_doc_index') }}"><h1>{{ apiName }}</h1></a>
|
||||||
<div id="sandbox_configuration">
|
{% if enableSandbox %}
|
||||||
body format:
|
<div id="sandbox_configuration">
|
||||||
<select id="body_format">
|
body format:
|
||||||
<option value="x-www-form-urlencoded"{{ bodyFormat == 'form' ? ' selected' : '' }}>Form Data</option>
|
<select id="body_format">
|
||||||
<option value="json"{{ bodyFormat == 'json' ? ' selected' : '' }}>JSON</option>
|
<option value="x-www-form-urlencoded"{{ bodyFormat == 'form' ? ' selected' : '' }}>Form Data</option>
|
||||||
</select>
|
<option value="json"{{ bodyFormat == 'json' ? ' selected' : '' }}>JSON</option>
|
||||||
request format:
|
</select>
|
||||||
<select id="request_format">
|
request format:
|
||||||
<option value="json"{{ defaultRequestFormat == 'json' ? ' selected' : '' }}>JSON</option>
|
<select id="request_format">
|
||||||
<option value="xml"{{ defaultRequestFormat == 'xml' ? ' selected' : '' }}>XML</option>
|
<option value="json"{{ defaultRequestFormat == 'json' ? ' selected' : '' }}>JSON</option>
|
||||||
</select>
|
<option value="xml"{{ defaultRequestFormat == 'xml' ? ' selected' : '' }}>XML</option>
|
||||||
{% if authentication and authentication.delivery in ['query', 'http_basic', 'header'] %}
|
</select>
|
||||||
api key: <input type="text" id="api_key" value=""/>
|
{% if authentication and authentication.delivery in ['query', 'http_basic', 'header'] %}
|
||||||
{% endif %}
|
api key: <input type="text" id="api_key" value=""/>
|
||||||
{% if authentication and authentication.delivery in ['http_basic'] %}
|
{% endif %}
|
||||||
api pass: <input type="text" id="api_pass" value=""/>
|
{% if authentication and authentication.delivery in ['http_basic'] %}
|
||||||
{% endif %}
|
api pass: <input type="text" id="api_pass" value=""/>
|
||||||
{% if authentication and authentication.custom_endpoint %}
|
{% endif %}
|
||||||
api endpoint: <input type="text" id="api_endpoint" value=""/>
|
{% if authentication and authentication.custom_endpoint %}
|
||||||
{% endif %}
|
api endpoint: <input type="text" id="api_endpoint" value=""/>
|
||||||
</div>
|
{% endif %}
|
||||||
|
</div>
|
||||||
|
{% endif %}
|
||||||
<br style="clear: both;" />
|
<br style="clear: both;" />
|
||||||
</div>
|
</div>
|
||||||
{% include motdTemplate %}
|
{% include motdTemplate %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user