Little Introduction I used serializers and the built in email formatter to display the desired json attributes.
The gem 'active-models-serializers' takes care of displaying the wanted model fields to the user.
To set up the project run:
rails db:migrate
rails db:seed