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

How can I add responses documentation? #20

Open
bbuhler opened this issue Mar 14, 2015 · 0 comments
Open

How can I add responses documentation? #20

bbuhler opened this issue Mar 14, 2015 · 0 comments

Comments

@bbuhler
Copy link

bbuhler commented Mar 14, 2015

I tried:

app.server.get
  (
    {
      url: '/login',
      swagger:
      {
        summary: 'get session',
        docPath: 'Login'
      },
      validation: {},
      responses:
      {
        200: { schema: { type: 'SessionModel' } }
      }
    },
    function(req, res, next)
    {
      .....

Is it possible to declare the status responses + response model with node-restify-swagger?

If yes, how?
I don't find anything about it.

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