-
Notifications
You must be signed in to change notification settings - Fork 0
Tutorial
View most recent version on Tango.us or at tutorial.html
In repo, there is also an additional file named "fancy_dist.json" to add more features for your github page (error messages, request/response samples, distinct parameters etc)
To merge multiple API descriptions, you need to use the redocly-cli
To install Redocly, you'll need to use npm (Node Package Manager) since Redocly is a set of tools for working with APIs and documentation, and it's built on top of Node.js. Here are the general steps to install Redocly using npm:
-
Node.js and npm: Make sure you have Node.js and npm installed on your machine. You can download and install them from the official website: Node.js Downloads.
-
Create a new Node.js project (if needed): If you don't have an existing Node.js project, you can create a new one by running the following commands in your terminal or command prompt:
mkdir my-redocly-project cd my-redocly-project npm init -yThis will create a new
package.jsonfile in your project folder. -
Install Redocly CLI: Run the following command to install Redocly CLI globally on your machine:
npm install -g @redocly/openapi-cli
This installs the Redocly OpenAPI CLI tool globally, allowing you to use it from any directory in your terminal.
-
Verify Installation: You can verify the installation by running:
redocly --version
This should print the installed Redocly CLI version.
Keep in mind that the installation steps may vary slightly depending on your operating system and specific setup. It's always a good idea to check the official documentation for any updates or changes: Redocly CLI Documentation.
After that, you use the join command to merge different API descriptions (e.g api1.yaml , api2.yaml) into a single one (e.g epi_join.yaml):
redocly join api1.yaml api2.yaml -o api-join.yaml