diff options
Diffstat (limited to 'app/views/api/v1/accounts/show.rabl')
-rw-r--r-- | app/views/api/v1/accounts/show.rabl | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/app/views/api/v1/accounts/show.rabl b/app/views/api/v1/accounts/show.rabl new file mode 100644 index 000000000..4f6a3ff99 --- /dev/null +++ b/app/views/api/v1/accounts/show.rabl @@ -0,0 +1,10 @@ +object @account + +attributes :id, :username, :acct, :display_name, :note + +node(:url) { |account| TagManager.instance.url_for(account) } +node(:avatar) { |account| full_asset_url(account.avatar.url(:large, false)) } +node(:header) { |account| full_asset_url(account.header.url(:medium, false)) } +node(:followers_count) { |account| account.followers.count } +node(:following_count) { |account| account.following.count } +node(:statuses_count) { |account| account.statuses.count } |