simplify api view