An OpenAPI spec is the closest thing an API has to a map. Every path, every method, and for each one, a line that says which credentials it needs. That last part is the interesting one, because nothing in the spec enforces it. The spec describes what the team intended. The server does whatever its code does.
So the spec gives you two lists worth checking. The endpoints it marks as open, which you should read carefully. And the endpoints it marks as protected, which you should confirm really are. This article shows how to pull both lists out of a spec with a short script, how to probe them with controls so you don't report noise, and how to prove a real gap.
Only test applications you own or are authorized to test. Every example below uses stand-in data and a mock API on 127.0.0.1 .
Where the spec comes from
If you're testing your own API, you already have it. On an authorized test, it's often public.β¦