matteozambon89 / trailpack-swagger

Use Swagger UI in your Trails project
MIT License
2 stars 2 forks source link

Automatically build custom routes #9

Closed clayrisser closed 6 years ago

clayrisser commented 7 years ago

This commit automatically figures out swagger for all endpoints. Currently a description is the only property supported by the swagger plugin. Additional properties will be added in the future.

{
  method: [ 'GET' ],
  path: '/api/v1/default/info',
  handler: 'DefaultController.info',
  config: {
    plugins: {
      swagger: {
        description: 'I am a description'
      }
    }
  }
}

This pull request passes all tests.

clayrisser commented 7 years ago

Hey, did you see my pull request?

matteozambon89 commented 7 years ago

@jamrizzi I saw your pull request, thanks for the invaluable help! 👍

Could you please add a little section in the README.md file about the custom routes please? This will help other devs too.

Thanks for your collaboration.

clayrisser commented 7 years ago

Sure deal.

On Mon, Apr 17, 2017, 15:46 Matteo Zambon notifications@github.com wrote:

@jamrizzi https://github.com/jamrizzi I saw your pull request, thanks for the invaluable help! 👍

Could you please add a little section in the README.md file about the custom routes please? This will help other devs too.

Thanks for your collaboration.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/matteozambon89/trailpack-swagger/pull/9#issuecomment-294587921, or mute the thread https://github.com/notifications/unsubscribe-auth/AF8ftu6EccOA1nA4NUBIr3J2T3xcdFE4ks5rw8-agaJpZM4M96PN .

--

  • Jam Risser