Remove first_name, last_name, and google_token columns from Users table
Create serializers for each table
Create factory methods for testing
Update Users relationships
Road Blocks
Adding self-referential relationships to UserSerializer. This is my first time using the json-apiserializer gem, so didn't get to dig into the docs yet.
Test Coverage
[X] I have tested this code with RSpec
The serializers were created with the json-apiserializer gem; however, we should consider adding tests for the serializers.
Validations need to be added to endpoint request edge cases and tested.
What I Did:
GET /users/:id
GET /users/:user_id/events
GET /users/:user_id/gyms
GET /users/:user_id/friendships
POST /users
PATCH /users/:id
first_name
,last_name
, andgoogle_token
columns fromUsers
tableUsers
relationshipsRoad Blocks
json-apiserializer
gem, so didn't get to dig into the docs yet.Test Coverage
json-apiserializer
gem; however, we should consider adding tests for the serializers.Questions/Notes: