* Update specs for doorkeeper test * Add bang * Create #authenticate * Create /api/articles/ endpoint * Update specs * Update me.json.jbuilder * Fix typo and spacing * Support pagination for #me * Update #authenticate! to support cookies * Make per_page a param * Disable method-complexity check * Enable refresh_token * Create /api/users/me endpoint
11 lines
470 B
Ruby
11 lines
470 B
Ruby
json.type_of "user"
|
|
json.id @user.id
|
|
json.username @user.username
|
|
json.name @user.name
|
|
json.summary @user.summary
|
|
json.twitter_username @user.twitter_username
|
|
json.github_username @user.github_username
|
|
json.website_url @user.website_url
|
|
json.location @user.location
|
|
json.joined_at @user.created_at.strftime("%b %e, %Y")
|
|
json.profile_image ProfileImage.new(@user).get(320)
|