update wiki api based on the edx code