set content type for all methods as json and update docs