How set SpringFox to show two (or more) versions of the Rest API using Spring Boot?
I'm trying to figure out how manage two (or more) version of my API endpoints using Spring Fox. To version my APIs, I'm using the Versioning through content negotiation , also know as Versioning using Accept header . The versions of each endpoint are controlled individually using the header information. Per example, for the version one I use the attribute produces : @Override @PostMapping( produces = "application/vnd.company.v1+json") public ResponseEntity<User> createUser( For version two, I use: @Override @PostMapping( produces = "application/vnd.company.v2+json", consumes = "application/vnd