The inner layer of the three GERM layers of the EMBRYO during its early development. The endoderm develops into the lining of the gastrointestinal tract and associated glands (LIVER; GALL-BLADDER; PANCREAS), the lining of the BRONCHI and ALVEOLI of the LUNGS and much of the URINARY TRACT.