Add rspecs for API