System Design · Junior · Question 71 of 75
What is OpenAPI (Swagger) used for?
- ✓Correct answer: Describing a REST API in a machine-readable format to generate docs, clients, types and tests
- 2Opening APIs to the public
- 3Encrypting API traffic
Explanation
Generating TypeScript types from the spec keeps the frontend in sync with the backend contract.