Commit f4a0582b0b7f27517ffc44ef361a69e52fb3862b
Exists in
master
and in
21 other branches
Merge branch 'add_fields_in_api' into 'api'
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> See merge request !636
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 | ... | ... |