This repository evolves sporatically as I get time between contracts. I started it in 2015 using a lazybones template. It is a simple test-first RESTful API.
- Clone
- Build and test without aquiring a walmartlabs api key.
- terminal:
./gradlew -Dspring.profiles.active=stubbydev -Dwalmartlabs.apikey=2BorNot2B clean build
- terminal:
- Create a walmartlabs account and aquire and Api Key from https://developer.walmartlabs.com/
- terminal:
./gradlew -Dspring.profiles.active=realdev -Dwalmartlabs.apikey={your-api-key} clean build
- terminal:
- Run the application:
java -jar -Dspring.profiles.active=realdev -Dwalmartlabs.apikey={your-api-key} build/libs/com-phg-productsapi-0.1.1.jar
- Configure intellij for running the application:
- Preferences -> Build -> Tools -> Gradle - Gradle VM Options (set as shown above)
- Right click on MainApplication.groovy and select run.
Development and Deployment Rhythms
- White House API Standards informed response wrapper design: https://github.com/WhiteHouse/api-standards
- Request product by UPC API design: http://stackoverflow.com/questions/20381976/rest-api-design-getting-a-resource-through-rest-with-different-parameters-but
- Spring Boot