docbrown/app/views/api/v0/shared/_user_show.json.jbuilder
Spencer de3d62bc40
API: Endpoint to get an organization's users (#11514)
* add tests

* add route

* add users action to organizations controller

* add jbuilder file

* update api docs

* add recource routes

* make updates to organizations controller

* remove org_users from api docs

* update spec

* add users show jbuilder

* bug fix for user show
2020-11-25 12:50:57 +01:00

16 lines
292 B
Ruby

json.type_of "user"
json.extract!(
user,
:id,
:username,
:name,
:summary,
:twitter_username,
:github_username,
:website_url,
:location,
)
json.joined_at user.created_at.strftime("%b %e, %Y")
json.profile_image Images::Profile.call(user.profile_image_url, length: 320)