Commit d47207b7394fb920c2d03a18b06a18c945812948
Committed by
Rodrigo Souto
1 parent
7807c913
Exists in
api_tasks
and in
4 other branches
adding user id
Showing
1 changed file
with
1 additions
and
0 deletions
Show diff stats
lib/api/entities.rb
@@ -59,6 +59,7 @@ module API | @@ -59,6 +59,7 @@ module API | ||
59 | 59 | ||
60 | class User < Grape::Entity | 60 | class User < Grape::Entity |
61 | root 'users', 'user' | 61 | root 'users', 'user' |
62 | + expose :id | ||
62 | expose :login | 63 | expose :login |
63 | expose :person, :using => Profile | 64 | expose :person, :using => Profile |
64 | expose :permissions do |user, options| | 65 | expose :permissions do |user, options| |