@@ -61,6 +61,9 @@ public class SwaggerUiConfigProperties {
61
61
62
62
public static final String FILTER_PROPERTY = "filter" ;
63
63
64
+ public static final String URLS_PROPERTY = "urls" ;
65
+
66
+ public static final String OAUTH2_REDIRECT_URL_PROPERTY = "oauth2RedirectUrl" ;
64
67
/**
65
68
* The path for the Swagger UI pages to load. Will redirect to the springdoc.webjars.prefix property.
66
69
*/
@@ -169,6 +172,10 @@ public class SwaggerUiConfigProperties {
169
172
170
173
private boolean disableSwaggerDefaultUrl ;
171
174
175
+ private boolean displayQueryParams ;
176
+
177
+ private boolean displayQueryParamsWithoutOauth2 ;
178
+
172
179
public void addGroup (String group ) {
173
180
SwaggerUrl swaggerUrl = new SwaggerUrl (group );
174
181
urls .add (swaggerUrl );
@@ -212,7 +219,7 @@ public Map<String, Object> getConfigParameters() {
212
219
SpringDocPropertiesUtils .put ("supportedSubmitMethods" , supportedSubmitMethods .toString (), params );
213
220
SpringDocPropertiesUtils .put ("oauth2RedirectUrl" , oauth2RedirectUrl , params );
214
221
SpringDocPropertiesUtils .put ("url" , url , params );
215
- put ("urls" , urls , params );
222
+ put (URLS_PROPERTY , urls , params );
216
223
SpringDocPropertiesUtils .put ("urls.primaryName" , urlsPrimaryName , params );
217
224
return params ;
218
225
}
@@ -385,6 +392,22 @@ public void setDisableSwaggerDefaultUrl(boolean disableSwaggerDefaultUrl) {
385
392
this .disableSwaggerDefaultUrl = disableSwaggerDefaultUrl ;
386
393
}
387
394
395
+ public boolean isDisplayQueryParams () {
396
+ return displayQueryParams ;
397
+ }
398
+
399
+ public void setDisplayQueryParams (boolean displayQueryParams ) {
400
+ this .displayQueryParams = displayQueryParams ;
401
+ }
402
+
403
+ public boolean isDisplayQueryParamsWithoutOauth2 () {
404
+ return displayQueryParamsWithoutOauth2 ;
405
+ }
406
+
407
+ public void setDisplayQueryParamsWithoutOauth2 (boolean displayQueryParamsWithoutOauth2 ) {
408
+ this .displayQueryParamsWithoutOauth2 = displayQueryParamsWithoutOauth2 ;
409
+ }
410
+
388
411
public boolean isValidUrl (String url ) {
389
412
try {
390
413
new URL (url ).toURI ();
0 commit comments