Commit b8374af3c96ed6fa9a8c5dc8bc9bec5c9cb9b33f
Committed by
Rodrigo Souto
1 parent
26a92230
Exists in
master
and in
29 other branches
API: expose abstract
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
lib/noosfero/api/entities.rb
... | ... | @@ -51,7 +51,7 @@ module Noosfero |
51 | 51 | |
52 | 52 | class ArticleChild < Grape::Entity |
53 | 53 | root 'articles', 'article' |
54 | - expose :id, :body | |
54 | + expose :id, :body, :abstract | |
55 | 55 | expose :created_at, :format_with => :timestamp |
56 | 56 | expose :title, :documentation => {:type => "String", :desc => "Title of the article"} |
57 | 57 | expose :created_by, :as => :author, :using => Profile |
... | ... | @@ -62,7 +62,7 @@ module Noosfero |
62 | 62 | |
63 | 63 | class Article < Grape::Entity |
64 | 64 | root 'articles', 'article' |
65 | - expose :id, :body | |
65 | + expose :id, :body, :abstract | |
66 | 66 | expose :created_at, :format_with => :timestamp |
67 | 67 | expose :title, :documentation => {:type => "String", :desc => "Title of the article"} |
68 | 68 | expose :created_by, :as => :author, :using => Profile | ... | ... |