From b8374af3c96ed6fa9a8c5dc8bc9bec5c9cb9b33f Mon Sep 17 00:00:00 2001 From: Leandro Nunes dos Santos Date: Tue, 14 Apr 2015 20:48:05 -0300 Subject: [PATCH] API: expose abstract --- lib/noosfero/api/entities.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/noosfero/api/entities.rb b/lib/noosfero/api/entities.rb index 976db63..253a773 100644 --- a/lib/noosfero/api/entities.rb +++ b/lib/noosfero/api/entities.rb @@ -51,7 +51,7 @@ module Noosfero class ArticleChild < Grape::Entity root 'articles', 'article' - expose :id, :body + expose :id, :body, :abstract expose :created_at, :format_with => :timestamp expose :title, :documentation => {:type => "String", :desc => "Title of the article"} expose :created_by, :as => :author, :using => Profile @@ -62,7 +62,7 @@ module Noosfero class Article < Grape::Entity root 'articles', 'article' - expose :id, :body + expose :id, :body, :abstract expose :created_at, :format_with => :timestamp expose :title, :documentation => {:type => "String", :desc => "Title of the article"} expose :created_by, :as => :author, :using => Profile -- libgit2 0.21.2