added a function to provide item data via REST service.