Skip to content

Commit 85959cf

Browse files
committed
Add ReDoc documentation
1 parent 40886ab commit 85959cf

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

app/config/admin/config.yml

+1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ api_platform:
2222
enable_entrypoint: false
2323
enable_swagger: true
2424
enable_swagger_ui: true
25+
enable_re_doc: true
2526
docs_formats:
2627
# This is used to allow using the Swagger UI in HTML presentation
2728
html: [ 'text/html' ]

src/PrestaShopBundle/Resources/views/Admin/Configure/AdvancedParameters/AdminAPI/index.html.twig

+7-2
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,17 @@
3232
<ul>
3333
<li>
3434
<a target="_blank" href="{{ path('api_doc', {_format: 'html'}) }}">
35-
{{ 'API Documentation (HTML format)'|trans({}, 'Admin.Advparameters.Feature') }}
35+
{{ 'API Documentation (Swagger)'|trans({}, 'Admin.Advparameters.Feature') }}
36+
</a>
37+
</li>
38+
<li>
39+
<a target="_blank" href="{{ path('api_doc', {_format: 'html', ui: 're_doc'}) }}">
40+
{{ 'API Documentation (ReDoc)'|trans({}, 'Admin.Advparameters.Feature') }}
3641
</a>
3742
</li>
3843
<li>
3944
<a target="_blank" href="{{ path('api_doc', {_format: 'json'}) }}">
40-
{{ 'API Documentation (JSON format)'|trans({}, 'Admin.Advparameters.Feature') }}
45+
{{ 'API Documentation (JSON)'|trans({}, 'Admin.Advparameters.Feature') }}
4146
</a>
4247
</li>
4348
</ul>

0 commit comments

Comments
 (0)