Skip to content

Latest commit

 

History

History
44 lines (29 loc) · 1.79 KB

File metadata and controls

44 lines (29 loc) · 1.79 KB

Spring Boot REST API Versioning Example

I created this repository as I needed a simple playground to explore and test which versioning practice I thought was the best when working with Spring Boot.

Conclusion

I have concluded that I prefer using the HTTP Content negotiation headers (Content-Type and Accept) with custom MIME types to manage versioning. It follows the HTTP specification and is generally supported by out of the box by most web frameworks. Also, because it is part of the HTTP specification it already has a formal protocol defined around communicating incorrect versioning requests, etc. via well defined status codes.

Run

mvn spring-boot:run

Testing References

Concepts

Tools

Tactics