HelloREST
INFO: Demo project for Spring Boot and REST
Table of Contents
Run Application (MAVEN)
Clone Repository:
git clone https://transfer.hft-stuttgart.de/gitlab/kebidge/hello-rest.git
Build Application:
mvn clean package
Run Spring-Boot Application:
mvn spring-boot:run
Application starts on port 9999. Open in Browser:
localhost:8090
Run Application (DOCKER)
Run Docker Image
docker run -p 8090:8090 kebidge/hello-rest:jib
Application starts on port 8090
. Open in Browser:
localhost:8090
Image Details
Type: Google Jib
Size: 264MB
Compressed Size: 100.4MB
OS/ARCH: linux/amd64
Description | Size | Comment |
---|---|---|
jib-maven-plugin:3.1.4 | 1.59kB | jvm arg files |
jib-maven-plugin:3.1.4 | 2.12kB | classes |
jib-maven-plugin:3.1.4 | 65B | resources |
jib-maven-plugin:3.1.4 | 19.6MB | dependencies |
/bin/sh -c #(nop) ENV JAVA_HOME=/opt/java/o… | 0B | |
/bin/sh -c set -eux; ARCH="$(dpkg --prin… | 128MB | |
/bin/sh -c #(nop) ENV JAVA_VERSION=jdk-11.0… | 0B | |
/bin/sh -c apt-get update && apt-get ins… | 43.2MB | |
/bin/sh -c #(nop) ENV LANG=en_US.UTF-8 LANG… | 0B | |
/bin/sh -c #(nop) CMD ["bash"] | 0B | |
/bin/sh -c #(nop) ADD file:8d2f4a45a58b3f542… | 72.8MB |
How to use Application
INFO: There are 3 REST endpoints implemented
Initial Endpoint
localhost:8090
or
localhost:8090/
OUTPUT: Hello World!
Kebidge Endpoint
localhost:8090/kebidge
OUTPUT: Hello Kebidge!
Personal Endpoint
INFO: Set value via endpoint parameter, e.g.
HFT Stuttgart
localhost:8090/hello/HFT Stuttgart
OUTPUT: Hello HFT Stuttgart!