Proposal: VSCode command to download OpenAPI specification #2509
Labels
Area/Tooling
module/http
Status/Draft
In circulation by the author for initial review and consensus-building
Team/PCM
Protocol connector packages related issues
Type/Proposal
Summary
Ballerina HTTP service automatically generates the service description for each service. But there is no convenient way to retrieve it. This proposal is to address this concern.
Goals
Motivation
As mentioned is the summary section, Ballerina HTTP services automatically generates service description for each service. The service description is captured in the form of OpenAPI Specification (OAS). However, to get the OAS you need to do the below.
Consider a service running on path
foo
.Once discovered user has to do the following.
This can be simplified with a VSCode command as explained in the section.
Description
VSCode commands allows you to codify small work of units. Ballerina already has such commands.
Similarly, another command named
Ballerina: Download OpenAPI Specification
can be added to the pallet. This command can simply download the service description from a given HTTP service. The command should take the URL of the service as the input.Once executed, it should create a service-desc.yaml file with the OAS content in the root of the project directory.
The text was updated successfully, but these errors were encountered: