@@ -1981,11 +1981,11 @@ public ResponseEntity<List<TimelineEventInfos>> getDynamicSimulationTimelineResu
1981
1981
@ ApiResponses (value = {@ ApiResponse (responseCode = "200" , description = "The status of dynamic simulation result" ),
1982
1982
@ ApiResponse (responseCode = "204" , description = "No dynamic simulation status" ),
1983
1983
@ ApiResponse (responseCode = "404" , description = "The dynamic simulation has not been found" )})
1984
- public ResponseEntity <DynamicSimulationStatus > getDynamicSimulationStatus (@ Parameter (description = "study UUID" ) @ PathVariable ("studyUuid" ) UUID studyUuid ,
1984
+ public ResponseEntity <String > getDynamicSimulationStatus (@ Parameter (description = "study UUID" ) @ PathVariable ("studyUuid" ) UUID studyUuid ,
1985
1985
@ Parameter (description = "rootNetworkUuid" ) @ PathVariable ("rootNetworkUuid" ) UUID rootNetworkUuid ,
1986
1986
@ Parameter (description = "nodeUuid" ) @ PathVariable ("nodeUuid" ) UUID nodeUuid ) {
1987
1987
DynamicSimulationStatus result = rootNetworkNodeInfoService .getDynamicSimulationStatus (nodeUuid , rootNetworkUuid );
1988
- return result != null ? ResponseEntity .ok ().contentType (MediaType .APPLICATION_JSON ).body (result ) :
1988
+ return result != null ? ResponseEntity .ok ().contentType (MediaType .APPLICATION_JSON ).body (result . name () ) :
1989
1989
ResponseEntity .noContent ().build ();
1990
1990
}
1991
1991
@@ -2031,11 +2031,11 @@ public ResponseEntity<Void> runDynamicSecurityAnalysis(@Parameter(description =
2031
2031
@ ApiResponses (value = {@ ApiResponse (responseCode = "200" , description = "The status of dynamic security analysis result" ),
2032
2032
@ ApiResponse (responseCode = "204" , description = "No dynamic security analysis status" ),
2033
2033
@ ApiResponse (responseCode = "404" , description = "The dynamic security analysis has not been found" )})
2034
- public ResponseEntity <DynamicSecurityAnalysisStatus > getDynamicSecurityAnalysisStatus (@ Parameter (description = "study UUID" ) @ PathVariable ("studyUuid" ) UUID studyUuid ,
2034
+ public ResponseEntity <String > getDynamicSecurityAnalysisStatus (@ Parameter (description = "study UUID" ) @ PathVariable ("studyUuid" ) UUID studyUuid ,
2035
2035
@ Parameter (description = "root network id" ) @ PathVariable ("rootNetworkUuid" ) UUID rootNetworkUuid ,
2036
2036
@ Parameter (description = "nodeUuid" ) @ PathVariable ("nodeUuid" ) UUID nodeUuid ) {
2037
2037
DynamicSecurityAnalysisStatus result = rootNetworkNodeInfoService .getDynamicSecurityAnalysisStatus (nodeUuid , rootNetworkUuid );
2038
- return result != null ? ResponseEntity .ok ().contentType (MediaType .APPLICATION_JSON ).body (result ) :
2038
+ return result != null ? ResponseEntity .ok ().contentType (MediaType .APPLICATION_JSON ).body (result . name () ) :
2039
2039
ResponseEntity .noContent ().build ();
2040
2040
}
2041
2041
0 commit comments