Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Swagger not working with this version strategy #2

Open
ankool opened this issue Jul 4, 2018 · 0 comments
Open

Swagger not working with this version strategy #2

ankool opened this issue Jul 4, 2018 · 0 comments

Comments

@ankool
Copy link

ankool commented Jul 4, 2018

Is there any example of springfox swagger working with this version strategy ?
I am using latest springfox library v2.9.2.

This version strategy creates mapping as below and is working as request navigates to different function based on version annotation value

V1:
"Mapped"{[/api/work/{vehicleId}],methods=[GET],produces=[application/json],custom=[com.work.version.service.VersionRequestCondition@390e814c]}"
 onto public org.springframework.http.ResponseEntity<com.work.models.WorkResponse>

V2:
"Mapped"{[/api/work/{vehicleId}],methods=[GET],produces=[application/json],custom=[com.work.version.service.VersionRequestCondition@1ed0128b]}"
 onto public org.springframework.http.ResponseEntity<com.work.models.WorkV2Response>

But with springfox we cannot create docket that maps to both version based on same path, method, and produces but different custom or response model.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant