Generate restfull api for admin.