Commit a27de9455f3b85fec6d819df2a5f08623b11b220
Committed by
Rodrigo Souto
1 parent
a98fc195
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,7 +51,7 @@ module Noosfero | ||
| 51 | 51 | ||
| 52 | class ArticleChild < Grape::Entity | 52 | class ArticleChild < Grape::Entity |
| 53 | root 'articles', 'article' | 53 | root 'articles', 'article' |
| 54 | - expose :id, :body | 54 | + expose :id, :body, :abstract |
| 55 | expose :created_at, :format_with => :timestamp | 55 | expose :created_at, :format_with => :timestamp |
| 56 | expose :title, :documentation => {:type => "String", :desc => "Title of the article"} | 56 | expose :title, :documentation => {:type => "String", :desc => "Title of the article"} |
| 57 | expose :created_by, :as => :author, :using => Profile | 57 | expose :created_by, :as => :author, :using => Profile |
| @@ -62,7 +62,7 @@ module Noosfero | @@ -62,7 +62,7 @@ module Noosfero | ||
| 62 | 62 | ||
| 63 | class Article < Grape::Entity | 63 | class Article < Grape::Entity |
| 64 | root 'articles', 'article' | 64 | root 'articles', 'article' |
| 65 | - expose :id, :body | 65 | + expose :id, :body, :abstract |
| 66 | expose :created_at, :format_with => :timestamp | 66 | expose :created_at, :format_with => :timestamp |
| 67 | expose :title, :documentation => {:type => "String", :desc => "Title of the article"} | 67 | expose :title, :documentation => {:type => "String", :desc => "Title of the article"} |
| 68 | expose :created_by, :as => :author, :using => Profile | 68 | expose :created_by, :as => :author, :using => Profile |