Skip to content
Snippets Groups Projects
Commit 141b8b67 authored by Michi302's avatar Michi302
Browse files

Make single user API endpoint return Entities::User instead of Entities::UserBasic

parent 540eb0a9
No related branches found
No related tags found
1 merge request!2225[API] Change single user endpoint to return Entities::User instead of Entities::UserBasic
Loading
Loading
@@ -123,6 +123,13 @@ Parameters:
"name": "John Smith",
"state": "active",
"avatar_url": "http://localhost:3000/uploads/user/avatar/1/cd8.jpeg",
"created_at": "2012-05-23T08:00:58Z",
"is_admin": false,
"bio": null,
"skype": "",
"linkedin": "",
"twitter": "",
"website_url": ""
}
```
 
Loading
Loading
Loading
Loading
@@ -39,7 +39,7 @@ module API
if current_user.is_admin?
present @user, with: Entities::UserFull
else
present @user, with: Entities::UserBasic
present @user, with: Entities::User
end
end
 
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment