prep work for restful web service