File tree Expand file tree Collapse file tree 7 files changed +56
-0
lines changed
modules/swagger-codegen/src/main/resources/Java/libraries/rest-assured
samples/client/petstore/java/rest-assured/src/main/java/io/swagger/client/api Expand file tree Collapse file tree 7 files changed +56
-0
lines changed Original file line number Diff line number Diff line change @@ -73,6 +73,14 @@ public class {{classname}} {
73
73
return this;
74
74
}
75
75
76
+ /**
77
+ * Customise request specification
78
+ */
79
+ public { {classname} } reqSpec(Consumer<RequestSpecBuilder > consumer) {
80
+ consumer.accept(reqSpec);
81
+ return this;
82
+ }
83
+
76
84
{ {#operations} }
77
85
{ {#operation} }
78
86
/**
Original file line number Diff line number Diff line change @@ -74,6 +74,14 @@ public AnotherFakeApi setJSON(JSON json) {
74
74
return this ;
75
75
}
76
76
77
+ /**
78
+ * Customise request specification
79
+ */
80
+ public AnotherFakeApi reqSpec (Consumer <RequestSpecBuilder > consumer ) {
81
+ consumer .accept (reqSpec );
82
+ return this ;
83
+ }
84
+
77
85
/**
78
86
* To test special tags
79
87
* To test special tags
Original file line number Diff line number Diff line change @@ -110,6 +110,14 @@ public FakeApi setJSON(JSON json) {
110
110
return this ;
111
111
}
112
112
113
+ /**
114
+ * Customise request specification
115
+ */
116
+ public FakeApi reqSpec (Consumer <RequestSpecBuilder > consumer ) {
117
+ consumer .accept (reqSpec );
118
+ return this ;
119
+ }
120
+
113
121
/**
114
122
*
115
123
* Test serialization of outer boolean types
Original file line number Diff line number Diff line change @@ -74,6 +74,14 @@ public FakeClassnameTags123Api setJSON(JSON json) {
74
74
return this ;
75
75
}
76
76
77
+ /**
78
+ * Customise request specification
79
+ */
80
+ public FakeClassnameTags123Api reqSpec (Consumer <RequestSpecBuilder > consumer ) {
81
+ consumer .accept (reqSpec );
82
+ return this ;
83
+ }
84
+
77
85
/**
78
86
* To test class name in snake case
79
87
*
Original file line number Diff line number Diff line change @@ -105,6 +105,14 @@ public PetApi setJSON(JSON json) {
105
105
return this ;
106
106
}
107
107
108
+ /**
109
+ * Customise request specification
110
+ */
111
+ public PetApi reqSpec (Consumer <RequestSpecBuilder > consumer ) {
112
+ consumer .accept (reqSpec );
113
+ return this ;
114
+ }
115
+
108
116
/**
109
117
* Add a new pet to the store
110
118
*
Original file line number Diff line number Diff line change @@ -86,6 +86,14 @@ public StoreApi setJSON(JSON json) {
86
86
return this ;
87
87
}
88
88
89
+ /**
90
+ * Customise request specification
91
+ */
92
+ public StoreApi reqSpec (Consumer <RequestSpecBuilder > consumer ) {
93
+ consumer .accept (reqSpec );
94
+ return this ;
95
+ }
96
+
89
97
/**
90
98
* Delete purchase order by ID
91
99
* For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors
Original file line number Diff line number Diff line change @@ -102,6 +102,14 @@ public UserApi setJSON(JSON json) {
102
102
return this ;
103
103
}
104
104
105
+ /**
106
+ * Customise request specification
107
+ */
108
+ public UserApi reqSpec (Consumer <RequestSpecBuilder > consumer ) {
109
+ consumer .accept (reqSpec );
110
+ return this ;
111
+ }
112
+
105
113
/**
106
114
* Create user
107
115
* This can only be done by the logged in user.
You can’t perform that action at this time.
0 commit comments