rest service example