build metadata rest service