Commit 014591dcecb89044115139ad6b1928f6a1516082

Authored by Victor Costa
1 parent 6017a75c

api: move slug from Article to ArticleBase

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
lib/noosfero/api/entities.rb
@@ -98,6 +98,7 @@ module Noosfero @@ -98,6 +98,7 @@ module Noosfero
98 expose :tag_list 98 expose :tag_list
99 expose :children_count 99 expose :children_count
100 expose :followers_count 100 expose :followers_count
  101 + expose :slug, :documentation => {:type => "String", :desc => "Trimmed and parsed name of a article"}
101 end 102 end
102 103
103 class Article < ArticleBase 104 class Article < ArticleBase
@@ -106,7 +107,6 @@ module Noosfero @@ -106,7 +107,6 @@ module Noosfero
106 expose :children, using: ArticleBase do |article, options| 107 expose :children, using: ArticleBase do |article, options|
107 article.children.limit(Noosfero::API::V1::Articles::MAX_PER_PAGE) 108 article.children.limit(Noosfero::API::V1::Articles::MAX_PER_PAGE)
108 end 109 end
109 - expose :slug, :documentation => {:type => "String", :desc => "Trimmed and parsed name of a article"}  
110 end 110 end
111 111
112 class Comment < Entity 112 class Comment < Entity