API Testing · Junior · Question 42 of 75
What does OpenAPI (Swagger) describe?
- 1Endpoints, parameters, request and response formats of an API
- 2The server hardware and the network that hosts the API
- 3The list of people who are allowed to use an API
Show the answer
Correct answer: Endpoints, parameters, request and response formats of an API
Explanation
An OpenAPI file is a contract and documentation. Testers use it to design cases and tools can generate tests and mocks from it.