separating api specs from views specs