Installed the fos rest bundle and jms serializer