Commit 1a2307cb3e5c4393e598489125aa66db4cf347e4
Exists in
theme-brasil-digital-from-staging
and in
9 other branches
Merge branch 'api' into production
Showing
1 changed file
with
1 additions
and
2 deletions
Show diff stats
lib/noosfero/api/entities.rb
| ... | ... | @@ -57,12 +57,11 @@ module Noosfero |
| 57 | 57 | |
| 58 | 58 | class CategoryBase < Entity |
| 59 | 59 | root 'categories', 'category' |
| 60 | - expose :name, :id | |
| 60 | + expose :name, :id, :slug | |
| 61 | 61 | end |
| 62 | 62 | |
| 63 | 63 | class Category < CategoryBase |
| 64 | 64 | root 'categories', 'category' |
| 65 | - expose :slug | |
| 66 | 65 | expose :full_name do |category, options| |
| 67 | 66 | category.full_name |
| 68 | 67 | end | ... | ... |