Documentation

Talcoe API Docs for Confluence

Talcoe API Docs: OpenAPI Spec Viewer for Confluence puts an OpenAPI or Swagger file on a Confluence Cloud page as readable API docs. You attach the file to the page or paste its text into the macro. Readers see every endpoint under its tag, with parameters, request bodies, responses and examples. This page covers adding and changing the macro, every setting, what the docs show, who can do what, limits and data. It is a Forge app, listed under the Talcoe vendor page on the Atlassian Marketplace.

What it does

OpenAPI 3.0, OpenAPI 3.1 and Swagger 2.0 files work, in JSON or YAML. The macro loads the file through Confluence and draws it as a list of endpoints in the reader's browser. It has no Try it out button and sends no request to the API you describe.

Add API docs to a page

  1. Attach your API file to the page, or keep its text ready to paste.
  2. Open the page for editing, type / and choose the API docs macro.
  3. Under Where is the API file, choose A file attached to this page or Text pasted here.
  4. For an attachment, type the file name in File name exactly as it shows under Attachments. For pasted text, paste it into API description.
  5. Press Check the file. The editor says what the file holds, for example Looks good: OpenAPI 3.0.3, 9 endpoints in 3 groups, or what is wrong with it.
  6. Press Save to put the docs on the page. Ctrl+Enter or Cmd+Enter also saves, and so does Enter in the File name box.

Save stays off until the editor has a file name or some pasted text. Cancel closes the editor without saving. On a new macro it also cancels the insert.

Change API docs

  1. Open the page for editing and scroll to the macro.
  2. Click the edge of the macro to select it, and Confluence draws a border around it and shows a toolbar.
  3. Choose the pencil, and the editor opens with the settings you saved.

Confluence does not pass clicks inside an app frame to the editor, so a click in the middle of the macro does not select it. The edge does. If you open the page for editing before a file is chosen, the macro says No API file is chosen yet. Select this macro and choose Edit.

What the docs show

The top of the docs shows the title, the version and the kind of file, such as OpenAPI 3.0.3 or Swagger 2.0. Below that come the summary and description, then contact, license, terms of service and more documentation links when the file has them. Links open only when the address starts with http or https. Servers are listed with their variables, defaults and allowed values, and so are the security schemes.

Endpoints sit under their tags, in the order the file declares them, and tags the file does not declare follow. An endpoint without a tag goes under default. Each endpoint shows a colored method badge, its path, its summary and a deprecated flag when the file sets one. Open an endpoint to see:

  • Its description, operation id and the security schemes it needs.
  • A parameters table with name, location, type and description, with required and deprecated marks and an example when the file gives one.
  • The request body, marked required when the file says so, one block for each media type.
  • The responses, each with its status code. Responses that start with 2 are open at first. Response headers are listed.
  • For every body, the schema as a tree and an example. The example comes from the file. When the file has none, the app builds one from the schema and labels it Example (made from the schema). Up to four examples show for one body.

Trees show each field with its type, format, required mark, read only, write only, nullable and deprecated flags, allowed values, defaults, examples, and limits such as min, max, min length and pattern. Nested objects, lists, additional properties, one of and any of choices open as levels. The parts of an allOf are merged. A schema that points back to itself is cut with a note.

Settings

  • Where is the API file: A file attached to this page or Text pasted here. The default is the attachment.
  • File name: the attachment name. It must match the name under Attachments exactly, and the file must be on the same page or blog post as the macro.
  • API description: the pasted text.
  • Show a filter box for endpoints: on by default.
  • Open every group when the page loads: on by default. When it is off, groups start closed. Typing in the filter box opens the groups that match.

Find an endpoint

The filter box matches every word you type against an endpoint's method, path, summary, operation id, tags and the start of its description. Up to eight words count. get measurements finds the GET endpoints that mention measurements. The line next to the box says how many endpoints match, for example 2 of 9 endpoints. The macro says so when none match.

Expand all opens every group and up to the first 120 endpoints. Collapse all closes every endpoint. The # beside an endpoint copies a link name for it.

Who can do what

  • Readers who can view the page see the docs. The app reads the attachment as the person viewing the page, so a reader needs permission to view the page and its attachments.
  • People who can edit a page can add the macro, change its settings and read the check results.

Licensing

Talcoe API Docs is free for sites with up to 10 users. On a larger site every user counts, and the price is $0.12 a user a month through the Atlassian Marketplace. Every site starts with a 30 day free trial.

Without an active license, API docs already on pages keep showing. Adding or changing a macro needs an active license: the editor opens a note that says the site has no active license and offers a Close button. A site admin can start or renew the subscription under Apps, Manage apps.

PDF and Word export

A PDF export shows the macro as it looks on the page. A Word export, or any other export, gets a small text document. For a macro with pasted JSON, it holds the title and version, then one line per endpoint with its method, path and summary, up to 200 endpoints. For an attachment or pasted YAML, it holds one line that names the source: the attachment name, or API docs from pasted text.

Limits

  • A file attached to the page can hold up to 2 MB of text. A bigger file shows The file is bigger than 2 MB, which is too large to show. Attach a smaller file.
  • Pasted text can hold up to 100,000 characters. The editor shows a counter. Attach bigger files instead.
  • A file name can hold up to 255 characters.
  • The docs show up to 1,500 endpoints. The macro adds a note when the file has more.
  • A schema tree shows up to 7 levels and 400 fields. Deeper levels are cut with a note.
  • Only references inside the same file are followed. A reference to another file or a web address is reported in the docs and is not loaded.
  • Webhooks are not shown. A file that has only webhooks says so.
  • OpenAPI files newer than 3.1 show with a warning that some parts may be missing. Swagger 1.x and AsyncAPI files are not supported.
  • The app reads the file each time the page loads. It keeps no copy.

Data and privacy

The app runs on Atlassian Forge, inside Confluence on Atlassian's own servers. It calls no outside address and has no servers of its own.

  • Macro settings: the source, the attachment name, the pasted text and the two checkboxes are saved in the Confluence page with the macro. They follow the page's permissions, backups and data residency. The privacy page has the full policy.
  • Your API file: it stays where you put it, as an attachment or as pasted text in the macro. The app reads it when the page loads and draws it in the browser.
  • The app keeps no database and sets no cookies. It runs no analytics and writes no server log of your content.

Questions

No attachment named "x" is on this page. The name must match the Attachments list exactly, including capitals and the file ending. The file must be attached to the same page.

The file is not valid JSON, or it could not be read as YAML or JSON. The message says where the file stops making sense. Fix the file, then press Check the file again.

This file lists no endpoints. Check that the file has a paths section.

I clicked the macro and nothing was selected. Click its edge, then the pencil.

Something else. Write to hello@talcoe.com or see the support page.