Freemarker templates
This commit is contained in:
parent
8057928548
commit
d41212c7b2
5 changed files with 72 additions and 20 deletions
10
endpoints-templates/Protocol.ftl
Normal file
10
endpoints-templates/Protocol.ftl
Normal file
|
@ -0,0 +1,10 @@
|
|||
package se.senashdev.projekt.api
|
||||
|
||||
object Protocol:
|
||||
<#list typeDefinitions as type>
|
||||
case class ${type.name?cap_first}(
|
||||
<#list type.fields as field>
|
||||
${field.name} : ${field.type},
|
||||
</#list>
|
||||
)
|
||||
</#list>
|
Loading…
Add table
Add a link
Reference in a new issue