From af22ec735ddb7e6b91a48b39142401df1212a55a Mon Sep 17 00:00:00 2001 From: rr- Date: Sun, 22 May 2016 22:50:00 +0200 Subject: [PATCH] server/posts: send mime type to client --- API.md | 9 ++++++--- server/szurubooru/func/posts.py | 1 + server/szurubooru/tests/func/test_posts.py | 4 +++- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/API.md b/API.md index f4a1f61a..79c67ab3 100644 --- a/API.md +++ b/API.md @@ -1440,7 +1440,7 @@ experience. "name": , "color": , "usages": - "default": + "default": } ``` @@ -1449,7 +1449,7 @@ experience. - ``: the category name. - ``: the category color. - ``: how many tags is the given category used with. -- ``: whether the tag category is the default one. +- ``: whether the tag category is the default one. ## Detailed tag category **Description** @@ -1560,7 +1560,8 @@ One file together with its metadata posted to the site. "featureCount": , "lastFeatureTime": , "favoritedBy": , - "hasCustomThumbnail": + "hasCustomThumbnail": , + "mimeType": } ``` @@ -1610,6 +1611,8 @@ One file together with its metadata posted to the site. RFC 3339. - ``: list of users, serialized as [user resources](#user). - ``: whether the post uses custom thumbnail. +- ``: subsidiary to ``, used to tell exact content format; + useful for `