Add API documentation

This commit is contained in:
Alex Ling
2020-12-14 11:09:38 +00:00
parent 9dcc9665ce
commit 341b586cb3
9 changed files with 313 additions and 21 deletions
+1 -2
View File
@@ -47,8 +47,7 @@ class Entry
def to_json(json : JSON::Builder)
json.object do
{% for str in ["zip_path", "title", "size", "id",
"encoded_path", "encoded_title"] %}
{% for str in ["zip_path", "title", "size", "id"] %}
json.field {{str}}, @{{str.id}}
{% end %}
json.field "title_id", @book.id