add params type
optimize api view