Accessing Publication Content

If you know the publication name, language code, and document ID of a topic, you can form a RESTful URL to access a publication, or topic in different formats. This RESTful URL structure can be used instead of some of the API calls in the content module.

Using the /content/ folder triggers RESTful URL syntax. These URLs provide an easy way to access a topic or publication without using more complicated URLs or multiple URL parameters (for example, &pub=Doc&lang=en&docid=task_896796).

The following RESTful URL types are available in Knowledge Center:
  • To load a publication's home page, use only the language code and publication name. For example:
    /KnowledgeCenter/content/<lang>/<pub name>

    This URL can be used instead of the home action in the Publication Management module.

  • To load a publication's home page and then open a specific topic, use only the language code, publication name, and document ID. For example:
    /KnowledgeCenter/content/<lang>/<pub name>/<document-ID>
  • To load the HTML of a topic independent of the publication page, use only the language code, publication name, document ID, and format type. For example:
    /KnowledgeCenter/content/<lang>/<pub name>/<document-ID>/html

    This URL can be used instead of the doc_html action in the Content Objects module.

  • To load a topic in PDF format, use only the language code, publication name, document ID, and format type. For example:
    /KnowledgeCenter/content/<lang>/<pub name>/<document-ID>/pdf

    This URL can be used instead of the doc_pdf action in the Content Objects module.

  • To load the source XML of a topic, use only the language code, publication name, document ID, and format type. For example:
    /KnowledgeCenter/content/<lang>/<pub name>/<document-ID>/xml
    This URL can be used instead of the xml action in the Content Objects module.