adds rest adapter and serializer