The Generator for MicroProfile Rest Client extension provides support for generating a MicroProfile REST Client interface template from an OpenAPI document in Visual Studio Code. This extension calls the openapi-generator to generate models
and apis
folders. The code for this extension is hosted under the MicroShed organization on GitHub. Learn more about MicroProfile Rest Client on GitHub.
(View -> Command Palette...)
, then select MicroProfile: Generate a MicroProfile REST Client
to run the extensionThe extension prompts for the following parameters:
src
directory of project to generate intoThe extension will generate models
and apis
folders into the specified directory. The package name will be auto-filled based on the directory generated into.
Contributions to the Generator for MicroProfile Rest Client extension are welcome!
Our CONTRIBUTING document contains details for submitting pull requests.
To build and run the extension locally:
Fork this repository
Clone your fork: git clone git@github.com:{your-username}/mp-rest-client-generator-vscode-ext.git
cd mp-rest-client-generator-vscode-ext
Create a branch for the issue you are going to work on: git checkout -b branch-name-for-your-issue
Install dependencies: npm install
and npx openapi-generator-cli version
Run the extension in VS Code by selecting Run Extension
from the debug panel or by pressing F5
Alternatively, build a .vsix
file:
vsce package
to generate the mp-rest-client-generator-vscode-ext-xxx.vsix
fileView/Command Palette
Extensions: Install from VSIX...
and choose the generated mp-rest-client-generator-vscode-ext-xxx.vsix
fileGenerate a REST client by right-clicking on a folder and selecting "Generate a MicroProfile REST Client", or via the command palette by selecting "MicroProfile: Generate a MicroProfile REST Client"
Please report bugs, issues and feature requests by creating a GitHub issue.
MicroProfile® and the MicroProfile logo are trademarks of the Eclipse Foundation.