Updated REST API serialization