Because it lets you refactor your API separately from your domain. And use the full power of the IDE/typechecker in both cases.
This approach especially shines with JAX-RS; you can write fully typed tests against your API methods, which look like pure logic functions.
Because it lets you refactor your API separately from your domain. And use the full power of the IDE/typechecker in both cases.
This approach especially shines with JAX-RS; you can write fully typed tests against your API methods, which look like pure logic functions.