added serializers and json rendering to our api