Skip to content

A simple webservice example for demonstration purposes. (Not related to State Farm Coding Competition)

License

Notifications You must be signed in to change notification settings

StateFarmInsCodingCompetition/WebserviceExample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WebserviceExample

An example to show a Spring MVC implementation of a couple of REST services with Swagger documentation and Swagger UI.

Technologies Utilized

  • Spring
  • Spring Boot
  • Spring Boot Devtools (hot reloading)
  • JPA
  • Spring Data JPA
  • H2
  • Swagger
  • Springfox Swagger UI (http://localhost:8080/swagger-ui.html)
  • Apache Utilities
  • Jackson JAXB JSON Object Mapper
  • Cucumber (Behavior Driven Development)
  • Unitils (Reflection Assert)

Project Setup

Prerequisites: The project should not be in a zip file.

  1. Download and start Spring Tool Suite from https://spring.io/tools/sts/all
  2. Click File -> Import... -> Existing Maven Projects
  3. Run the class sf.example.Boot

To test out the service, visit the Swagger UI at: http://localhost:8080/swagger-ui.html

Note

In the real world, there would be a lot of duplicate code to remove, but I have left the duplication for demonstration purposes.

About

A simple webservice example for demonstration purposes. (Not related to State Farm Coding Competition)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published