Add DTOs and refactoring configuration API