Skip to content

Replace removed guest API example and pin 0.8.0 release link#43

Merged
admdly merged 2 commits into
mainfrom
copilot/fix-guest-api-endpoint
May 30, 2026
Merged

Replace removed guest API example and pin 0.8.0 release link#43
admdly merged 2 commits into
mainfrom
copilot/fix-guest-api-endpoint

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented May 30, 2026

Two stale references in the docs: a guest API endpoint that no longer exists (removed in 0.8.0), and a release link that always resolves to the latest release instead of 0.8.0.

Changes

  • javascript.mdoc — Replace the system/version guest API example with currency/get_pairs. system/version was removed under the 0.8.0 Guest API Lockdown, so the old snippet fails on any current installation.

    // Before (broken on 0.8.0+)
    API.guest.get("system/version", {}, ...);
    
    // After
    API.guest.get("currency/get_pairs", {}, ...);
  • changelog.mdoc — Change the 0.8.0 release notes link from .../releases/latest to .../releases/tag/0.8.0 so it permanently points to that release rather than drifting to whatever is newest.

Original prompt
Please apply the following diffs and create a pull request.
Once the PR is ready, give it a title based on the messages of the fixes being applied.

[{"message":"The `system/version` guest API endpoint was removed in 0.8.0 (documented in `0-7-to-0-8.mdoc` under \"Guest API Lockdown\"). This example will fail on any 0.8.0+ installation. Replace this example with a guest endpoint that still exists, such as `guest/currency_get_pairs` or another currently available public endpoint.","fixFiles":[{"filePath":"src/content/docs/extensions-and-development/javascript.mdoc","diff":"diff --git a/src/content/docs/extensions-and-development/javascript.mdoc b/src/content/docs/extensions-and-development/javascript.mdoc\n--- a/src/content/docs/extensions-and-development/javascript.mdoc\n+++ b/src/content/docs/extensions-and-development/javascript.mdoc\n@@ -67,14 +67,14 @@\n \n ## Examples\n \n-### Get System Version (Guest)\n+### Get Currency Pairs (Guest)\n \n ```javascript\n API.guest.get(\n-  \"system/version\",\n+  \"currency/get_pairs\",\n   {},\n   function(response) {\n-    console.log(\"Version:\", response);\n+    console.log(\"Currency pairs:\", response);\n   },\n   function(error) {\n     console.error(\"Error:\", error);\n"}]},{"message":"This link points to `/releases/latest`, which will always resolve to the newest release rather than the 0.8.0 release notes specifically. As newer versions are released, this link will no longer point to the 0.8.0 changelog. Change it to the stable tag URL, e.g. `https://github.com/FOSSBilling/FOSSBilling/releases/tag/0.8.0`.","fixFiles":[{"filePath":"src/content/docs/maintenance/changelog.mdoc","diff":"diff --git a/src/content/docs/maintenance/changelog.mdoc b/src/content/docs/maintenance/changelog.mdoc\n--- a/src/content/docs/maintenance/changelog.mdoc\n+++ b/src/content/docs/maintenance/changelog.mdoc\n@@ -35,7 +35,7 @@\n | **Patcher** | Extended through patch 64 (was 43) |\n | **Uploads & Public Assets** | Uploads moved from `/uploads` to `/data/uploads`; gateway and default branding assets moved to `/public` |\n \n-[View the full 0.8.0 release notes](https://github.com/FOSSBilling/FOSSBilling/releases/latest) for the complete list of changes.\n+[View the full 0.8.0 release notes](https://github.com/FOSSBilling/FOSSBilling/releases/tag/0.8.0) for the complete list of changes.\n \n ## Breaking Changes\n \n"}]}]

- Replace removed system/version guest API with currency/get_pairs
- Fix changelog release link to point to tag/0.8.0 instead of latest
Copilot AI changed the title [WIP] Fix guest API endpoint in documentation fix: replace removed guest API example and pin 0.8.0 release link May 30, 2026
@cloudflare-workers-and-pages
Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
docs 9d52f8f Commit Preview URL

Branch Preview URL
May 30 2026, 07:43 AM

Copilot finished work on behalf of admdly May 30, 2026 07:43
Copilot AI requested a review from admdly May 30, 2026 07:43
@admdly admdly changed the title fix: replace removed guest API example and pin 0.8.0 release link Replace removed guest API example and pin 0.8.0 release link May 30, 2026
@admdly admdly marked this pull request as ready for review May 30, 2026 07:44
Copilot AI review requested due to automatic review settings May 30, 2026 07:44
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates documentation to remove stale references introduced by the 0.8.0 guest API lockdown and to make the 0.8.0 release notes link stable over time.

Changes:

  • Replaced the removed system/version guest API example with a currency/get_pairs guest API example in the JavaScript wrapper docs.
  • Updated the 0.8.0 release notes link to point to the fixed releases/tag/0.8.0 URL instead of releases/latest.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
src/content/docs/extensions-and-development/javascript.mdoc Updates the guest API example to use a currently available endpoint (currency/get_pairs).
src/content/docs/maintenance/changelog.mdoc Pins the 0.8.0 release notes link to the 0.8.0 tag to avoid link drift.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@admdly admdly merged commit c854484 into main May 30, 2026
9 checks passed
@admdly admdly deleted the copilot/fix-guest-api-endpoint branch May 30, 2026 07:47
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