File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed
modules/swagger-models/src/main/java/com/wordnik/swagger/models Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -105,6 +105,25 @@ public void setOptions(Operation options) {
105105 this .options = options ;
106106 }
107107
108+ @ JsonIgnore
109+ public List <Operation > getOperations () {
110+ List <Operation > allOperations = new ArrayList <Operation >();
111+ if (get != null )
112+ allOperations .add (get );
113+ if (put != null )
114+ allOperations .add (put );
115+ if (post != null )
116+ allOperations .add (post );
117+ if (delete != null )
118+ allOperations .add (delete );
119+ if (patch != null )
120+ allOperations .add (patch );
121+ if (options != null )
122+ allOperations .add (options );
123+
124+ return allOperations ;
125+ }
126+
108127 public List <Parameter > getParameters () {
109128 return parameters ;
110129 }
You can’t perform that action at this time.
0 commit comments