add api sample and add admin