gbksoft / yii2-swagger

MIT License
6 stars 3 forks source link

How do I use this plugin? #1

Closed RdeWilde closed 8 years ago

RdeWilde commented 8 years ago

Do I have to put it in my routes? Or open a specific URL?

@littlefuntik @Dell- @golcinho @gbksoftuser

Dell- commented 8 years ago

Hi, This module uses standard rules of Yii2 routing. Add this module into your config file of application. Use standard path - // see >> https://github.com/gbksoft/yii2-swagger/blob/master/controllers/DefaultController.php

But this module have specific code for our company.

My recommendation - use original UI app as separate app Swagger UI -> https://github.com/swagger-api/swagger-ui

Sorry for my bad english

RdeWilde commented 8 years ago

Ah, thanks for the fast response. So this module does not generate the swagger json file/specs, but reads this?

Dell- commented 8 years ago

Yes, only read swagger.json for build UI as http://petstore.swagger.io/

RdeWilde commented 8 years ago

Thanks