Browse files

Merge pull request #163 from fullergalway/master

added support for text parameter type
  • Loading branch information...
2 parents eef7eca + ade5586 commit 748b2e79c50754cd875b51d2c0b7fd989028673c @mtougeron mtougeron committed Mar 25, 2014
Showing with 5 additions and 0 deletions.
  1. +5 −0 views/api.jade
View
5 views/api.jade
@@ -138,6 +138,11 @@ block content
option(value=choice, selected=true) #{choice}
- else
option(value=choice) #{choice}
+ - else if (parameter.Type =='text')
+ textarea(name='params[' + parameter.Name + ']', placeholder=className)
+ if (parameter.Default)
+ | #{parameter.Default}
+ input(type='hidden', name='locations['+parameter.Name+']', value=parameter.Location || 'query')
- else
input(name='params[' + parameter.Name + ']', value=parameter.Default, placeholder=className)
input(type='hidden', name='locations['+parameter.Name+']', value=parameter.Location || 'query')

0 comments on commit 748b2e7

Please sign in to comment.