Add definition and spec for ap