Update Swagger docs
Some checks failed
Deploy App / docker (ubuntu-latest, 2.44.0, 17, 3.8.5) (push) Failing after 23s
Some checks failed
Deploy App / docker (ubuntu-latest, 2.44.0, 17, 3.8.5) (push) Failing after 23s
This commit is contained in:
@ -74,7 +74,7 @@ public final class ServerController {
|
|||||||
@ResponseBody
|
@ResponseBody
|
||||||
public ResponseEntity<CachedMinecraftServer> getServer(
|
public ResponseEntity<CachedMinecraftServer> getServer(
|
||||||
@Parameter(description = "The platform of the server", example = "java") @PathVariable @NonNull String platform,
|
@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 :<port> for port)", example = "hypixel.net") @PathVariable @NonNull String hostname
|
||||||
) throws BadRequestException, ResourceNotFoundException {
|
) throws BadRequestException, ResourceNotFoundException {
|
||||||
return ResponseEntity.ofNullable(mojangService.getMinecraftServer(platform, hostname));
|
return ResponseEntity.ofNullable(mojangService.getMinecraftServer(platform, hostname));
|
||||||
}
|
}
|
||||||
@ -106,7 +106,7 @@ public final class ServerController {
|
|||||||
@GetMapping(value = "/icon/{hostname}", produces = MediaType.IMAGE_PNG_VALUE)
|
@GetMapping(value = "/icon/{hostname}", produces = MediaType.IMAGE_PNG_VALUE)
|
||||||
@ResponseBody
|
@ResponseBody
|
||||||
public ResponseEntity<byte[]> getServerFavicon(
|
public ResponseEntity<byte[]> getServerFavicon(
|
||||||
@Parameter(description = "The hostname of the server", example = "hypixel.net") @PathVariable @NonNull String hostname
|
@Parameter(description = "The server hostname to lookup (Append :<port> for port)", example = "hypixel.net") @PathVariable @NonNull String hostname
|
||||||
) {
|
) {
|
||||||
return ResponseEntity.ok()
|
return ResponseEntity.ok()
|
||||||
.contentType(MediaType.IMAGE_PNG)
|
.contentType(MediaType.IMAGE_PNG)
|
||||||
|
Reference in New Issue
Block a user