Skip to content

Conversation

@vmccarty
Copy link
Contributor

@vmccarty vmccarty commented Dec 10, 2025

Final cleanup efforts for the JS Doc.

Resolves TW-138.

@starfy84 starfy84 force-pushed the tw-138-clean-up-js-doc-pt2 branch 3 times, most recently from 3b89a23 to 0fa06ad Compare December 10, 2025 19:56
@vmccarty vmccarty force-pushed the tw-138-clean-up-js-doc-pt2 branch from caf7e6b to 88cb40f Compare December 11, 2025 15:45
Comment on lines 48 to 55
/**
* Check AWM & MBE Version
*
* Check your version of the connection between the Advanced Wallet Manager (AWM) and the Master Bitgo Express (MBE) servers.
*
* @tag Advanced Wallets
* @operationId v1.advancedwalletmanager.version
*/
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I honestly don't know what version this is actually checking, since we already have a version check endpoint for the AWM and another for the MBE. I just formatted this JS Doc based on the ping check between the servers, which makes sense to me. Please confirm the accuracy of this.

Copy link
Contributor

Choose a reason for hiding this comment

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

Technically AWM is not reachable publicly. The setup is to have the AWM hosted in a private server that only MBE can reach it. That way you can only "ping"/"version" AWM via MBE.

AWM needs an endpoint for MBE (and only MBE) to ping it, MBE needs two endpoints. One for us to ping MBE itself, one for us to ping AWM via MBE.

Copy link
Contributor Author

@vmccarty vmccarty Dec 11, 2025

Choose a reason for hiding this comment

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

That makes sense for pinging*. With regards to versioning though, we have 3 endpoints, but only 2 servers. Is this endpoint just used as a sort of bridge to grab the version number? Do you suggest any changes to the endpoint summary and description I proposed above?

Copy link
Contributor

@alextse-bg alextse-bg Dec 11, 2025

Choose a reason for hiding this comment

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

Is this endpoint just used as a sort of bridge ro grab the version number?

Precisely. Say a client already deploy AWM and MBE with AWM being private. Then there is no way to ping or to get the version number from AWM directly. So they will have to call this MBE endpoint to indirectly ping/version AWM.

Copy link
Contributor

@alextse-bg alextse-bg Dec 11, 2025

Choose a reason for hiding this comment

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

my preferred syntax for the op ID will be something like v1.advancedwallet.xxxxx for all MBE endpoints, and v1.advancedwallet.awm.xxxx for AWM endpoints (or even v1.advancedwallet.internal.xxx, whatever make sense). Ideally the operation ID should closely match the actual API url. (this one is on me, I should have raised this in a previous PR 🙏 ).

Copy link
Contributor

Choose a reason for hiding this comment

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

For these one in particular, we can have v1.advancedwallet.ping/version.mbe/awm for the ones exposed on MBE (i.e. pinging MBE itself and pinging AWM via MBE), and have v1.advancedwallet.awm.ping/version

Copy link
Contributor

Choose a reason for hiding this comment

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

I don't have any issue with the summary itself tho

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Cool, thanks for the explanation. Let me know if I got them all correct now.

@vmccarty vmccarty force-pushed the tw-138-clean-up-js-doc-pt2 branch from 88cb40f to 8ea5e14 Compare December 11, 2025 16:10
@alextse-bg
Copy link
Contributor

Also now that I am thinking about it, maybe it is worth changing the keys in the router so that it matches with the operation ID as well. We do that for all other BitGo repo that uses api-ts and that makes it easier for developers to debug through certain issue.

But that is not an change that is within the scope of this PR.

@vmccarty vmccarty force-pushed the tw-138-clean-up-js-doc-pt2 branch from 6822ce9 to f210dd6 Compare December 11, 2025 22:13
@vmccarty vmccarty requested a review from alextse-bg December 11, 2025 22:13
@vmccarty vmccarty force-pushed the tw-138-clean-up-js-doc-pt2 branch 2 times, most recently from 834cdd0 to 100339f Compare December 11, 2025 22:18
@vmccarty vmccarty marked this pull request as ready for review December 12, 2025 15:33
@vmccarty vmccarty requested a review from a team as a code owner December 12, 2025 15:33
@alextse-bg
Copy link
Contributor

sorry of the back and forth, but the API itself is a tad confusing so I want to get the documentation as clear as possible to cut down confusion later down the line

@vmccarty vmccarty force-pushed the tw-138-clean-up-js-doc-pt2 branch from 763e05a to d15f869 Compare December 12, 2025 16:59
@vmccarty vmccarty requested a review from alextse-bg December 12, 2025 16:59
@vmccarty vmccarty force-pushed the tw-138-clean-up-js-doc-pt2 branch from f3fcd3d to 19910bd Compare December 12, 2025 17:24
@vmccarty vmccarty force-pushed the tw-138-clean-up-js-doc-pt2 branch from 1d7eec6 to 9a50212 Compare December 12, 2025 17:51
@alextse-bg alextse-bg merged commit 746cfa4 into master Dec 12, 2025
7 checks passed
@alextse-bg alextse-bg deleted the tw-138-clean-up-js-doc-pt2 branch December 12, 2025 18:03
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.

3 participants