update download image docs
All checks were successful
Deploy App / docker (ubuntu-latest, 2.44.0, 17, 3.8.5) (push) Successful in 1m14s
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:
parent
e26a34fb74
commit
146cc30413
@ -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);
|
||||
|
@ -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<String, Integer> host = ServerUtils.getHostnameAndPort(hostnameAndPort);
|
||||
String hostname = host.getLeft();
|
||||
|
Loading…
x
Reference in New Issue
Block a user