Starter application for REST API with spring framework. Refer to https://docs.spring.io/spring-boot/docs/current/reference/html/ for more information.
Deployment with OpenShift
<profiles>
<profile>
<id>openshift</id>
<build>
<plugins>
<plugin>
<artifactId>maven-war-plugin</artifactId>
<version>2.1.1</version>
<configuration>
<outputDirectory>deployments</outputDirectory>
<warName>ROOT</warName>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
- Click on "Add to Project" -> Browse Catalog
- Select "Java" -> "Red Hat JBoss Web Server (Tomcat)" -> "Tomcat 8"
- Enter name and git repository url: https://github.com/kennycyb/spring-rest-api-starter.git
- Click on "Create"
- Configure "/system/ready" and "/system/alive"
curl -X GET http://${url}/greeting -H 'accept: text/xml'
curl -X GET http://${url}/greeting -H 'accept: application/json'