Commit f062bc1a274384ce51b571cb0b99e3534d6d8cca
1 parent
cad8c6de
Exists in
theme-brasil-digital-from-staging
and in
9 other branches
api: expose category slug
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,12 +57,11 @@ module Noosfero | ||
57 | 57 | ||
58 | class CategoryBase < Entity | 58 | class CategoryBase < Entity |
59 | root 'categories', 'category' | 59 | root 'categories', 'category' |
60 | - expose :name, :id | 60 | + expose :name, :id, :slug |
61 | end | 61 | end |
62 | 62 | ||
63 | class Category < CategoryBase | 63 | class Category < CategoryBase |
64 | root 'categories', 'category' | 64 | root 'categories', 'category' |
65 | - expose :slug | ||
66 | expose :full_name do |category, options| | 65 | expose :full_name do |category, options| |
67 | category.full_name | 66 | category.full_name |
68 | end | 67 | end |