description |
---|
This article describes how to create documentation for v2 APIs |
With the APIM Console, you can create API documentation, import API documentation, and add API metadata. Gravitee supports ASCIIDOC, AsyncAPI spec, OpenAPI spec, Swagger, and Markdown formats.
To import documentation:
- Log in to your APIM Console
- Select APIs from the left nav
- Select your API
- Select Documentation from the inner left nav
- Select the Pages tab
- Choose one of the following two options:
-
Click on Import multiple files
Import multiple files
- Toggle Publish all imported pages ON or OFF
- To Select your source, choose from: Bitbucket, git, GitHub, GitLab, or a URL
- Fill in the information appropriate to and required by your selection
- Click IMPORT
-
Import individual files while creating new API documentation:
-
To create API documentation:
- Log in to your APIM Console
- Select APIs from the left nav
- Select your API
- Select Documentation from the inner left nav
- Under the Pages tab, select the
icon
- Select your preferred format
- Create and configure your documentation:
- Give your documentation a name
- Choose whether to:
- Set the documentation as the API homepage
- Publish the documentation page
- Make the documentation private to authorized users
- Define how to create, or get, the documentation content:
- Fill in the documentation inline yourself: If you select this option, you'll be given the option to start typing your documentation
- Import the documentation from a file
- Import documentation from an external source: Gravitee supports Bitbucket, git repository, Github, GitLab, and public URLs
- Click SAVE
To add metadata:
-
Log in to your APIM Console
-
Select APIs from the left nav
-
Select your API
-
Select Documentation from the inner left nav
-
Select the Metadata tab
-
Click on + Add API Metadata
Add API metadata
-
Choose a name for your API, select the format (string, numeric, boolean, date, mail, url), and define the value
-
Click Save