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 | 51 | class Community < Profile |
52 | 52 | root 'communities', 'community' |
53 | 53 | expose :description |
54 | + expose :categories | |
55 | + expose :members, :using => Person | |
54 | 56 | end |
55 | 57 | |
56 | 58 | class CategoryBase < Entity |
... | ... | @@ -86,6 +88,7 @@ module Noosfero |
86 | 88 | expose :setting |
87 | 89 | expose :position |
88 | 90 | expose :hits |
91 | + expose :path | |
89 | 92 | end |
90 | 93 | |
91 | 94 | class Article < ArticleBase | ... | ... |