{% block head_metas %} {% endblock %} {% block title %} {% if title %}{{ title }} - {% endif %}API Platform {% endblock %} {% set active_ui = app.request.query.get('ui', 'swagger_ui') %} {% set is_scalar = (scalarEnabled and not swaggerUiEnabled and not reDocEnabled) or (scalarEnabled and 'scalar' == active_ui) %} {% block stylesheet %} {% if not is_scalar %} {% endif %} {% endblock %} {% set oauth_data = {'oauth': swagger_data.oauth|merge({'redirectUrl' : absolute_url(asset('bundles/apiplatform/swagger-ui/oauth2-redirect.html', assetPackage)) })} %} {% block head_javascript %} {# json_encode(65) is for JSON_UNESCAPED_SLASHES|JSON_HEX_TAG to avoid JS XSS #} {% endblock %} {% if not is_scalar %} {% block header %}
{% endblock %} {% if showWebby %}
{% endif %} {% endif %}
{% if not is_scalar %}
Available formats: {% for format in formats|keys %} {{ format }} {% endfor %}
Other API docs: {% if swaggerUiEnabled and active_ui != 'swagger_ui' %}Swagger UI{% endif %} {% if reDocEnabled and active_ui != 're_doc' %}ReDoc{% endif %} {% if scalarEnabled and active_ui != 'scalar' %}Scalar{% endif %} {% if not graphQlEnabled or graphiQlEnabled %}GraphiQL{% endif %}
{% endif %} {% block javascript %} {% if is_scalar %} {% elseif (reDocEnabled and not swaggerUiEnabled) or (reDocEnabled and 're_doc' == active_ui) %} {% else %} {% endif %} {% if not is_scalar %} {% endif %} {% endblock %}