diff --git a/README.md b/README.md index e21735b..158fe58 100644 --- a/README.md +++ b/README.md @@ -25,13 +25,15 @@ This service provides the following end-points on https://api.pi4j.com: * `/api/docs/pi4j` * `/swagger-ui/index.html` * APIs + * Can + be [tested on Postman](https://www.postman.com/frankdelportebe/workspace/pi4j-api/collection/34333643-2b15a4b6-9c0d-4b5f-9c4c-375139cad3c5). * Service * `/api/service/actual` * `/api/service/board` * `/api/service/memory` * Raspberry Pi Info * `/api/raspberrypi/board` - * `/api/raspberrypi/board/MODEL` + * `/api/raspberrypi/board/{MODEL}` * e.g. `/api/raspberrypi/board/MODEL_4_B` ### Build and distribute with GitHub Actions diff --git a/src/main/java/com/pi4j/boardinfoservice/views/BoardInfoView.java b/src/main/java/com/pi4j/boardinfoservice/views/BoardInfoView.java index aff2173..84b1d2c 100644 --- a/src/main/java/com/pi4j/boardinfoservice/views/BoardInfoView.java +++ b/src/main/java/com/pi4j/boardinfoservice/views/BoardInfoView.java @@ -95,8 +95,9 @@ private void showBoard(BoardModel boardModel) { holder.add(new H3("Board info")); holder.add(getLabelValue("Board type", boardModel.getBoardType().name())); - holder.add(getLabelValue("Released", boardModel.getReleaseDate().getMonth().getDisplayName(TextStyle.FULL, Locale.UK)) - + " " + boardModel.getReleaseDate().getYear()); + var formattedDate = boardModel.getReleaseDate().getMonth().getDisplayName(TextStyle.FULL, Locale.UK) + + " " + boardModel.getReleaseDate().getYear(); + holder.add(getLabelValue("Released", formattedDate)); holder.add(getLabelValue("Model", boardModel.getModel().name())); holder.add(getLabelValue("Header version", boardModel.getHeaderVersion().getLabel())); holder.add(getLabelValue("Release date", boardModel.getReleaseDate().toString()));