Updated use of annotations to define DTO type and controller paths