update download image docs
All checks were successful
Deploy App / docker (ubuntu-latest, 2.44.0, 17, 3.8.5) (push) Successful in 1m14s

This commit is contained in:
Lee 2024-04-10 10:54:06 +01:00
parent e26a34fb74
commit 146cc30413
2 changed files with 2 additions and 2 deletions

@ -46,7 +46,7 @@ public class PlayerController {
@PathVariable String id, @PathVariable String id,
@Parameter(description = "The size of the image", example = "256") @Parameter(description = "The size of the image", example = "256")
@RequestParam(required = false, defaultValue = "256") int size, @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) { @RequestParam(required = false, defaultValue = "false") boolean download) {
Player player = playerManagerService.getPlayer(id); Player player = playerManagerService.getPlayer(id);
Skin.Parts skinPart = Skin.Parts.fromName(part); Skin.Parts skinPart = Skin.Parts.fromName(part);

@ -36,7 +36,7 @@ public class ServerController {
public ResponseEntity<?> getServerIcon( public ResponseEntity<?> getServerIcon(
@Parameter(description = "The hostname and port of the server", example = "play.hypixel.net") @Parameter(description = "The hostname and port of the server", example = "play.hypixel.net")
@PathVariable String hostnameAndPort, @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) { @RequestParam(required = false, defaultValue = "false") boolean download) {
Tuple<String, Integer> host = ServerUtils.getHostnameAndPort(hostnameAndPort); Tuple<String, Integer> host = ServerUtils.getHostnameAndPort(hostnameAndPort);
String hostname = host.getLeft(); String hostname = host.getLeft();