Skip to content

oscsoftware/api-versioning-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

API Versioning Example

This is a quick example of an annotation driven URL path API Versioning approach at the method level that is very lightweight.

Getting Started

The ApiVersion, VersioningConfig, and ApiVersionRequestMappingHandlerMapping classes are all plug and play. The integration tests and example controller provide examples of what to expect.

Examples

@ApiVersion("1")
-
/v1/example-controller/hello
@ApiVersion("2")
-
/v2/example-controller/hello
@ApiVersion("2016-12-25")
-
/v2016-12-25/example-controller/hello
No Annotation
-
/example-controller/hello

Built With

  • Gradle
  • SpringBoot

Authors

License

This project is licensed under the MIT License

About

SpringBoot path method level versioning example

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages