Skip to content

andyjduncan/contenttype

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Sample of using media type for API versioning

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages