simplify api endpoint configuration