API Testing · Senior · Question 68 of 75
How do you approach testing an API with no documentation?
- 1Explore it, record traffic, infer a spec and confirm with owners
- 2Test only the status codes of the endpoints you guess
- 3Refuse to test until full documentation is written
Show the answer
Correct answer: Explore it, record traffic, infer a spec and confirm with owners
Explanation
Capturing real calls from clients gives a first map. Writing the inferred OpenAPI spec turns knowledge into a shared artifact.