DarkaOnLine / SwaggerLume

Lumen swagger
MIT License
334 stars 86 forks source link

would like to know if we can do this api/v1/documentation & api/v2/documentation #100

Closed odanicola closed 3 years ago

odanicola commented 3 years ago

Hello there, I would like to know if i have two or more versions of APIs and i want to have two or more swagger ui documentations with routes like this: api/v1/documentation & api/v2/documentation

Can i do that?

DarkaOnLine commented 3 years ago

With SwaggerLume no:( But L5-Swagger supports multiple documentations

odanicola commented 3 years ago

Hello thank you for your reply, would you please let me know where the example of multiple documentations using L5-Swagger?

DarkaOnLine commented 3 years ago

You can look into config on how to configure multiple docs: https://github.com/DarkaOnLine/L5-Swagger/blob/master/config/l5-swagger.php

odanicola commented 3 years ago

should i have two api-docs.json ? or i just need to add the routes?

DarkaOnLine commented 3 years ago

2 for sure as these are to different versions of API :)

odanicola commented 3 years ago

affirmative, i'll try it... thank you for your reply.

testsmith-io commented 2 years ago

With SwaggerLume no:( But L5-Swagger supports multiple documentations

But L5-Swagger doesn't work for Lumen projects, right?