rest service example for seminar