Endoscopy is an examination of body cavities using an endoscope that is used for diagnosis or healing. This technique uses fiber optics and video technology so as to enable the entire body structure to be inspected as a whole. Many treatments used to be surgical but are now easier and safer using an endoscope.