Commit babeaf016f4771393ceec4ccceb0b79c8ada0725
1 parent
8e1425f1
Exists in
theme-brasil-digital-from-staging
and in
9 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| |