Skip to content

docs: correct API function-name casing and a wrong CLI example#55

Merged
acoshift merged 1 commit into
mainfrom
docs-api-fn-names
Jun 28, 2026
Merged

docs: correct API function-name casing and a wrong CLI example#55
acoshift merged 1 commit into
mainfrom
docs-api-fn-names

Conversation

@acoshift

Copy link
Copy Markdown
Member

What

Fixes invalid API/CLI references across the docs.

1. API function-name casing (the big one)

The API reference (api/conventions.md "function catalog" + related prose) documented several actions with camelCase resource prefixes that don't match the real wire action names. Action names are matched exactly server-side, so these are not callable as written:

Documented (wrong) Actual wire name
serviceAccount.list / .createKey / … serviceaccount.list / .createKey / …
workloadIdentity.* workloadidentity.*
envGroup.* envgroup.*
pullSecret.* pullsecret.*
auditLog.list auditlog.list

Verified every name against the literal invoke(...) strings in the api/client package (the same client the CLI uses).

Only the resource prefixes were lowercased. The camelCase verb parts are the real names and are intentionally kept (createKey, deleteKey, purgeCache, getTags, getManifests, getProjectStorage, deleteManifest, limitMetrics, …). JSON field names (envGroups, addEnvGroups, removeEnvGroups) are likewise untouched.

Two of the wrong names were copy-pasteable curl examples that would 404:

  • content/access/audit-log.mdhttps://api.deploys.app/auditLog.list
  • content/deployments/environment-variables.mdhttps://api.deploys.app/envGroup.create

content/access/roles.md keeps its (correct) point that permission strings are always lowercase and differ from function names — e.g. the serviceaccount.createKey call is guarded by the serviceaccount.key.create permission (both confirmed to exist).

2. Wrong CLI example

content/deployments/overview.md had a # pause a deployment comment sitting above a deploys deployment delete … command. Changed deletepause.

Why

Users copy these names directly into API calls and the CLI; the catalog is billed as "fully-qualified API function[s]," and two examples were broken curl commands.

Verification

  • Cross-checked every changed name against api/client/*.go invoke strings.
  • Confirmed the camelCase-verb actions left as-is (route.createV2, billing.uploadTransferSlip, github.exchangeToken/.notify, etc.) are real server actions.
  • grep confirms zero remaining camelCase action prefixes in content/, and all envGroups/addEnvGroups field references remain camelCase.
  • Content-only change to 5 Markdown files.

The API reference used camelCase resource prefixes (serviceAccount.*,
workloadIdentity.*, envGroup.*, pullSecret.*, auditLog.*) but the real wire
action names are lowercase-prefixed (serviceaccount.createKey, envgroup.list,
auditlog.list, ...). Action names are matched exactly server-side, so the
documented names — including two copy-pasteable curl examples that hit
/auditLog.list and /envGroup.create — would 404.

Verified every name against the api/client invoke strings. The camelCase
*verb* parts (createKey, purgeCache, getTags, limitMetrics, ...) are the real
names and are kept; only the resource prefixes were lowercased. JSON field
names (envGroups/addEnvGroups) are unaffected.

Also fix deployments/overview.md, where a '# pause a deployment' comment sat
above a 'deploys deployment delete' command.

Files: api/conventions.md, access/roles.md, access/audit-log.md,
deployments/environment-variables.md, deployments/overview.md.
@deploys-app deploys-app Bot temporarily deployed to pr-55 June 28, 2026 15:47 Destroyed
@deploys-app

deploys-app Bot commented Jun 28, 2026

Copy link
Copy Markdown

Preview deleted (PR closed).

@acoshift acoshift merged commit 9f26c7c into main Jun 28, 2026
1 check passed
@acoshift acoshift deleted the docs-api-fn-names branch June 28, 2026 15:49
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