add common api auto spec prototype