Qubership APIHUB ExtensionOverviewQubership APIHUB extension allows you to publish API specifications or other API-related documents from a local folder to APIHUB. ![]() UsageAfter installing the extension, open a folder and navigate to Qubership APIHUB extension, which is shown in the Activity Bar. If your root folder contains at least one OpenAPI or GraphQL specification, you will see it in the "Documents to Publish" section. Specifications from subfolders will also be shown. Notes:
Select the files you need to publish. If you need to publish files other than OpenAPI or GraphQL specifications - such as PDF, Markdown or DOC files - you can extend list of files for publications via the configuration file. Along with file selection, specify the following information:
After selecting the files and filling in all the required fields, click the Publish button. The status bar will indicate the progress of the publication, and once it is complete, a notification will be displayed. If your OpenAPI specification contains remote references to other files, the extension will automatically gather all referenced files (if they are available in the current root folder) and include them in the publication. APIHUB merges these referenced files with the main OpenAPI specification file, converting external references into local ones. If you are working with multi-root workspace, you need to publish files from each root folder separately. Each root folder will be associated with a different package id and have its own configuration file. Configuration fileConfiguration file is file where APIHUB extension stores publication-related information. It is
Example of configuration file:
The configuration file is automatically created after your first publication and updated with each subsequent publication. It stores packageId of published version and list of files (paths to the files) that were published. The next time you use the extension, these documents will be pre-selected and the package id will be pre-filled in the extension. You can add APIHUB configuration file to source control system to share it with other people working with the same source control repository. If your open folder does not have a configuration file but you need to extend the list of files to publish, you can manually create it following the specified format. |