Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Port api reference to specification repo #261

Merged
merged 246 commits into from
Jan 7, 2025
Merged

Port api reference to specification repo #261

merged 246 commits into from
Jan 7, 2025

Conversation

SimonWoolf
Copy link
Member

@SimonWoolf SimonWoolf commented Jan 6, 2025

Context: ably/sdk-api-reference#44 (comment)

Internal discussion with @m-hulbert : https://ably-real-time.slack.com/archives/C01LR5XFHFX/p1735928965057959

The existing sdk api reference repo was clearly not working well. The existence of that repo is not much known to anyone but the SDK team, who had at some point been instructed to update it in lockstep with the specification repo and have the deved team approve all PRs, which is no longer tenable given resource constraints on that team. The reason for it being its own repo instead of a file in the specification repo is lost to history.

There is certainly still value in having a file for shared docstrings between different sdks. But it should be a file in the specifications repo, where it can be versioned along with the spec, modified by the same pr that adds the same fields to the spec, and rendered to https://sdk.ably.com/ for the convenience of SDK devs.

This PR does that. (As a repo merge, preserving full history on both sides). After it is merged, I will archive the sdk-api-reference repo.

FYI @ttypic @lawrence-forooghian @owenpearson @sacOO7 @paddybyers

lawrence-forooghian and others added 12 commits February 27, 2024 10:22
ConnectionDetails doesn’t form part of the public API (it’s marked as
“internal” in the spec’s IDL), so this link will never resolve.
There is no longer a concept of a "major" version; as of protocol
version 2, the protocol version is a single integer (see spec point
CSV2a).

Unfortunately, the linked ably.com REST API versioning documentation
still refers to API versions 1.1 and 1.2, but that’s a separate issue —
the REST API documentation needs to be versioned and updated for newer
protocol versions, which Mark says is planned.

Relevant conversation in [1], where Mark says:

> For the docstring I think we can drop "major" and just refer to it as
> "version" since this will be the case going forwards. We can leave the
> link in for now too even if it'll be a little wonky until we release the
> versioned REST API.

[1] ably/ably-js#1670 (comment)
Which were not very good
…m-public-API

Remove public mention of `ConnectionDetails`
…sion

Fix terminology used to refer to REST API version
Add descriptions of `whenState` methods
Add api docs for mutable message fields
@SimonWoolf SimonWoolf requested a review from ttypic January 6, 2025 15:40
@github-actions github-actions bot temporarily deployed to staging/pull/261 January 6, 2025 15:41 Inactive
@github-actions github-actions bot temporarily deployed to staging/pull/261 January 6, 2025 15:42 Inactive
Copy link
Contributor

@ttypic ttypic left a comment

Choose a reason for hiding this comment

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

Looks great! I totally agree with you, the only small problem I can see textile render isn't processing "/" correctly right now
image

@SimonWoolf
Copy link
Member Author

SimonWoolf commented Jan 6, 2025

isn't processing "/" correctly right now

looks like this is a 9 year old bug in redcarpet vmg/redcarpet#477

i'll figure something out

@SimonWoolf
Copy link
Member Author

switched from redcarpet to kramdown

@github-actions github-actions bot temporarily deployed to staging/pull/261 January 6, 2025 16:44 Inactive
@SimonWoolf SimonWoolf requested a review from ttypic January 6, 2025 16:48
@SimonWoolf SimonWoolf merged commit 268fbc4 into main Jan 7, 2025
2 checks passed
@SimonWoolf SimonWoolf deleted the add-api-reference branch January 7, 2025 15:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.