Created REST-serializer for Sails.