Este sitio web funciona mejor con JavaScript.
Inicio
Explorar
Ayuda
Iniciar sesión
bubblev
/
swagger-ui
Seguir
4
Destacar
0
Fork
0
Código
Incidencias
0
Pull Requests
0
Lanzamientos
0
Wiki
Actividad
Explorar el Código
added separate request and response templates
bubble
Tony Tam
hace 11 años
padre
2dd2eb9e50
commit
7b9f8a2651
Se han
modificado 4 ficheros
con
48 adiciones
y
0 borrados
Dividir vista
Opciones de diferencias
Mostrar estadísticas
Descargar archivo de parche
Descargar archivo de diferencias
+14
-0
src/main/coffeescript/view/ParameterContentTypeView.coffee
+14
-0
src/main/coffeescript/view/ResponseContentTypeView.coffee
+10
-0
src/main/template/parameter_content_type.handlebars
+10
-0
src/main/template/response_content_type.handlebars
+ 14
- 0
src/main/coffeescript/view/ParameterContentTypeView.coffee
Ver fichero
@@ -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
+ 14
- 0
src/main/coffeescript/view/ResponseContentTypeView.coffee
Ver fichero
@@ -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
+ 10
- 0
src/main/template/parameter_content_type.handlebars
Ver fichero
@@ -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>
+ 10
- 0
src/main/template/response_content_type.handlebars
Ver fichero
@@ -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>
Escribir
Vista previa
Cargando…
Cancelar
Guardar