about summary refs log tree commit diff
path: root/app/views/api/media
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/api/media')
-rw-r--r--app/views/api/media/create.rabl3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/views/api/media/create.rabl b/app/views/api/media/create.rabl
index 0239aa585..803a93094 100644
--- a/app/views/api/media/create.rabl
+++ b/app/views/api/media/create.rabl
@@ -1,4 +1,5 @@
 object @media
-attribute :id
+attribute :id, :type
 node(:url) { |media| full_asset_url(media.file.url) }
 node(:preview_url) { |media| full_asset_url(media.file.url(:small)) }
+node(:text_url) { |media| medium_url(media) }