updated question, answer serializers, added user serializer, refer to http://www.rubydoc.info/github/rails-api/active_model_serializers/