Versions Compared
Key
- This line was added.
- This line was removed.
- Formatting was changed.
Table of Contents | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Overview
API documentation facilitates the use, integration, and basic understanding of your API and is an essential guide or manual for developers/users of your APIs. Good documentation can include various content such as code examples, tutorials, usage scenarios, and much more. Ultimately, good documentation is an important part of a positive Developer Experience (DX) as it enables users to solve problems on their own and can lead to increased API usage and adoption.
To make the documentation of your APIs as simple and comprehensive as possible, the API Control Plane gives you the freedom and flexibility to structure and design it as you wish. You can work with pages based on Markdown or Rich Text and create a folder structure according to your wishes. You can also create a folder, link it to Git, and obtain your documentation from there.
Image RemovedImage Added
Documentation of the API
If you navigate to the Documentation menu item in the second navigation menu within an API, you will see the first level of the documentation listed in tabular form.
In the top right-hand corner, there is a button that you can use to create a new item in the documentation (more on this below).
There can be different types of documentation items:
Markdown: Creates a new page in the documentation of the type "Markdown", which can be created and edited using a special Markdown editor. Markdown is an easy-to-use markup language that allows you to add formatting elements ( e.g. headings, links, or lists) to plain text.
Rich Text: Creates a new page in the documentation of the type "Rich Text". Rich text allows for more sophisticated formatting and styling with an editor that is comparable to a WYSIWYG editor.
Folder: Creates a new folder, that can contain all types of documentation pages or other folders.
The table itself is divided into three columns:
The Type of the documentation item, which is indicated through an icon:
: Markdown
: Rich Text
: Folder
The Name of the documentation item, which must be unique.
The Status of the documentation item, which specifies whether this documentation page is displayed in the developer portal ("published") or not ("not published").
By clicking on the individual entries in the table, you can access the respective documentation item to edit it or change its settings.
Folders
If the selected documentation item in the table is of the type "Folder", you will be transferred one hierarchy level down into the folder. There you have two more menu items to choose from:
Content: Here you will see the same table as described above for the first hierarchy level (Overview).
Settings: Here you can adjust various settings for this folder (more on this below).
In the top right-hand corner, there is a drop-down menu that you can access using the three dots. There you can delete the current folder if it contains no more items and create new documentation items.
Pages
If the selected documentation item in the table is of the types "Markdown" or "Rich Text", you will be transferred to an edit page of the corresponding type. here you have two more menu items to choose from:
Content: Depending on the type of page, a separate editor is displayed here. Details on this are described below in the sections "Edit Item - a Markdown Page" or "Edit Item - a Rich Text Page".
Settings: Here you can adjust various settings for this page (more on this below).
The current page can be deleted using the "Delete Item" button in the top right-hand corner.
To navigate back by one hierarchy level, you can click on the three dots to the left of the icon and the name of the current item.
Create a New Documentation Item
Image RemovedImage AddedTo create a new documentation item, select the "Create New Item" button in the top right-hand corner 'Create New Item' or the corresponding menu item of the same name from the dropdown drop-down menu in the same positionlocation.
A This will open a new dialog window will then open in which you have various input fields and optionsother settings:
Name:
With this input field
, the
documentation item can be given a name, which must be unique in the documentation of this specific API
.
Type of the Item: You Here you can choose between three types of item: ‘Folder’, ‘Markdown’, ‘Rich Text’.
The ‘Folder‘ type creates a folder that can contain all types of documentation.
The ‘Markdown‘ type creates documentation of the Markdown typeMarkdown: Creates a new page in the documentation of the type "Markdown", which can be created and edited using a special Markdown editor. Markdown is an easy-to-use markup language that allows you to add formatting elements ( e.The ‘Rich Text‘ type creates g. headings, links, or lists) to plain text.
Rich Text: Creates a new page in the documentation of the type rich text. Using a special text editor, simple text and HTML documentation can be created and edited.
"Rich Text". Rich text allows for more sophisticated formatting and styling with an editor that is comparable to a WYSIWYG editor.
Folder: Creates a new folder, that can contain all types of documentation pages or other folders.
Toggle “Welcome Page of this API”: This option specifies which documentation page should be displayed as the overview page in the developer portal for the corresponding API. Only one documentation can be selected as a welcome page at a time. The last setting overwrites the previous one. This toggle is only visible for documentation items of the types "Markdown" and "Rich Text".
items as listed below.
To create the documentation item with the settings you have specified, click on the '"Create New Item' " button.
Edit
Item -a Markdown Page
Image RemovedImage AddedIf you edit an item of a page with the type '"Markdown'", a special markdown Markdown editor is displayed. This editor is divided into two parts. areas: On the left-hand side, you can make write your entries documentation and use the special control characters for markdown syntax commands. On the right-hand side, you will see an updated and a rendered live version of your inputdocumentation. All formatting options using Markdown can be found in the official documentation.
You can use the toggle '"Auto Save' " toggle to set whether the entries changes you make to your documentation on the left should be -hand side of the editor are automatically saved permanently or not. If you deactivate this option is not active, you will have to must click on the save "Save" button at the bottom end of your edit editing to save your changes permanently.
Image Removed
You can call up the image management dialog via the 'Image Management' buttonImage Management in Markdown
Image AddedAs a way to make the documentation more comprehensible for your users, you may want to add images to support your documentation. To make this possible in Markdown, there is an image management function within the API Control Plane, which can be accessed via the "Image Management" button within a Markdown page.
Here you can upload any kind type of image, which will then be available within the documentation of this API (not across multiple APIs). It will be saved until you delete it. Everyone who has access to this API can also see the uploaded image. The maximum size is 2 MB.
Select the image you want to display in the documentation, copy the Markdown snippet that appears below and paste it into your documentation to insert the image.
Edit
Item -a Rich Text
With the type rich text you get a graphical editorPage
If you edit a page with the type "Rich Text", a graphical editor is provided, comparable to a WYSIWYG editor, with which you can easily and conveniently create documentation. You can also use this page type to create your documentation in HTML.
A summary You can find an overview of all available HTML templates can be found here: in the CMS Template Library.
Image RemovedImage AddedIf you want to edit an item of the 'Rich Text' type, you first come navigate to a documentation page of type "Rich Text", you will first be taken to the read-only editoroverview. here Here you can view see the current item documentation page in its current state. To edit the itempage, click on the '"Edit' " button. The editor then switches to edit mode. In this mode , where you have many different tools at your disposal , which are known that you may already be familiar with from standard text editing programs. You can edit texts directly in the editor.
Image RemovedTo insert our
Image AddedTo make it easier to set up the documentation and to provide initial design ideas, there are predefined HTML templates in the API Control Plane that you can use and customize according to your preferences. To insert one of the predefined HTML templates, you can click on the '"Insert Template' " button or on the stamp symbol icon . This will open another window with all available templatesa preview window where you can choose from all available HTML templates. As mentioned above, you can find an overview of all available HTML templates in the CMS Template Library.
If you want to edit the plain HTML you have to click of this page, you can do so by clicking on the source code symbol icon . This will open another opens a window in which displays the complete item the entire page is displayed as HTML code . Here you can insert new HTML code or edit existing code.which can be modified
To save your changes permanently, click on the '"Save' button" button at the end of your editing.
Settings - Markdown, Rich Text & Folder
Image RemovedItems of the type 'Markdown' or 'Rich Text' have the same structure as the settings view. The item of type 'Markdown' differs from the other types in the settings view only in that it has no toggle 'Welcome Page of this API'Change the Settings of a Page or Folder
Image AddedThe settings that were specified when the documentation item was created, as well as some other settings, can be changed later.
Documentation pages of the types "Markdown" or "Rich Text" have the same structure in their settings view.
Only documentation items of type "Folder" differ in the sense that the toggle "Welcome page of this API" is not available, as folders cannot function as a documentation page. There are various input fields and toggles available in the settings view.:
Name: Specifies the name of the documentation item, which must be unique in the documentation of this specific API.
Toggle '"Published': Use this option to specify if ": Specifies whether this documentation page should be or folder is displayed in the developer portal ("published") or not ("not published").
Toggle '"Welcome Page of this API': Use this option to specify ": Specifies which documentation page should be displayed as the overview page in the developer portal for the corresponding API. Only one documentation can be selected as a welcome page at a time. The last setting overwrites the previous one.
UrlURL: The url link to the a Git repository from which you would like to obtain your documentation.
Git Credential: The Git credential Choose the credentials to log in to into the specified Git repository. The Git credentials can have to be created in Configuration > Git Credentials beforehand.
Branch: The Specify the branch within the Git repository from which you would like to obtain your documentation.
Path: The path Specify the path (or subfolder) within the Git repository from which you would like to obtain your documentation.
Fetch interval: The Choose the interval at which the latest version Git repository should be checked for the latest version.
Table of Contents
Table of Contents | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|