specs implemented for api controller