From 4f9b7432dd4d323ac6cc4efceeae2efaffe62e7d Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Tue, 27 Sep 2016 16:58:23 +0200 Subject: Fix #52 - Add API versioning (v1) --- app/views/api/accounts/followers.rabl | 2 -- app/views/api/accounts/following.rabl | 2 -- app/views/api/accounts/relationship.rabl | 5 ----- app/views/api/accounts/relationships.rabl | 2 -- app/views/api/accounts/show.rabl | 10 ---------- app/views/api/accounts/statuses.rabl | 2 -- 6 files changed, 23 deletions(-) delete mode 100644 app/views/api/accounts/followers.rabl delete mode 100644 app/views/api/accounts/following.rabl delete mode 100644 app/views/api/accounts/relationship.rabl delete mode 100644 app/views/api/accounts/relationships.rabl delete mode 100644 app/views/api/accounts/show.rabl delete mode 100644 app/views/api/accounts/statuses.rabl (limited to 'app/views/api/accounts') diff --git a/app/views/api/accounts/followers.rabl b/app/views/api/accounts/followers.rabl deleted file mode 100644 index 9bb0d9c8f..000000000 --- a/app/views/api/accounts/followers.rabl +++ /dev/null @@ -1,2 +0,0 @@ -collection @followers -extends('api/accounts/show') diff --git a/app/views/api/accounts/following.rabl b/app/views/api/accounts/following.rabl deleted file mode 100644 index 9f2155293..000000000 --- a/app/views/api/accounts/following.rabl +++ /dev/null @@ -1,2 +0,0 @@ -collection @following -extends('api/accounts/show') diff --git a/app/views/api/accounts/relationship.rabl b/app/views/api/accounts/relationship.rabl deleted file mode 100644 index 3e5bf882c..000000000 --- a/app/views/api/accounts/relationship.rabl +++ /dev/null @@ -1,5 +0,0 @@ -object @account -attribute :id -node(:following) { |account| @following[account.id] || false } -node(:followed_by) { |account| @followed_by[account.id] || false } -node(:blocking) { |account| @blocking[account.id] || false } diff --git a/app/views/api/accounts/relationships.rabl b/app/views/api/accounts/relationships.rabl deleted file mode 100644 index 16fdc40d9..000000000 --- a/app/views/api/accounts/relationships.rabl +++ /dev/null @@ -1,2 +0,0 @@ -collection @accounts -extends 'api/accounts/relationship' diff --git a/app/views/api/accounts/show.rabl b/app/views/api/accounts/show.rabl deleted file mode 100644 index 4f6a3ff99..000000000 --- a/app/views/api/accounts/show.rabl +++ /dev/null @@ -1,10 +0,0 @@ -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 } diff --git a/app/views/api/accounts/statuses.rabl b/app/views/api/accounts/statuses.rabl deleted file mode 100644 index 12f00dd21..000000000 --- a/app/views/api/accounts/statuses.rabl +++ /dev/null @@ -1,2 +0,0 @@ -collection @statuses -extends('api/statuses/show') -- cgit