From 69c0cd3179cf885551f27eff784eb516c6090857 Mon Sep 17 00:00:00 2001 From: Rainnny7 Date: Wed, 10 Apr 2024 07:11:18 -0400 Subject: [PATCH] Update Swagger docs --- src/main/java/me/braydon/mc/controller/ServerController.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/me/braydon/mc/controller/ServerController.java b/src/main/java/me/braydon/mc/controller/ServerController.java index bf2ce24..a2c501a 100644 --- a/src/main/java/me/braydon/mc/controller/ServerController.java +++ b/src/main/java/me/braydon/mc/controller/ServerController.java @@ -74,7 +74,7 @@ public final class ServerController { @ResponseBody public ResponseEntity getServer( @Parameter(description = "The platform of the server", example = "java") @PathVariable @NonNull String platform, - @Parameter(description = "The hostname of the server", example = "hypixel.net") @PathVariable @NonNull String hostname + @Parameter(description = "The server hostname to lookup (Append : for port)", example = "hypixel.net") @PathVariable @NonNull String hostname ) throws BadRequestException, ResourceNotFoundException { return ResponseEntity.ofNullable(mojangService.getMinecraftServer(platform, hostname)); } @@ -106,7 +106,7 @@ public final class ServerController { @GetMapping(value = "/icon/{hostname}", produces = MediaType.IMAGE_PNG_VALUE) @ResponseBody public ResponseEntity getServerFavicon( - @Parameter(description = "The hostname of the server", example = "hypixel.net") @PathVariable @NonNull String hostname + @Parameter(description = "The server hostname to lookup (Append : for port)", example = "hypixel.net") @PathVariable @NonNull String hostname ) { return ResponseEntity.ok() .contentType(MediaType.IMAGE_PNG)