Update and finalize Rest service
Revert "Update and finalize Rest service"

This reverts commit f82e009c703593d2265be52d6157f668d60cf38c.
add pom to sample