@@ -114,10 +114,10 @@ void listJobExecutions() throws Exception {
114
114
.andDo (print ())
115
115
.andExpect (status ().isOk ()).andDo (this .documentationHandler .document (
116
116
queryParameters (
117
- parameterWithName ("page" )
118
- .description ("The zero-based page number (optional) " ),
119
- parameterWithName ("size" )
120
- .description ("The requested page size (optional) " )),
117
+ parameterWithName ("page" ). optional ()
118
+ .description ("The zero-based page number" ),
119
+ parameterWithName ("size" ). optional ()
120
+ .description ("The requested page size" )),
121
121
responseFields (
122
122
subsectionWithPath ("_embedded.jobExecutionResourceList" )
123
123
.description ("Contains a collection of Job Executions/" ),
@@ -135,10 +135,10 @@ void listThinJobExecutions() throws Exception {
135
135
.andDo (print ())
136
136
.andExpect (status ().isOk ()).andDo (this .documentationHandler .document (
137
137
queryParameters (
138
- parameterWithName ("page" )
139
- .description ("The zero-based page number (optional) " ),
140
- parameterWithName ("size" )
141
- .description ("The requested page size (optional) " )),
138
+ parameterWithName ("page" ). optional ()
139
+ .description ("The zero-based page number" ),
140
+ parameterWithName ("size" ). optional ()
141
+ .description ("The requested page size" )),
142
142
responseFields (
143
143
subsectionWithPath ("_embedded.jobExecutionThinResourceList" )
144
144
.description ("Contains a collection of Job Executions without step executions included/" ),
@@ -157,10 +157,10 @@ void listThinJobExecutionsByJobInstanceId() throws Exception {
157
157
.andDo (print ())
158
158
.andExpect (status ().isOk ()).andDo (this .documentationHandler .document (
159
159
queryParameters (
160
- parameterWithName ("page" )
161
- .description ("The zero-based page number (optional) " ),
162
- parameterWithName ("size" )
163
- .description ("The requested page size (optional) " ),
160
+ parameterWithName ("page" ). optional ()
161
+ .description ("The zero-based page number" ),
162
+ parameterWithName ("size" ). optional ()
163
+ .description ("The requested page size" ),
164
164
parameterWithName ("jobInstanceId" )
165
165
.description ("Filter result by the job instance id" )),
166
166
responseFields (
@@ -181,10 +181,10 @@ void listThinJobExecutionsByTaskExecutionId() throws Exception {
181
181
.andDo (print ())
182
182
.andExpect (status ().isOk ()).andDo (this .documentationHandler .document (
183
183
queryParameters (
184
- parameterWithName ("page" )
185
- .description ("The zero-based page number (optional) " ),
186
- parameterWithName ("size" )
187
- .description ("The requested page size (optional) " ),
184
+ parameterWithName ("page" ). optional ()
185
+ .description ("The zero-based page number" ),
186
+ parameterWithName ("size" ). optional ()
187
+ .description ("The requested page size" ),
188
188
parameterWithName ("taskExecutionId" )
189
189
.description ("Filter result by the task execution id" )),
190
190
responseFields (
@@ -206,10 +206,10 @@ void listThinJobExecutionsByDate() throws Exception {
206
206
.andDo (print ())
207
207
.andExpect (status ().isOk ()).andDo (this .documentationHandler .document (
208
208
queryParameters (
209
- parameterWithName ("page" )
210
- .description ("The zero-based page number (optional) " ),
211
- parameterWithName ("size" )
212
- .description ("The requested page size (optional) " ),
209
+ parameterWithName ("page" ). optional ()
210
+ .description ("The zero-based page number" ),
211
+ parameterWithName ("size" ). optional ()
212
+ .description ("The requested page size" ),
213
213
parameterWithName ("fromDate" )
214
214
.description ("Filter result from a starting date in the format 'yyyy-MM-dd'T'HH:mm:ss,SSS'" ),
215
215
parameterWithName ("toDate" )
@@ -232,10 +232,10 @@ void listJobExecutionsByName() throws Exception {
232
232
.andDo (print ())
233
233
.andExpect (status ().isOk ()).andDo (this .documentationHandler .document (
234
234
queryParameters (
235
- parameterWithName ("page" )
236
- .description ("The zero-based page number (optional) " ),
237
- parameterWithName ("size" )
238
- .description ("The requested page size (optional) " ),
235
+ parameterWithName ("page" ). optional ()
236
+ .description ("The zero-based page number" ),
237
+ parameterWithName ("size" ). optional ()
238
+ .description ("The requested page size" ),
239
239
parameterWithName ("name" )
240
240
.description ("The name associated with the job execution" )),
241
241
responseFields (
@@ -256,10 +256,10 @@ void listThinJobExecutionsByName() throws Exception {
256
256
.andDo (print ())
257
257
.andExpect (status ().isOk ()).andDo (this .documentationHandler .document (
258
258
queryParameters (
259
- parameterWithName ("page" )
260
- .description ("The zero-based page number (optional) " ),
261
- parameterWithName ("size" )
262
- .description ("The requested page size (optional) " ),
259
+ parameterWithName ("page" ). optional ()
260
+ .description ("The zero-based page number" ),
261
+ parameterWithName ("size" ). optional ()
262
+ .description ("The requested page size" ),
263
263
parameterWithName ("name" )
264
264
.description ("The name associated with the job execution" )),
265
265
responseFields (
@@ -278,7 +278,7 @@ void jobDisplayDetail() throws Exception {
278
278
.andExpect (status ().isOk ())
279
279
.andDo (this .documentationHandler .document (
280
280
pathParameters (
281
- parameterWithName ("id" ).description ("The id of an existing job execution (required) " )
281
+ parameterWithName ("id" ).description ("The id of an existing job execution" )
282
282
),
283
283
responseFields (
284
284
fieldWithPath ("executionId" ).description ("The execution ID of the job execution" ),
@@ -313,9 +313,9 @@ void jobStop() throws Exception {
313
313
.andExpect (status ().isOk ())
314
314
.andDo (this .documentationHandler .document (
315
315
pathParameters (parameterWithName ("id" )
316
- .description ("The id of an existing job execution (required) " ))
316
+ .description ("The id of an existing job execution" ))
317
317
, queryParameters (
318
- parameterWithName ("stop" )
318
+ parameterWithName ("stop" ). optional ()
319
319
.description ("Sends signal to stop the job if set to true" ))));
320
320
}
321
321
@@ -328,12 +328,12 @@ void jobRestart() throws Exception {
328
328
.andExpect (status ().isOk ())
329
329
.andDo (this .documentationHandler .document (
330
330
pathParameters (parameterWithName ("id" )
331
- .description ("The id of an existing job execution (required) " ))
331
+ .description ("The id of an existing job execution" ))
332
332
, queryParameters (
333
333
parameterWithName ("useJsonJobParameters" ).description ("If true dataflow will " +
334
334
"serialize job parameters as JSON. Default is null, and the default " +
335
335
"configuration will be used to determine serialization method." ).optional (),
336
- parameterWithName ("restart" )
336
+ parameterWithName ("restart" ). optional ()
337
337
.description ("Sends signal to restart the job if set to true" )
338
338
)
339
339
)
0 commit comments