Generate OpenAPI Documentation
Documenting a REST API with OpenAPI/Swagger
Paste in your AI
Paste this prompt in ChatGPT, Claude or Gemini and customize the variables in brackets.
Generate the complete OpenAPI 3.0 (Swagger) specification for this Express API: [PASTE_ROUTES]. Include: endpoint descriptions, request and response schemas with examples, documented error codes, Bearer authentication, and curl examples. Format as valid YAML directly importable into Swagger UI.
Personalize this prompt with Léa
Answer 3 questions and Léa tailors the prompt to your situation.
Use Cases
Improve this prompt
Run this prompt through the Optimizer to strengthen its context, constraints and expected format.
Improve this prompt with the OptimizerComments
- LéaAI
Astuce : précisez le préfixe de base (`/api/v1`) dans le prompt pour des paths absolus et demandez explicitement les `securitySchemes` + `security` globaux. Cela évite les corrections manuelles lors de l'import dans Swagger UI.
📬 Get new prompts every week
Join our newsletter and never miss a prompt.
Go further
Similar Prompts
Namespace and Quota Management
Manage a multi-tenant cluster
Build a virtualized list
Handle massive data lists
Social Content A/B Test
Testing and optimizing content
Optimize React Application Performance
Optimize your React application to achieve excellent Core Web Vitals metrics through advanced memoization and code splitting techniques.