6.1 Adding Documentation for the APIs

Secure API Manager allows you to add inline documentation, add a URL where the users access the documentation, or upload a file that contains the documentation. It also allows you to categorize the documentation that you are adding. You can add procedural (how to) documentation, samples, and SDK documentation, as well as provide URL links to support and developer forums.

6.1.1 Adding Inline Documentation for the APIs

Secure API Manager provides an embedded text editor for you to use when you add inline documentation. The text editor provides similar functionality to what you would find when you compose an email.

To add inline documentation:

  1. Log in to the Publisher using an administrator account.

    https://lifecycle-manager-dns-name:9444/publisher
  2. Find the API where you want to add the documentation.

  3. Click the name of the appropriate API, then click the Docs tab.

  4. Click Add New Document, then use the following information to add the inline documentation.

    Name

    Specify the name of this documentation that appears in a table on the Docs tab. You can add one or more documentation items an API.

    Summary

    Provide a summary of this documentation item. This information appears in the table on the Docs tab of the API.

    Type

    Select the type of documentation that you are adding. Select How To, Samples, Public Forum, Support Forum, or Other. If you select Other, you must add an additional summary of the documentation type in the field provided.

    Source

    For this example, select Inline as the documentation source.

  5. Click Add Document to add an entry to the documentation table on the Docs tab of the API.

  6. Click Edit Content on the new documentation entry in the table on the Docs tab.

    Secure API Manager launches an embedded text editor in a separate window.

  7. Add or create the appropriate documentation in the text editor. This is the inline documentation that the users see on the API.

  8. Click Save and Close.

  9. (Conditional) If you want to create additional inline documentation types, repeat Step 4 through Step 8 for each additional documentation type.

  10. To see the documentation as subscribers see it:

    1. Log in to the Store.

      https://lifecycle-manager-dns-name:9444/store
    2. Click the name of the appropriate API, then click the Documentation tab.

      The Store lists all of the documentation by type.

    3. Expand the documentation type, then click View Content to see the documentation.

6.1.2 Adding a URL that Contains Documentation for the APIs

You can add a URL to the API that provides a link to the documentation for the API on a Swagger server or for documentation posted online. You can also specify the URLs for your public and support forums for the developers. If you select Public Forum or Support Forum as the documentation Type, Secure API Manager automatically changes the Source to URL.

To add a URL for the documentation:

  1. Log in to the Publisher using an administrator account.

    https://lifecycle-manager-dns-name:9444/publisher
  2. Click the name of the appropriate API, then click the Docs tab.

  3. Click Add New Document, then use the following information to add the URL for the documentation.

    Name

    Specify the name of this documentation that appears in a table on the Docs tab. You can add one or more documentation items to an API.

    Summary

    Provide a summary of this documentation item. This information appears in the table on the Docs tab of the API.

    Type

    Select the type of documentation that you are adding. Select How To, Samples, Public Forum, Support Forum, or Other. If you select Other, you must add an additional summary of the documentation type in the field provided.

    Source

    For this example, select URL as the documentation source, then specify the URL in the new field that appears.

  4. Click Add Document to add an entry to the documentation table on the Docs tab of the API.

  5. Click Save and Close.

  6. (Conditional) If you want to add additional URLs for the documentation, repeat Step 3 through Step 5 for each additional URL.

  7. To see the documentation as subscribers see it:

    1. Log in to the Store.

      https://lifecycle-manager-dns-name:9444/store
    2. Click the name of the appropriate API, then click the Documentation tab.

      The Store lists all of the documentation by type.

    3. Expand the documentation type, then click View Content to see the documentation.

6.1.3 Uploading a File that Contains Documentation for the APIs

If your documentation for the API already exists in a file, Secure API Manager allows you to upload that file to the API. The document is stored on the API and the developers that use the API can download the file. Secure API Manager supports the following file types of any size:

  • .doc

  • .html

  • .pdf

  • .txt

To upload a file that contains the documentation:

  1. Log in to the Publisher using an administrator account.

    https://lifecycle-manager-dns-name:9444/publisher
  2. Click the name of the appropriate API, then click the Docs tab.

  3. Click Add New Document, then use the following information to upload the file that contains the documentation.

    Name

    Specify the name of this documentation that appears in a table on the Docs tab. You can one or more documentation items added to an API.

    Summary

    Provide a summary of this documentation item. This information appears in the table on the Docs tab of the API.

    Type

    Select the type of documentation that you are adding. Select How To, Samples, Public Forum, Support Forum, or Other. If you select Other, you must add an additional summary of the documentation type in the field provided.

    Source

    For this example, select File as the documentation source, then browse to and select the appropriate file that contains the documentation.

  4. Click Add Document to add an entry to the documentation table on the Docs tab of the API.

  5. Click Save and Close.

  6. (Conditional) If you want to add additional URLs for the documentation, repeat Step 3 through Step 5 for each additional URL.

  7. To see the documentation as subscribers see it:

    1. Log in to the Store.

      https://lifecycle-manager-dns-name:9444/store
    2. Click the name of the appropriate API, then click the Documentation tab.

      The Store lists all of the documentation by type.

    3. Expand the documentation type, then click View Content to see the documentation.