api controller spec