Skip to content
| Marketplace
Sign in
Visual Studio Code>Formatters>swagger2apiNew to Visual Studio Code? Get it now.
swagger2api

swagger2api

liik

|
634 installs
| (0) | Free
Quickly converting api document to usable Front-End code.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

swagger2api( alpha )

Quickly converting api document to usable Front-End code.

How to use

  1. Open a swagger json file, press LIGHTING icon.

images/open-swagger.png

  1. Edit code template in normal Javascript file just as you like!

images/edit-file.png

  1. Press button again, if everything goes successfully, just check exportApi fold in your workspace.

images/export-file.png

Limitation

For security reason, there are some constraints for users.

  • Since user can modify the file which later will be excuted by this plugin and in case of any unfunctional or unexpected code injected to plugin runtime, the tempalte file must only export one given function, you could only write your help function inside the given scope. Once you didn't follow this rule, error will occur.
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft