rhbz988202 - move dto from api to server
rhbz988202 - fix REST tests and dependencies