Commit 1707e9efd4a2ff962a127cef7dfc3af1c234e0ed
Committed by
Rodrigo Souto
1 parent
41481856
Exists in
master
and in
29 other branches
expose image for articles
Showing
1 changed file
with
2 additions
and
0 deletions
Show diff stats
lib/noosfero/api/entities.rb
@@ -57,6 +57,7 @@ module Noosfero | @@ -57,6 +57,7 @@ module Noosfero | ||
57 | expose :created_by, :as => :author, :using => Profile | 57 | expose :created_by, :as => :author, :using => Profile |
58 | expose :profile, :using => Profile | 58 | expose :profile, :using => Profile |
59 | expose :categories, :using => Category | 59 | expose :categories, :using => Category |
60 | + expose :image, :using => Image | ||
60 | end | 61 | end |
61 | 62 | ||
62 | class Article < Grape::Entity | 63 | class Article < Grape::Entity |
@@ -69,6 +70,7 @@ module Noosfero | @@ -69,6 +70,7 @@ module Noosfero | ||
69 | expose :categories, :using => Category | 70 | expose :categories, :using => Category |
70 | expose :parent, :using => Article | 71 | expose :parent, :using => Article |
71 | expose :children, :using => ArticleChild | 72 | expose :children, :using => ArticleChild |
73 | + expose :image, :using => Image | ||
72 | end | 74 | end |
73 | 75 | ||
74 | class Comment < Grape::Entity | 76 | class Comment < Grape::Entity |