Changed structure of REST api.
Added bean validation to services