add indices rest service