vscode-restclient icon indicating copy to clipboard operation
vscode-restclient copied to clipboard

feat: Add Swagger/OpenAPI import support

Open danishjoseph opened this issue 2 years ago • 3 comments

🌟 This PR introduces the ability to import Swagger/OpenAPI files into the RestClient extension, allowing users to generate HTTP requests directly from their Swagger/OpenAPI definitions.

The following changes have been made:

1️⃣ Added a new SwaggerController class to handle the import process. 2️⃣ Created a swaggerUtils.ts file to house utility functions for parsing and generating requests from Swagger/OpenAPI definitions. 3️⃣ Modified the extension to include the Import from file option in the QuickPick menu. 4️⃣ Auto save and view/clear imported files

Screenshots

Screen Recording 2023-10-14 at 3 18 42 AM

Please review the changes and let me know if any modifications are required. 🙏

danishjoseph avatar Oct 14 '23 01:10 danishjoseph

nice changes. I wonder if it will be merged eventually...

anton-bocharov-3shape avatar Jan 24 '24 06:01 anton-bocharov-3shape

Functionality and PR very well written, I hope it is merged.

geovanent avatar Jan 25 '24 09:01 geovanent

Nice! +1

SjaaLom avatar Apr 23 '24 14:04 SjaaLom

@danishjoseph merged, thanks

Huachao avatar May 10 '24 01:05 Huachao