changed /doctypes response for doctypes list and added /doctypes/:doctype for showing details