From 146cc304132bd62f02e25e28188baf2f4bd9b27a Mon Sep 17 00:00:00 2001 From: Liam Date: Wed, 10 Apr 2024 10:54:06 +0100 Subject: [PATCH] update download image docs --- src/main/java/cc.fascinated/controller/PlayerController.java | 2 +- src/main/java/cc.fascinated/controller/ServerController.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/cc.fascinated/controller/PlayerController.java b/src/main/java/cc.fascinated/controller/PlayerController.java index d3cebca..7b294f6 100644 --- a/src/main/java/cc.fascinated/controller/PlayerController.java +++ b/src/main/java/cc.fascinated/controller/PlayerController.java @@ -46,7 +46,7 @@ public class PlayerController { @PathVariable String id, @Parameter(description = "The size of the image", example = "256") @RequestParam(required = false, defaultValue = "256") int size, - @Parameter(description = "Whether to download the image", example = "false") + @Parameter(description = "Whether to download the image") @RequestParam(required = false, defaultValue = "false") boolean download) { Player player = playerManagerService.getPlayer(id); Skin.Parts skinPart = Skin.Parts.fromName(part); diff --git a/src/main/java/cc.fascinated/controller/ServerController.java b/src/main/java/cc.fascinated/controller/ServerController.java index 35c6eba..8be37c3 100644 --- a/src/main/java/cc.fascinated/controller/ServerController.java +++ b/src/main/java/cc.fascinated/controller/ServerController.java @@ -36,7 +36,7 @@ public class ServerController { public ResponseEntity getServerIcon( @Parameter(description = "The hostname and port of the server", example = "play.hypixel.net") @PathVariable String hostnameAndPort, - @Parameter(description = "Whether to download the image", example = "false") + @Parameter(description = "Whether to download the image") @RequestParam(required = false, defaultValue = "false") boolean download) { Tuple host = ServerUtils.getHostnameAndPort(hostnameAndPort); String hostname = host.getLeft();