Skip to content

tracybporter/springboot-api-sample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Overview

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.

To Run

  1. Clone
  2. Build and test without aquiring a walmartlabs api key.
    1. terminal: ./gradlew -Dspring.profiles.active=stubbydev -Dwalmartlabs.apikey=2BorNot2B clean build
  3. Create a walmartlabs account and aquire and Api Key from https://developer.walmartlabs.com/
    1. terminal: ./gradlew -Dspring.profiles.active=realdev -Dwalmartlabs.apikey={your-api-key} clean build
  4. Run the application: java -jar -Dspring.profiles.active=realdev -Dwalmartlabs.apikey={your-api-key} build/libs/com-phg-productsapi-0.1.1.jar
  5. Configure intellij for running the application:
    1. Preferences -> Build -> Tools -> Gradle - Gradle VM Options (set as shown above)
    2. Right click on MainApplication.groovy and select run.

Deployment Pipeline

Development and Deployment Rhythms

References

  1. White House API Standards informed response wrapper design: https://github.com/WhiteHouse/api-standards
  2. Request product by UPC API design: http://stackoverflow.com/questions/20381976/rest-api-design-getting-a-resource-through-rest-with-different-parameters-but
  3. Spring Boot

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages