Endoscopy is a medical technique that doctors use to detect and treat certain conditions without major surgery. The popularity of these procedures has surged in recent years, and that’s a good thing.