From 4374981ab44de1e3dfe4bd41429054ecd1bfe02f Mon Sep 17 00:00:00 2001 From: Wim Brand Date: Fri, 7 Feb 2020 10:32:14 +0100 Subject: [PATCH] update list API doc --- res/template/fragments/api/list.html | 39 ++++++++++++++++++---------- 1 file changed, 26 insertions(+), 13 deletions(-) diff --git a/res/template/fragments/api/list.html b/res/template/fragments/api/list.html index ef79f3a..bdd040b 100644 --- a/res/template/fragments/api/list.html +++ b/res/template/fragments/api/list.html @@ -121,37 +121,50 @@ "success": true, "id": "L8bhwx", "title": "Rust in Peace", - "date_created": 1513033315, + "date_created": 2020-02-04T18:34:13.466276Z, "files": [ + // These structures are the same as the file info response, except for the detail_href and description fields { "detail_href": "/file/_SqVWi/info", + "description": "", + "success": true, "id": "_SqVWi", "name": "01 Holy Wars... The Punishment Due.mp3", - "description": "", - "date_created": 1513033304, - "date_last_view": 1513033304, + "size": 123456, + "date_created": 2020-02-04T18:34:13.466276Z, + "date_last_view": 2020-02-04T18:34:13.466276Z, + "mime_type": "audio/mp3", "views": 1, - "bandwidth_used": 1234567890 + "bandwidth_used": 1234567890, + "thumbnail_href": "/file/_SqVWi/thumbnail" }, { "detail_href": "/file/RKwgZb/info", + "description": "", + "success": true, "id": "RKwgZb", "name": "02 Hangar 18.mp3", - "description": "", - "date_created": 1513033304, - "date_last_view": 1513033304, + "size": 123456, + "date_created": 2020-02-04T18:34:13.466276Z, + "date_last_view": 2020-02-04T18:34:13.466276Z, + "mime_type": "audio/mp3", "views": 2, - "bandwidth_used": 1234567890 + "bandwidth_used": 1234567890, + "thumbnail_href": "/file/RKwgZb/thumbnail" }, { "detail_href": "/file/DRaL_e/info", + "description": "", + "success": true, "id": "DRaL_e", "name": "03 Take No Prisoners.mp3", - "description": "", - "date_created": 1513033304, - "date_last_view": 1513033304, + "size": 123456, + "date_created": 2020-02-04T18:34:13.466276Z, + "date_last_view": 2020-02-04T18:34:13.466276Z, + "mime_type": "audio/mp3", "views": 3, - "bandwidth_used": 1234567890 + "bandwidth_used": 1234567890, + "thumbnail_href": "/file/DRaL_e/thumbnail" } ] }