build rest requirment