Simple sample of building REST api with JAVA