Commit 0eb95949f8b3b4f3ea4501a8319ae94577411412
1 parent
02d5269c
Exists in
api_private_token
and in
2 other branches
Add model fields in API
- Add categories and members into Community - Add path into Article Signed-off-by: Luciano Prestes Cavalcanti <luciano@luciano.luciano> Signed-off-by: Thiago Ribeiro <thiagitosouza@hotmail.com>
Showing
1 changed file
with
3 additions
and
0 deletions
Show diff stats
lib/noosfero/api/entities.rb
@@ -51,6 +51,8 @@ module Noosfero | @@ -51,6 +51,8 @@ module Noosfero | ||
51 | class Community < Profile | 51 | class Community < Profile |
52 | root 'communities', 'community' | 52 | root 'communities', 'community' |
53 | expose :description | 53 | expose :description |
54 | + expose :categories | ||
55 | + expose :members, :using => Person | ||
54 | end | 56 | end |
55 | 57 | ||
56 | class CategoryBase < Entity | 58 | class CategoryBase < Entity |
@@ -86,6 +88,7 @@ module Noosfero | @@ -86,6 +88,7 @@ module Noosfero | ||
86 | expose :setting | 88 | expose :setting |
87 | expose :position | 89 | expose :position |
88 | expose :hits | 90 | expose :hits |
91 | + expose :path | ||
89 | end | 92 | end |
90 | 93 | ||
91 | class Article < ArticleBase | 94 | class Article < ArticleBase |