Development
Generateur OpenAPI vers TypeScript
Convertit des specifications OpenAPI ou Swagger JSON/YAML en types TypeScript, parametres de requete et modeles de reponse avec format et style de nommage configurables
text· Résultat texteOuvrir l'outil
Démarrage rapide
Appelez cet outil depuis votre code en trois langages.
cURL
curl -X POST 'https://api.elysiatools.com/fr/api/tools/openapi-to-typescript-generator' \
-H 'Content-Type: application/json' \
-d '{"specInput":"openapi: 3.0.0\ninfo:\n title: User API\n version: 1.0.0\npaths:\n /users/{id}:\n get:\n operationId: getUser\n parameters:\n - in: path\n name: id\n required: true\n schema:\n type: string\n responses:\n \"200\":\n description: ok\n content:\n application/json:\n schema:\n $ref: \"#/components/schemas/User\"\ncomponents:\n schemas:\n User:\n type: object\n required: [id, name]\n properties:\n id:\n type: string\n name:\n type: string","sourceFormat":"yaml","outputFormat":"flat","namingStyle":"pascal","declarationStyle":"interface","namespaceName":"Api","includeOperationTypes":true,"includeDescriptions":true}'