Skip to content

Instantly share code, notes, and snippets.

@shosanna
Last active August 29, 2015 14:02
Show Gist options
  • Save shosanna/280a1f7c0cdb67bb2112 to your computer and use it in GitHub Desktop.
Save shosanna/280a1f7c0cdb67bb2112 to your computer and use it in GitHub Desktop.
unification refactoring

AUTHORIZATION

  • isConfirmed => is_confirmed
  • accessToken => access_token

COMMUNITY

  • createdAt => created_at
  • updatedAt => updated_at
  • downVotes => down_votes
  • upVotes => up_votes

POST

  • createdAt => created_at
  • updatedAt => updated_at
  • isPrivate => is_private

RATING

  • createdAt => created_at
  • updatedAt => updated_at
  • userToFullName => user_to_full_name
  • userFromToName => user_from_full_name
  • userTo => user_to
  • userFrom => user_from
  • entityHelper => entity_helper
  • userFromAvatar => user_from_avatar

USER

  • createdAt => created_at
  • updatedAt => updated_at
  • lastLogin => last_login
  • agreedWithTerms => agreed_with_terms
  • downVotes => down_votes
  • upVotes => up_votes

SESSIONS

  • activeIdentity => active_identity
  • getLoggedInUser => get_logged_in_user

API/COMMUNITIES/MEMBERS

  • getFriend => get_friend
  • userFullName => user_full_name
  • userId => user_id
  • userType => user_type
  • userFollowingAt => user_following_at
  • userAvatar => user_avatar

USER/COMMUNITIES

  • userFullName => user_full_name
  • userId => user_id
  • userType => user_type
  • startFollowingAt => start_following_at
  • userAvatar => user_avatar

USERS/FOLOWERS

  • isFollower => is_follower
  • userFullName => user_full_name
  • userId => user_id
  • userType => user_type
  • startFollowingAt => start_following_at
  • userAvatr => user_avatar

USERS/FRIENDS

  • getFriend => get_friend
  • userFullName => user_full_name
  • userId => user_id
  • userType => user_type
  • startFollowingAt => start_following_at
  • userAvatar => user_avatar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment