rest service consumption