Skip to content

Commit

Permalink
remove console.log and add forgotten file
Browse files Browse the repository at this point in the history
  • Loading branch information
efmr committed Feb 5, 2016
1 parent 3e60da2 commit f31413a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion example/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ var options = {

// Initialize swagger-jsdoc -> returns validated swagger spec in json format
var swaggerSpec = swaggerJSDoc(options);
console.log(require('util').inspect(swaggerSpec, {depth: 5}));

// Serve swagger docs the way you like (Recommendation: swagger-tools)
app.get('/api-docs.json', function(req, res) {
res.setHeader('Content-Type', 'application/json');
Expand Down
7 changes: 7 additions & 0 deletions example/parameters.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
parameter:
username:
name: username
description: Username to use for login.
in: formData
required: true
type: string

0 comments on commit f31413a

Please sign in to comment.