@@ -21,6 +21,11 @@ public class SwaggerUiConfigProperties {
21
21
// could be used to filter the tagged operations that are shown.
22
22
private String filter ;
23
23
24
+ // Apply a sort to the operation list of each API
25
+ private String operationsSorter ;
26
+ // Apply a sort to the tag list of each API
27
+ private String tagsSorter ;
28
+
24
29
// Enables or disables deep linking for tags and operations.
25
30
private Boolean deepLinking ;
26
31
// Controls the display of operationId in operations list.
@@ -57,6 +62,8 @@ public Map<String, String> getConfigParameters() {
57
62
put ("maxDisplayedTags" , maxDisplayedTags , params );
58
63
put ("showExtensions" , showExtensions , params );
59
64
put ("showCommonExtensions" , showCommonExtensions , params );
65
+ put ("operationsSorter" , operationsSorter , params );
66
+ put ("tagsSorter" , tagsSorter , params );
60
67
return params ;
61
68
}
62
69
@@ -173,4 +180,20 @@ public Boolean getShowCommonExtensions() {
173
180
public void setShowCommonExtensions (Boolean showCommonExtensions ) {
174
181
this .showCommonExtensions = showCommonExtensions ;
175
182
}
176
- }
183
+
184
+ public String getOperationsSorter () {
185
+ return operationsSorter ;
186
+ }
187
+
188
+ public void setOperationsSorter (String operationsSorter ) {
189
+ this .operationsSorter = operationsSorter ;
190
+ }
191
+
192
+ public String getTagsSorter () {
193
+ return tagsSorter ;
194
+ }
195
+
196
+ public void setTagsSorter (String tagsSorter ) {
197
+ this .tagsSorter = tagsSorter ;
198
+ }
199
+ }
0 commit comments