This site contains the documentation that is relevant to older WSO2 product versions and offerings.
For the latest WSO2 documentation, visit https://wso2.com/documentation/.
Add API Documentation In-line, using a URL or a File
API documentation helps API subscribers understand the functionality of the API, and API publishers to market their APIs better and sustain competition. Using the API Publisher, you can add different types of documentation from different sources. All documents created in the API Publisher have unique URLs to help improve SEO support.
The documentation types supported in the API Publisher are as follows:
- In-line: Hosts documentation (How-tos, Samples, SDK, forums etc.) in WSO2 API Publisher itself and allows it to be edited directly from the UI.
- URL: Links to file references (URLs) of an external configuration management system.
- File: Allows to upload the documentation directly to the server.
- Using the integrated API Console
Do you want to set different visibility levels to the API documentation than the API? See API documentation visibility.
- Sign in to the WSO2 API Publisher.
https://<hostname>:9443/publisher
 Click the API (e.g.,Â
PhoneVerification 1.0.0
) for which you want to add documentation.
Add in-line documentation.
Select the Docs tab of the API and click Add New Document.
Enter the following details to create documentation in-line.
Name PhoneVerification Summary Check the validity of a phone number Type How To Source In-line - Click Add Document.
Click Edit Content to open an embedded editor.
Update button can be used to update/change the document information.
- Edit the document content in-line using the embedded editor and click Save and Close.
The API's Doc tab opens.
Add documentation using a URL.
Click Add New Document to add another doc type.
Enter the following information to create another doc using a URL.
Name CDYNE Wiki Summary CDYNE Phone Notify API
Type Other (specify) Source URL
https://cdyne.com/downloads/SPECS_Phone-Notify.pdfClick Add Document.
The API's Doc tab opens.Â
Add documentation using a file.
Click Add New Document to add yet another document using a file.
Enter the following information.
Name API Manager Samples Summary API Manager Samples Type Samples & SDK Source You can provide any file format (common formats are .pdf
,.html
,.doc
,.txt
) of any size. For example, use the sample PDF file here.Click Add Document.
You have now added three documents to the API: in-line, using a URL, and a file.
- Log in to the WSO2 API Store and click theÂ
PhoneVerification
 1.0.0 API.
https://<hostname>:9443/store
- Go to the API's Documentation tab and see the documents listed by type.Â
Click the links to see the documentation content. As a subscriber, you can read the documentation and learn about the API.
You have created documentation using the API Publisher and viewed them as a subscriber in the API Store.