Install Spring Boot Extension Pack and start the application from the Spring Boot Dashboard.
./mvnw spring-boot:run
docker build --tag java-api-rest .
docker run --name java-api-rest --publish 8080:8080 java-api-rest
If using macOS, start the Podman machine first.
podman machine init
podman machine start
podman build --tag java-api-rest .
podman run --name java-api-rest --publish 8080:8080 java-api-rest
- Actuator: http://localhost:8080/v3/api-docs
- Swagger UI: http://localhost:8080/swagger-ui.html
Thunder Client can be used to interact with the API.
A predefined collection is saved in /thunder-tests
.
src
├── main
│ ├── java/com/github/ojwm/api/rest
│ │ ├── RestApplication.java # Spring Boot application
│ │ ├── model # Object models
│ │ │ ├── Car.java
│ │ │ └── Van.java
│ │ └── repository # Object repositories
│ │ ├── VanRepository.java
│ │ └── CarRepository.java
│ └── resources # Configuration and static resources
│ └── application.properties
└── test
└── java/com/github/ojwm/api/rest # Structure mirrors main
Generated by tree
.