An open API service indexing awesome lists of open source software.

https://github.com/maxenglander/jersey-versioning-example

Examples of how to do header-based versioning in Jersey
https://github.com/maxenglander/jersey-versioning-example

Last synced: over 1 year ago
JSON representation

Examples of how to do header-based versioning in Jersey

Awesome Lists containing this project

README

          

# Jersey Versioning Example

Example of how to version resources in Jersey.

## Request resources

### V1

curl -H "Accept: application/vnd.musicstore-v1+json" http://localhost:8080/track/1

### V2

curl -H "Accept: application/vnd.musicstore-v2+json" http://localhost:8080/track/1