Added listing of API fields

This commit is contained in:
2018-03-28 00:26:06 +02:00
parent 199512dbc9
commit f3b9eff1f4
4 changed files with 91 additions and 0 deletions

View File

@ -0,0 +1,21 @@
component APIDocs(t reflect.Type, fields []*utils.APIField)
h1= "API: " + t.Name()
table
thead
tr
th Field name
th JavaScript notation
th Type
tbody
each field in fields
tr
td= field.Name
td= field.JSON
td= field.Type
.corner-buttons
a.button(href="/api")
Icon("code")
span Overview