Commit fa43ac7e16a245a4a72b941f8da4f88274c52c7d

Authored by Luciano Prestes
1 parent f3d1ede5
Exists in api_pagination

Add updated_at in entities of API

Signed-off-by: Luciano Prestes Cavalcanti <lucianopcbr@gmail.com>
Showing 1 changed file with 2 additions and 0 deletions   Show diff stats
lib/noosfero/api/entities.rb
@@ -33,6 +33,7 @@ module Noosfero @@ -33,6 +33,7 @@ module Noosfero
33 class Profile < Entity 33 class Profile < Entity
34 expose :identifier, :name, :id 34 expose :identifier, :name, :id
35 expose :created_at, :format_with => :timestamp 35 expose :created_at, :format_with => :timestamp
  36 + expose :updated_at, :format_with => :timestamp
36 expose :image, :using => Image 37 expose :image, :using => Image
37 end 38 end
38 39
@@ -77,6 +78,7 @@ module Noosfero @@ -77,6 +78,7 @@ module Noosfero
77 expose :body 78 expose :body
78 expose :abstract 79 expose :abstract
79 expose :created_at, :format_with => :timestamp 80 expose :created_at, :format_with => :timestamp
  81 + expose :updated_at, :format_with => :timestamp
80 expose :title, :documentation => {:type => "String", :desc => "Title of the article"} 82 expose :title, :documentation => {:type => "String", :desc => "Title of the article"}
81 expose :created_by, :as => :author, :using => Profile 83 expose :created_by, :as => :author, :using => Profile
82 expose :profile, :using => Profile 84 expose :profile, :using => Profile