Commit 4aa9a336526997719d203aaf291885a974ed1f81
1 parent
c42bb486
Exists in
theme-brasil-digital-from-staging
and in
9 other branches
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 | 55 | |
56 | 56 | class ArticleBase < Entity |
57 | 57 | root 'articles', 'article' |
58 | - expose :id, :body, :abstract | |
58 | + expose :id | |
59 | + expose :body | |
60 | + expose :abstract | |
59 | 61 | expose :created_at, :format_with => :timestamp |
60 | 62 | expose :title, :documentation => {:type => "String", :desc => "Title of the article"} |
61 | 63 | expose :created_by, :as => :author, :using => Profile | ... | ... |