doc + rest service