@@ -111,13 +111,12 @@ void listJobExecutions() throws Exception {
111
111
get ("/jobs/executions" )
112
112
.queryParam ("page" , "0" )
113
113
.queryParam ("size" , "10" ))
114
- .andDo (print ())
115
114
.andExpect (status ().isOk ()).andDo (this .documentationHandler .document (
116
115
queryParameters (
117
- parameterWithName ("page" )
118
- .description ("The zero-based page number (optional) " ),
119
- parameterWithName ("size" )
120
- .description ("The requested page size (optional) " )),
116
+ parameterWithName ("page" ). optional ()
117
+ .description ("The zero-based page number" ),
118
+ parameterWithName ("size" ). optional ()
119
+ .description ("The requested page size" )),
121
120
responseFields (
122
121
subsectionWithPath ("_embedded.jobExecutionResourceList" )
123
122
.description ("Contains a collection of Job Executions/" ),
@@ -132,13 +131,12 @@ void listThinJobExecutions() throws Exception {
132
131
get ("/jobs/thinexecutions" )
133
132
.queryParam ("page" , "0" )
134
133
.queryParam ("size" , "10" ))
135
- .andDo (print ())
136
134
.andExpect (status ().isOk ()).andDo (this .documentationHandler .document (
137
135
queryParameters (
138
- parameterWithName ("page" )
139
- .description ("The zero-based page number (optional) " ),
140
- parameterWithName ("size" )
141
- .description ("The requested page size (optional) " )),
136
+ parameterWithName ("page" ). optional ()
137
+ .description ("The zero-based page number" ),
138
+ parameterWithName ("size" ). optional ()
139
+ .description ("The requested page size" )),
142
140
responseFields (
143
141
subsectionWithPath ("_embedded.jobExecutionThinResourceList" )
144
142
.description ("Contains a collection of Job Executions without step executions included/" ),
@@ -154,13 +152,12 @@ void listThinJobExecutionsByJobInstanceId() throws Exception {
154
152
.queryParam ("page" , "0" )
155
153
.queryParam ("size" , "10" )
156
154
.queryParam ("jobInstanceId" , "1" ))
157
- .andDo (print ())
158
155
.andExpect (status ().isOk ()).andDo (this .documentationHandler .document (
159
156
queryParameters (
160
- parameterWithName ("page" )
161
- .description ("The zero-based page number (optional) " ),
162
- parameterWithName ("size" )
163
- .description ("The requested page size (optional) " ),
157
+ parameterWithName ("page" ). optional ()
158
+ .description ("The zero-based page number" ),
159
+ parameterWithName ("size" ). optional ()
160
+ .description ("The requested page size" ),
164
161
parameterWithName ("jobInstanceId" )
165
162
.description ("Filter result by the job instance id" )),
166
163
responseFields (
@@ -178,13 +175,12 @@ void listThinJobExecutionsByTaskExecutionId() throws Exception {
178
175
.queryParam ("page" , "0" )
179
176
.queryParam ("size" , "10" )
180
177
.queryParam ("taskExecutionId" , "1" ))
181
- .andDo (print ())
182
178
.andExpect (status ().isOk ()).andDo (this .documentationHandler .document (
183
179
queryParameters (
184
- parameterWithName ("page" )
185
- .description ("The zero-based page number (optional) " ),
186
- parameterWithName ("size" )
187
- .description ("The requested page size (optional) " ),
180
+ parameterWithName ("page" ). optional ()
181
+ .description ("The zero-based page number" ),
182
+ parameterWithName ("size" ). optional ()
183
+ .description ("The requested page size" ),
188
184
parameterWithName ("taskExecutionId" )
189
185
.description ("Filter result by the task execution id" )),
190
186
responseFields (
@@ -203,13 +199,12 @@ void listThinJobExecutionsByDate() throws Exception {
203
199
.queryParam ("size" , "10" )
204
200
.queryParam ("fromDate" , "2000-09-24T17:00:45,000" )
205
201
.queryParam ("toDate" , "2050-09-24T18:00:45,000" ))
206
- .andDo (print ())
207
202
.andExpect (status ().isOk ()).andDo (this .documentationHandler .document (
208
203
queryParameters (
209
- parameterWithName ("page" )
210
- .description ("The zero-based page number (optional) " ),
211
- parameterWithName ("size" )
212
- .description ("The requested page size (optional) " ),
204
+ parameterWithName ("page" ). optional ()
205
+ .description ("The zero-based page number" ),
206
+ parameterWithName ("size" ). optional ()
207
+ .description ("The requested page size" ),
213
208
parameterWithName ("fromDate" )
214
209
.description ("Filter result from a starting date in the format 'yyyy-MM-dd'T'HH:mm:ss,SSS'" ),
215
210
parameterWithName ("toDate" )
@@ -229,13 +224,12 @@ void listJobExecutionsByName() throws Exception {
229
224
.queryParam ("name" , JOB_NAME )
230
225
.queryParam ("page" , "0" )
231
226
.queryParam ("size" , "10" ))
232
- .andDo (print ())
233
227
.andExpect (status ().isOk ()).andDo (this .documentationHandler .document (
234
228
queryParameters (
235
- parameterWithName ("page" )
236
- .description ("The zero-based page number (optional) " ),
237
- parameterWithName ("size" )
238
- .description ("The requested page size (optional) " ),
229
+ parameterWithName ("page" ). optional ()
230
+ .description ("The zero-based page number" ),
231
+ parameterWithName ("size" ). optional ()
232
+ .description ("The requested page size" ),
239
233
parameterWithName ("name" )
240
234
.description ("The name associated with the job execution" )),
241
235
responseFields (
@@ -253,13 +247,12 @@ void listThinJobExecutionsByName() throws Exception {
253
247
.queryParam ("name" , JOB_NAME )
254
248
.queryParam ("page" , "0" )
255
249
.queryParam ("size" , "10" ))
256
- .andDo (print ())
257
250
.andExpect (status ().isOk ()).andDo (this .documentationHandler .document (
258
251
queryParameters (
259
- parameterWithName ("page" )
260
- .description ("The zero-based page number (optional) " ),
261
- parameterWithName ("size" )
262
- .description ("The requested page size (optional) " ),
252
+ parameterWithName ("page" ). optional ()
253
+ .description ("The zero-based page number" ),
254
+ parameterWithName ("size" ). optional ()
255
+ .description ("The requested page size" ),
263
256
parameterWithName ("name" )
264
257
.description ("The name associated with the job execution" )),
265
258
responseFields (
@@ -278,7 +271,7 @@ void jobDisplayDetail() throws Exception {
278
271
.andExpect (status ().isOk ())
279
272
.andDo (this .documentationHandler .document (
280
273
pathParameters (
281
- parameterWithName ("id" ).description ("The id of an existing job execution (required) " )
274
+ parameterWithName ("id" ).description ("The id of an existing job execution" )
282
275
),
283
276
responseFields (
284
277
fieldWithPath ("executionId" ).description ("The execution ID of the job execution" ),
@@ -313,9 +306,9 @@ void jobStop() throws Exception {
313
306
.andExpect (status ().isOk ())
314
307
.andDo (this .documentationHandler .document (
315
308
pathParameters (parameterWithName ("id" )
316
- .description ("The id of an existing job execution (required) " ))
309
+ .description ("The id of an existing job execution" ))
317
310
, queryParameters (
318
- parameterWithName ("stop" )
311
+ parameterWithName ("stop" ). optional ()
319
312
.description ("Sends signal to stop the job if set to true" ))));
320
313
}
321
314
@@ -328,12 +321,12 @@ void jobRestart() throws Exception {
328
321
.andExpect (status ().isOk ())
329
322
.andDo (this .documentationHandler .document (
330
323
pathParameters (parameterWithName ("id" )
331
- .description ("The id of an existing job execution (required) " ))
324
+ .description ("The id of an existing job execution" ))
332
325
, queryParameters (
333
326
parameterWithName ("useJsonJobParameters" ).description ("If true dataflow will " +
334
327
"serialize job parameters as JSON. Default is null, and the default " +
335
328
"configuration will be used to determine serialization method." ).optional (),
336
- parameterWithName ("restart" )
329
+ parameterWithName ("restart" ). optional ()
337
330
.description ("Sends signal to restart the job if set to true" )
338
331
)
339
332
)
0 commit comments