Commit 4aa9a336526997719d203aaf291885a974ed1f81

Authored by Victor Costa
1 parent c42bb486

api: separate exposed attributes

Showing 1 changed file with 3 additions and 1 deletions   Show diff stats
lib/noosfero/api/entities.rb
@@ -55,7 +55,9 @@ module Noosfero @@ -55,7 +55,9 @@ module Noosfero
55 55
56 class ArticleBase < Entity 56 class ArticleBase < Entity
57 root 'articles', 'article' 57 root 'articles', 'article'
58 - expose :id, :body, :abstract 58 + expose :id
  59 + expose :body
  60 + expose :abstract
59 expose :created_at, :format_with => :timestamp 61 expose :created_at, :format_with => :timestamp
60 expose :title, :documentation => {:type => "String", :desc => "Title of the article"} 62 expose :title, :documentation => {:type => "String", :desc => "Title of the article"}
61 expose :created_by, :as => :author, :using => Profile 63 expose :created_by, :as => :author, :using => Profile