remove p and i from rest url
Add document statistic endpoint