Skip to content

Latest commit

 

History

History
13 lines (9 loc) · 717 Bytes

README.md

File metadata and controls

13 lines (9 loc) · 717 Bytes

Sample Content Type Negotiation in Spring MVC

Sample client and server using content type negotiation in Spring MVC.

Server

Server is a Spring Boot application, run ./gradlew server:bootRun to start it. Uncomment additional controller method in com.adjectivecolournoun.contenttype.server.controllers.ThingController to enable version 3 Things.

A Swagger UI describing the API is available at http://localhost:8080/sdoc.jsp courtesy of swagger-springmvc.

Client

Client is a Groovy script supporting version one, two and three Things. Run ./gradlew client:runClient to request Things from server