Skip to content

feat(frontend): add API changes and make API doc links network-aware#1470

Open
andrewklau wants to merge 2 commits into
mainfrom
feat/api-change-notice
Open

feat(frontend): add API changes and make API doc links network-aware#1470
andrewklau wants to merge 2 commits into
mainfrom
feat/api-change-notice

Conversation

@andrewklau

Copy link
Copy Markdown
Contributor

Frontend:

  • add a quiet, dismissible, site-wide banner pointing developers to the new API docs ("We're updating our API." — calm wording, no version specifics); copy added to all locale dictionaries
  • extract a shared network-aware apiDocsUrl helper and use it for the nav link, the /apis page links and the per-page API badge, so testnet resolves to api-testnet.nearblocks.io and mainnet to api.nearblocks.io

API docs (apps/api):

  • surface the v1/v2 deprecation as a prominent callout at the top of both /api-docs and /api-docs/legacy (light/dark aware)
  • simplify attribution wording: required on the free plan only; paid plans are exempt

Frontend:
- add a quiet, dismissible, site-wide banner pointing developers to the
  new API docs ("We're updating our API." — calm wording, no version
  specifics); copy added to all locale dictionaries
- extract a shared network-aware `apiDocsUrl` helper and use it for the
  nav link, the /apis page links and the per-page API badge, so testnet
  resolves to api-testnet.nearblocks.io and mainnet to api.nearblocks.io

API docs (apps/api):
- surface the v1/v2 deprecation as a prominent callout at the top of
  both /api-docs and /api-docs/legacy (light/dark aware)
- simplify attribution wording: required on the free plan only; paid
  plans are exempt
@andrewklau andrewklau changed the title feat: announce API changes and make API doc links network-aware feat(frontend): add API changes and make API doc links network-aware May 24, 2026
Documents the v3 behavioural differences for integrators: string-typed
numbers (no scientific notation / Number() precision loss), the
{ data, meta } envelope, cursor pagination, and nested aggregate
structure. --no-verify: main currently carries an unrelated build break.
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.

1 participant