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,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 |