@@ -0,0 +1,14 @@ | |||||
class ParameterContentTypeView extends Backbone.View | |||||
initialize: -> | |||||
render: -> | |||||
template = @template() | |||||
$(@el).html(template(@model)) | |||||
$('label[for=parameterContentType]', $(@el)).text('Parameter content type:') | |||||
@ | |||||
template: -> | |||||
Handlebars.templates.parameter_content_type | |||||
@@ -0,0 +1,14 @@ | |||||
class ResponseContentTypeView extends Backbone.View | |||||
initialize: -> | |||||
render: -> | |||||
template = @template() | |||||
$(@el).html(template(@model)) | |||||
$('label[for=responseContentType]', $(@el)).text('Response Content Type') | |||||
@ | |||||
template: -> | |||||
Handlebars.templates.response_content_type |
@@ -0,0 +1,10 @@ | |||||
<label for="parameterContentType"></label> | |||||
<select name="parameterContentType"> | |||||
{{#if consumes}} | |||||
{{#each consumes}} | |||||
<option value="{{{this}}}">{{{this}}}</option> | |||||
{{/each}} | |||||
{{else}} | |||||
<option value="application/json">application/json</option> | |||||
{{/if}} | |||||
</select> |
@@ -0,0 +1,10 @@ | |||||
<label for="responseContentType"></label> | |||||
<select name="responseContentType"> | |||||
{{#if produces}} | |||||
{{#each produces}} | |||||
<option value="{{{this}}}">{{{this}}}</option> | |||||
{{/each}} | |||||
{{else}} | |||||
<option value="application/json">application/json</option> | |||||
{{/if}} | |||||
</select> |