Skip to content
This repository has been archived by the owner on Sep 14, 2022. It is now read-only.

Lib usage #204

Closed
yarax opened this issue Apr 1, 2015 · 2 comments
Closed

Lib usage #204

yarax opened this issue Apr 1, 2015 · 2 comments

Comments

@yarax
Copy link

yarax commented Apr 1, 2015

Sorry, it's not an issue, but I haven't got a response on SO. So it my thoughts about lib and maybe you will dispel my doubts.

  • Why should I use methods like addGet/addPost and split my controller by HTTP methods
  • Why should I involve models to routing?
  • I can use validators for authentication, but I have to choose some paths, that should be protected there. It duplicates logic, that stores in swagger json file.

Isn't it the right way to have a static swagger.json and build Express routes on it? Or maybe I don't understand some practics

@fehguy
Copy link
Contributor

fehguy commented Apr 2, 2015

Hi, take a look here:

https://groups.google.com/forum/#!topic/swagger-swaggersocket/8aZZk5wroeg

We're redoing how this library works very soon.

@fehguy
Copy link
Contributor

fehguy commented Jun 3, 2015

This is handled in #209

@fehguy fehguy closed this as completed Jun 3, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants