/swagger2api

Quick startup service from swagger & create api

Primary LanguageTypeScriptGNU General Public License v3.0GPL-3.0

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.