forked from MinecraftUtilities/Backend
update download image docs
This commit is contained in:
parent
e26a34fb74
commit
146cc30413
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user