File tree 2 files changed +5
-2
lines changed
cloudnet-rest-module/src/main
java/eu/cloudnetservice/ext/modules/rest/v3
2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -226,9 +226,9 @@ public V3HttpHandlerNode(
226
226
var lines = this .consoleLogAppender .cachedLogEntries ().stream ()
227
227
.map (ILoggingEvent ::getFormattedMessage )
228
228
.toList ();
229
- yield JsonResponse .builder ().body (lines );
229
+ yield JsonResponse .builder ().body (Map . of ( " lines" , lines ) );
230
230
}
231
- case "ansi" -> JsonResponse .builder ().body (this .consoleLogAppender .cachedLogEntries ( ));
231
+ case "ansi" -> JsonResponse .builder ().body (Map . of ( "lines" , this .consoleLogAppender .formattedCachedLogLines () ));
232
232
default -> ProblemDetail .builder ()
233
233
.type ("console-invalid-formatting-type" )
234
234
.title ("Console Invalid Formatting Type" )
Original file line number Diff line number Diff line change @@ -743,6 +743,9 @@ paths:
743
743
type : array
744
744
items :
745
745
type : string
746
+ ' 400 ' :
747
+ description : If the requested format is not supported.
748
+ $ref : ' #/components/responses/Problem'
746
749
' 401 ' :
747
750
$ref : ' #/components/responses/Problem'
748
751
' 403 ' :
You can’t perform that action at this time.
0 commit comments