move the rest response list wrapper into core/api