maven build with goals : clean package
: generates target/helloworld2-0.0.1-SNAPSHOT.war
Right click on HelloworldApplication.java in eclipse - Run as Java Application
http://localhost:12001/hello
: Generate plain text result: Hello World from Java_SpringBoothttp://localhost:12001/operate/add/51/56
: Generate JSON object result: {"imeplementation": "Java_SpringBoot", "result": "107"}
Endpoint: https://api.ng.bluemix.net
cf push api-springboot -p target/helloworld2-0.0.1-SNAPSHOT.war
The REST API URL on Bleumix then becomes
Run http://localhost:12001/swagger-ui.html#/
or http://api-springboot.mybluemix.net/swagger-ui.html on bluemix
Swagger.json file: http://localhost:12001/v2/api-docs?group=springboot
Steps to integrate swagger with springboot: http://stackoverflow.com/a/35907962/5076414
Reference document for swagger integration: http://heidloff.net/article/usage-of-swagger-2-0-in-spring-boot-applications-to-document-apis/