Add ret to API_END.

refs #969