Products
Attach documentation to a plan
Set up a plan's Documentation tab: answer the setup prompt or pick a documentation level, add versions from an upload, your gateway, CI/CD, the API Catalog or a combined build, and publish SDKs. Covers catalog-led portals too.
You attach documentation to a plan on its Documentation tab. A plan with no documentation yet opens on a short setup prompt. After that you choose a documentation level, add documentation versions, pick where each version comes from, and optionally publish SDKs. Documentation saves with the plan.
What happens when I first open the Documentation tab?
If the plan has no documentation yet, the tab asks How would you like to show the documentation? instead of showing the editor. Your answers set the documentation level and add the first version. You can change both later.
- Open your product, open the plan, and select the Documentation tab.
- Choose how to show the documentation:
- Show the API specification for each API individually. Each API gets its own section.
- Show one combined API specification for all APIs in this plan. The plan's APIs appear as one specification.
- If you chose one combined specification, choose Continue, then pick where it comes from:
- Build it for me. Apiable merges the plan's APIs' specifications. If some endpoints appear in more than one API, it keeps one and reports what it left out.
- I'll provide the specification. You get an empty version to upload into now or later.
- Set Publicly Accessible. See who can read the documentation.
- Choose Finish, then Save Changes on the plan.
| Choice | What it sets up |
|---|---|
| Each API individually | The API level, with one version per API that has none yet. On a portal that is not catalog-led, an API taken from the API Catalog links to its catalog entry, and a gateway API gets an empty upload. |
| One combined specification, Build it for me. | The Plan level, with one Combined (from plan APIs) version. On a catalog-led portal this source is called Generated. |
| One combined specification, I'll provide the specification. | The Plan level, with one empty Manual Upload version. |
On a catalog-led portal, choosing each API individually adds a second question, Where should each API's documentation come from?: Follow the API Catalog. or I'll provide a specification for each API. If you provide your own and the plan's APIs come from the API Catalog, save the plan once before you upload the files. The prompt also shows when the API Catalog was last updated, with a Synchronize API Catalog button.
Choose Configure manually instead to skip the prompt and use the editor directly.
If the plan has no APIs yet, the tab says This plan has no APIs yet. Choose Add APIs to go to the APIs tab, or Set up documentation only to open the editor for a plan that carries documentation without APIs.
What are the documentation levels?
The level decides how documentation is organized on the plan. Pick it from the Documentation level dropdown at the top of the tab.
| Level (label) | What it does |
|---|---|
| Plan | One set of documentation versions shared across the whole plan. |
| API | Documentation versions per API in the plan. |
| Custom | Documentation versions that are not tied to a specific API. |
The Publicly Accessible toggle sits next to the dropdown.
Who can read a plan's documentation?
Publicly Accessible decides it. On, anyone can read the plan's documentation in your API Portal, signed in or not. Off, the API Portal shows it to signed-in users. New plans start with it on.
Turning it off does not limit the documentation to the plan's subscribers. Any signed-in user of your API Portal who can see the product can read it. Which products a developer can see is set by the product's visibility and audience.
The API Portal lists documentation for Active plans only.
How do I add a documentation version?
Pick a level, then add a version. At Plan and Custom level you add versions to the plan. At API level you add them under each API.
- Open the plan and select the Documentation tab.
- Pick a level from Documentation level: Plan, API or Custom.
- Choose + Add new version. At API level, use the button under the API you want.
- Set the version label in the Version column. The selected radio button marks the active version.
- Tick Deprecated or Beta in the Status column if they apply, and use the eye icon to show or hide the version.
- Choose a source in the Documentation Entry column (see the next section), then fill it in.
- Choose Save Changes on the plan.
A new version starts as an empty Manual Upload. At API level, if the plan has no APIs yet, the tab points you to the APIs tab.
Where can a documentation version come from?
Each version has a source, chosen from the dropdown in its Documentation Entry column.
| Source (label) | Where the documentation comes from |
|---|---|
| Combined (from plan APIs) | Plan level only. Apiable merges the specifications of the plan's APIs into one. See the next section. |
| Manual Upload | An OpenAPI file you upload to the version. Apiable validates it on upload. |
| Gateway Synchronization | Exported from your gateway. Works with AWS gateways. |
| Continuous Delivery | Pushed to the version by your CI/CD pipeline, using the version's ID and URL shown in the row. See CI/CD documentation sync. |
| API Catalogue | Linked to a custom API you added to the API Catalog. Only custom entries are offered. |
For Gateway Synchronization, the row shows Fetch latest version once the plan is saved and bound to an AWS gateway with APIs. Before the first save it reads Please save the plan to sync. If the plan has no gateway, a non-AWS gateway or no APIs, the row states the reason instead.
On a catalog-led portal the choices change. See How does documentation work on a catalog-led portal?.
How does Combined build one specification?
Combined (from plan APIs) merges the current specification of each API in the plan. The row says how many APIs it will combine, and Preview combined doc shows the result once the plan is saved and has APIs.
- An API contributes when it has a specification Apiable can read, from its API Catalog entry or its own documentation.
- An endpoint that appears in more than one API is kept once. The build report under the table, Some of this plan's APIs are not fully represented, lists what was left out and any API Not included at all, with the reason.
- Download this merge to edit gives you the merged file. Fix the overlaps and upload it as a Manual Upload version if you want full control.
- If none of the APIs' specifications can be read, the report says The combined specification could not be built. If the APIs have no specifications at all, the preview has nothing to show.
Combined versions take SDKs by upload only. Use the row's menu to download the combined file.
How do I publish an SDK?
Open a documentation version's SDK column and choose + Add SDK. Upload an SDK ZIP, or generate SDKs for one or more languages, then set their visibility.
- On a documentation version that has a specification, choose + Add SDK in the SDK column.
- In the Add SDK dialog, choose a Source: Upload or Generate. Combined versions offer Upload only.
- Pick the language: Choose SDK Language (multiple) for Generate, Select SDK Language for Upload.
- Set Visibility to Public, Private or Subscribers Only.
- For Upload, choose the ZIP file under Upload SDK ZIP. It must be a ZIP file smaller than 10 MB.
- Choose Save Changes in the dialog, then Save Changes on the plan.
In the API Portal, anyone can download a Public SDK, signed-in users can download a Private one, and a Subscribers Only SDK needs an active subscription to the plan. + Add SDK stays disabled until the version has a specification. Combined versions are the exception.
How does documentation work on a catalog-led portal?
Once your portal has switched to catalog-led documentation, each API in a plan can follow the API Catalog. A following API serves the catalog's latest specification version, or a version you pin, with the catalog's markers and SDKs.
See What does catalog-led documentation change? for the switch itself.
At API level
Each API is one row instead of a version table.
| Column | What you set or see |
|---|---|
| Version | Always latest follows the newest version in the catalog. Pinned keeps serving the version you pick, even after the catalog moves on. The picker lists each version with its capture date. |
| Status | The catalog's Deprecated and Beta markers for the served version. They are read-only here. Set them on the API's Status card in the API Catalog. |
| Documentation | Follow the catalog or Manual upload, and what the row is serving, for example Serving 1.2.0. |
| SDK | The SDKs of the served catalog version, listed as From the catalog. Generate them in the API Catalog. |
Choose Manual upload for an API to serve your own file instead. That API gets an empty version to upload into and stops following the catalog. You can switch any single API back to Follow the catalog later.
For an API taken from the API Catalog, choose Manual upload and save the plan before you upload the file. Then upload it and save again. A file uploaded in the same save as the switch to Manual upload is not kept.
A Catalog-bound API follows its catalog entry. A gateway API follows the catalog's copy of that gateway API, which exists for AWS APIs. An API the catalog holds no versions for keeps serving the plan's own documentation, and its row says it is not in the catalog.
In your API Portal, a following API offers its visible catalog versions in the version switcher, with the latest selected. A pinned API offers only its pinned version.
At Plan level
The sources are Generated, which merges the plan's APIs as served from the catalog, and Manual Upload. Gateway Synchronization, Continuous Delivery and API Catalogue are no longer offered. A version that already uses one of them keeps working, but you cannot choose that source again.
At Custom level
While the catalog manages the plan's documentation, the tab says The catalog manages versions for this plan, so there is nothing to add here. To version an API's documentation yourself, set that API to Manual upload at API level.
From CI/CD
Publish specifications to the catalog API, not to plan documentation. A pipeline that writes to a catalog API's plan documentation is refused, with a message that names the catalog endpoint. See How does CI/CD publish after the switch?.
Troubleshooting
Match what the Documentation tab shows to the fix.
| What you see | What to do |
|---|---|
| The tab asks How would you like to show the documentation? | The plan has no documentation yet. Answer the prompt, or choose Configure manually instead. |
| This plan has no APIs yet | Choose Add APIs to add them on the APIs tab, or Set up documentation only. |
| At API level, a message asks you to select at least one API under the APIs tab | The plan has no APIs. Add them on the APIs tab, then return. |
| A Gateway Synchronization version reads Please save the plan to sync | Save the plan, then use Fetch latest version. |
| A Gateway Synchronization version says gateway sync is not supported, or needs an Amazon API Gateway or Amazon API | The plan's gateway is not AWS, it has no gateway, or it has no APIs. Use Manual Upload or Continuous Delivery instead, or fix the plan's APIs. |
| Preview combined doc is disabled | Save the plan and make sure it has APIs. |
| The combined specification could not be built | None of the plan's APIs supplied a readable specification. Give the APIs specifications, or upload one as a Manual Upload version. |
| + Add SDK is disabled | The version has no specification yet. Upload or sync one first. |
| The Add SDK dialog shows Error uploading SDK with Only zip files are supported. or File size must be less than 10MB. | Upload the SDK as a ZIP file smaller than 10 MB. |
| A red mark next to a version | The version's specification failed validation. Hover the mark for the reason, then supply a valid file. |
| A catalog-led API row says the API is not in the catalog | The catalog holds no versions for this API. For an AWS gateway API, run Synchronize in the API Catalog. Otherwise set the API to Manual upload and upload a file. |
| The Documentation tab is read-only | The plan is archived, or your role cannot manage products. |
Where to next
API Catalog
Specifications, versions, operation overrides and SDKs, and the switch to catalog-led.
Anatomy of a plan
The full set of plan tabs, the plan lifecycle, and versioning.
CI/CD documentation sync
Push specifications from your pipeline.
Set a plan's security level
Pick the authentication method and the credential type subscribers receive.