File tree 2 files changed +21
-57
lines changed
BackEnd/src/main/java/com/mcmp/costbe/common
2 files changed +21
-57
lines changed Original file line number Diff line number Diff line change 3
3
import com .mcmp .costbe .common .config .ReadyzConfig ;
4
4
import com .mcmp .costbe .common .model .ReadyzModel ;
5
5
import com .mcmp .costbe .common .model .ResultModel ;
6
+ import io .swagger .v3 .oas .annotations .Hidden ;
6
7
import io .swagger .v3 .oas .annotations .Operation ;
7
8
import io .swagger .v3 .oas .annotations .media .Content ;
8
9
import io .swagger .v3 .oas .annotations .responses .ApiResponse ;
@@ -42,8 +43,9 @@ public ResponseEntity getReadyz(){
42
43
}
43
44
44
45
@ PostMapping (path = "/change/readyz" )
45
- // @Tag(name = "Application", description = "Status API")
46
- // @Operation(summary = "어플리케이션 상태 변경", description = "어플리케이션의 상태를 변경합니다.")
46
+ @ Tag (name = "Application" , description = "Status API" )
47
+ @ Operation (summary = "어플리케이션 상태 변경" , description = "어플리케이션의 상태를 변경합니다." )
48
+ @ Hidden
47
49
// @ApiResponses(value={
48
50
// @ApiResponse(responseCode = "200", description = "성공"),
49
51
// @ApiResponse(responseCode = "500", description = "서버 오류", content = {@Content(examples = {})})
Original file line number Diff line number Diff line change 57
57
" required " : true
58
58
},
59
59
" responses " : {
60
- " 500 " : {
61
- " description " : " 서버 오류"
62
- },
63
60
" 200 " : {
64
61
" description " : " 성공" ,
65
62
" content " : {
69
66
}
70
67
}
71
68
}
69
+ },
70
+ " 500 " : {
71
+ " description " : " 서버 오류"
72
72
}
73
73
}
74
74
}
127
127
" required " : true
128
128
},
129
129
" responses " : {
130
- " 500 " : {
131
- " description " : " 서버 오류"
132
- },
133
130
" 200 " : {
134
131
" description " : " 성공" ,
135
132
" content " : {
139
136
}
140
137
}
141
138
}
139
+ },
140
+ " 500 " : {
141
+ " description " : " 서버 오류"
142
142
}
143
143
}
144
144
}
197
197
" required " : true
198
198
},
199
199
" responses " : {
200
- " 500 " : {
201
- " description " : " 서버 오류"
202
- },
203
200
" 200 " : {
204
201
" description " : " 성공" ,
205
202
" content " : {
209
206
}
210
207
}
211
208
}
209
+ },
210
+ " 500 " : {
211
+ " description " : " 서버 오류"
212
212
}
213
213
}
214
214
}
232
232
" required " : true
233
233
},
234
234
" responses " : {
235
+ " 500 " : {
236
+ " description " : " 서버 오류"
237
+ },
235
238
" 200 " : {
236
239
" description " : " 성공" ,
237
240
" content " : {
244
247
}
245
248
}
246
249
}
247
- },
248
- " 500 " : {
249
- " description " : " 서버 오류"
250
250
}
251
251
}
252
252
}
340
340
" required " : true
341
341
},
342
342
" responses " : {
343
- " 500 " : {
344
- " description " : " 서버 오류"
345
- },
346
343
" 200 " : {
347
344
" description " : " 성공" ,
348
345
" content " : {
352
349
}
353
350
}
354
351
}
355
- }
356
- }
357
- }
358
- },
359
- " /api/costopti/be/change/readyz " : {
360
- " post " : {
361
- " tags " : [
362
- " common-controller"
363
- ],
364
- " operationId " : " changeReadyz" ,
365
- " requestBody " : {
366
- " content " : {
367
- " application/json;charset=UTF-8 " : {
368
- " schema " : {
369
- " $ref " : " #/components/schemas/ReadyzModel"
370
- }
371
- }
372
352
},
373
- " required " : true
374
- },
375
- " responses " : {
376
- " 200 " : {
377
- " description " : " OK" ,
378
- " content " : {
379
- " application/json;charset=UTF-8 " : {
380
- " schema " : {
381
- " type " : " string"
382
- }
383
- }
384
- }
353
+ " 500 " : {
354
+ " description " : " 서버 오류"
385
355
}
386
356
}
387
357
}
405
375
" required " : true
406
376
},
407
377
" responses " : {
408
- " 500 " : {
409
- " description " : " 서버 오류"
410
- },
411
378
" 200 " : {
412
379
" description " : " 성공" ,
413
380
" content " : {
417
384
}
418
385
}
419
386
}
387
+ },
388
+ " 500 " : {
389
+ " description " : " 서버 오류"
420
390
}
421
391
}
422
392
}
1726
1696
},
1727
1697
" description " : " 이번달 리소스 사용량 및 비용 조회 응답 모델"
1728
1698
},
1729
- " ReadyzModel " : {
1730
- " type " : " object" ,
1731
- " properties " : {
1732
- " status " : {
1733
- " type " : " string"
1734
- }
1735
- }
1736
- },
1737
1699
" AlarmHistoryReqModel " : {
1738
1700
" required " : [
1739
1701
" selectedCsps" ,
You can’t perform that action at this time.
0 commit comments