add dto for rest and serializer for record