J. H
J. H

Reputation: 124

How to make versioning with Swagger and Spring Boot?

I've read a lot of StackOverflow questions, but there is no good solution for me. I'm searching for a way to document our API with a version number.

We have v1 and v2. So the best way is to generate 2 different swaggers.

The controllers are in different packages and for one version is one controller.

Is this possible with swagger? And how we can do it?

Upvotes: 0

Views: 431

Answers (1)

Rahil Husain
Rahil Husain

Reputation: 570

The best way to do this is to use swagger groups. Check out this documentation: Springfox Documentation

Upvotes: 1

Related Questions