IDE Extensions
The set of extensions that integrates the API-design essential tools into their everyday work.
Table of contents
Summary
These set of extensions were built with a cooperation mindset between them: they increase the capabilities of each other, including markdownlint and Spectral.
The API hub provides the rating of the modules evaluated on the Scoring service, giving you real-time insights into what score to expect. For every rule broken, you can easily open the respective file/line on your IDE! And it works with Visual Studio Code and IntelliJ.
To work, the API hub uses an in-IDE-integrated SPA, that displays visual information about the broken rules and uses bidirectional communication with your API files.
In the VS Code, you can take advantage of the Spectral quick fix plugin to easily correct the linted errors. See in the previous gif how errors are corrected with a click!
For these tools to work, you must deploy the Scoring microservice: the main piece of the scoring system. Learn how in the Scoring service section.
SPA deployment
You need to have the SPA running so that the extensions are working seamlessly. To do so, you need to deploy the SPA locally with the following commands:
-
Clone this repository:
git clone git@github.com:InditexTech/api-scoring-ide-plugins.git
-
Place yourself in the correct directory:
cd plugins/spa-apiscoringviewer/code
-
Install the dependencies:
npm i
-
Once the process finishes, start the SPA:
npm run start
Installation
To install the extensions, you just need to search for all the following extensions in the IDE’s marketplace and download them.
VS Code Marketplace IntelliJ Marketplace