Add /memories, /cpus APIs