Fix doc and add httpAddPermResource API