implement attr and call for `view`

localhost:8100/view/bb.i/P?a=1
localhost:8100/view/gc/isenabled?c=