Skip to content

Commit d1f5fc3

Browse files
authored
Swagger ui config patch (#1168)
1 parent 9a85ce1 commit d1f5fc3

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

core/configuration.md

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,13 @@ api_platform:
207207
# Whether the API key should be a query parameter or a header.
208208
# type: 'query' or 'header'
209209

210+
swagger_ui_extra_configuration:
211+
# Controls the default expansion setting for the operations and tags. It can be 'list' (expands only the tags), 'full' (expands the tags and operations) or 'none' (expands nothing).
212+
docExpansion: list
213+
# If set, enables filtering. The top bar will show an edit box that you can use to filter the tagged operations that are shown.
214+
filter: false
215+
# You can use any other configuration parameters too.
216+
210217
openapi:
211218
# The contact information for the exposed API.
212219
contact:
@@ -223,8 +230,15 @@ api_platform:
223230
# The license name used for the API.
224231
name:
225232
# URL to the license used for the API. MUST be in the format of a URL.
226-
url:
227-
233+
url:
234+
235+
swagger_ui_extra_configuration:
236+
# Controls the default expansion setting for the operations and tags. It can be 'list' (expands only the tags), 'full' (expands the tags and operations) or 'none' (expands nothing).
237+
docExpansion: list
238+
# If set, enables filtering. The top bar will show an edit box that you can use to filter the tagged operations that are shown.
239+
filter: false
240+
# You can use any other configuration parameters too.
241+
228242
http_cache:
229243
# To make all responses public by default.
230244
public: ~

0 commit comments

Comments
 (0)