Commit 2a98a060caccd82ec8cd9bcead886142f766c069

Authored by Nihad Abbasov
1 parent 24047e1e

API: don't expose 'updated_at' for notes

Showing 2 changed files with 2 additions and 3 deletions   Show diff stats
doc/api/notes.md
... ... @@ -20,8 +20,7 @@ GET /projects/:id/notes
20 20 "blocked": false,
21 21 "created_at": "2012-05-23T08:00:58Z"
22 22 },
23   - "updated_at":"2012-11-27T19:16:44Z",
24   - "created_at":"2012-11-27T19:16:44Z"
  23 + "created_at": "2012-11-27T19:16:44Z"
25 24 }
26 25 ]
27 26 ```
... ...
lib/api/entities.rb
... ... @@ -73,7 +73,7 @@ module Gitlab
73 73 expose :id
74 74 expose :note, as: :body
75 75 expose :author, using: Entities::UserBasic
76   - expose :updated_at, :created_at
  76 + expose :created_at
77 77 end
78 78  
79 79 class MRNote < Grape::Entity
... ...