Skip to content

DOC-14186: Public spec for the Sync Gateway REST APIs#962

Merged
simon-dew merged 22 commits into
release/3.2from
DOC-14186-llm-readiness
Apr 1, 2026
Merged

DOC-14186: Public spec for the Sync Gateway REST APIs#962
simon-dew merged 22 commits into
release/3.2from
DOC-14186-llm-readiness

Conversation

@simon-dew
Copy link
Copy Markdown
Contributor

@simon-dew simon-dew commented Mar 31, 2026

Docs issue: DOC-14186

For LLM readiness, this PR adds service description metadata to the REST API reference pages for Sync Gateway.

Document previews — check the page source for service-desc metadata:

You will need the Docs Team credentials on Confluence.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the Prometheus-generated file. I've moved it to partials because it's not an attachment for download. When I merge this PR forward to 3.3 and 4.0 I'll have to update the build script in App Services.

This reverts commit 00ca4a1.
Copy link
Copy Markdown
Contributor

@osfameron osfameron left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The linked preview files don't have the <link rel="service-desc" ...> clauses.
Looks like you also need to update the shim files like rest_api_admin.adoc ?

@simon-dew
Copy link
Copy Markdown
Contributor Author

The linked preview files don't have the <link rel="service-desc" ...> clauses. Looks like you also need to update the shim files like rest_api_admin.adoc ?

Doh, I added the metadata to the wrong files. Good spot

Comment thread modules/ROOT/pages/rest-api-admin.adoc Outdated
ifdef::prerelease[:page-status: {prerelease}]
:page-role: -toc
:page-topic-type: reference
:page-service-desc: _attachments/admin.overlaid.yaml
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thinking about it, there's no harm in also having the service-desc linked from these overview pages, is there?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess not, although those stub pages don't really hold any information about the actual spec any more?

The reason I made this mistake is that 3.2 is the first version where we got rid of the swagger-ui pages and introduced Redocly. The evolution went:

Release 3.1 Release 3.2
Swagger UI pages (need service-desc) Stub pages (don't need service-desc?)
Static REST API pages (need service-desc) [removed] (replaced by partials)
[new] Redocly REST API pages (need service-desc)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So the point is, the stub pages used to contain a swagger-ui generated representation of the spec, which is why they needed the service-desc metadata. But the swagger-ui element was removed in 3.2.

@osfameron osfameron self-requested a review April 1, 2026 10:28
@osfameron
Copy link
Copy Markdown
Contributor

The change looks right - I see the link in the Metrics page, but not Admin/Public.
Does the preview site just need a rebuild? (I thought it looked like it was already done)

@simon-dew
Copy link
Copy Markdown
Contributor Author

The change looks right - I see the link in the Metrics page, but not Admin/Public. Does the preview site just need a rebuild? (I thought it looked like it was already done)

Yep, they are there in Admin and Public? Maybe the rebuild hadn't finished when you looked?

Please feel free to refresh and check again

Copy link
Copy Markdown
Contributor

@osfameron osfameron left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, weird browser issue I guess, confirmed in a different browser 👍

@simon-dew simon-dew merged commit 85bb3b4 into release/3.2 Apr 1, 2026
@simon-dew simon-dew deleted the DOC-14186-llm-readiness branch April 1, 2026 14:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants