Skip to content

docs(api): correct Admin AccessToken API reference against implementation (15.7)#382

Merged
marevol merged 1 commit into
masterfrom
docs/api-admin-accesstoken-accuracy
Jun 19, 2026
Merged

docs(api): correct Admin AccessToken API reference against implementation (15.7)#382
marevol merged 1 commit into
masterfrom
docs/api-admin-accesstoken-accuracy

Conversation

@marevol

@marevol marevol commented Jun 19, 2026

Copy link
Copy Markdown
Contributor

Summary

Reviewed the Admin AccessToken API documentation (15.7/api/admin/api-admin-accesstoken.rst) against the actual implementation and corrected several inaccuracies. The same fixes are applied across all languages (ja, en, de, es, fr, ko, zh-cn).

Source of truth verified

  • ApiAdminAccesstokenAction (@Execute methods, token generation, response envelope)
  • CreateForm / EditForm (required/optional fields, validation)
  • AccessTokenService.getPermissions() (actual parameterName behavior)
  • BaseSearchBody + fess_config.properties (paging.page.size, api.admin.access.permissions, api.access.token.request.parameter)

Fixes

Area Before After (verified)
List size default 20 25 (paging.page.size)
List page "starts from 0" 1-based, default 1
parameterName "name used to pass the token, default token" request parameter whose values are merged into the token's permissions; no default
token on create "auto-generated if absent" always generated server-side; a supplied token is ignored; not returned in the create response
token on update (implied editable) immutable; ignored if supplied
Search example deprecated /json/?q=... /api/v2/search?q=...

Additions

  • Documented the full token object fields actually returned (createdBy, createdTime, updatedBy, updatedTime, versionNo); noted null fields are omitted and permissions is newline-separated.
  • Added the id list filter parameter and the version response-envelope field.
  • Documented id and versionNo as required on update.
  • Noted the admin-API auth requirement: the token must match api.admin.access.permissions (default {role}admin-api).
  • Fixed list-table :widths: so the column counts match (was rendering-broken).

Verification

  • No Japanese text remains in non-ja files.
  • Invariant tokens (endpoints, config keys, JSON values) consistent across all 7 languages.
  • RST section underlines validated with East-Asian display-width awareness (CJK headings); list-table column/width counts validated.

…tion (15.7)

Verified the Admin AccessToken API documentation against the source
(ApiAdminAccesstokenAction, CreateForm/EditForm, AccessTokenService,
BaseSearchBody, and fess_config.properties) and fixed inaccuracies.

- List parameters: default `size` is 25 (paging.page.size), not 20; `page`
  is 1-based with default 1, not 0-based. Added the `id` filter parameter.
- Responses: documented the full token object fields actually returned
  (createdBy/createdTime/updatedBy/updatedTime/versionNo), noted that
  null fields are omitted and `permissions` is a newline-separated string,
  and included the `version` envelope field.
- Create: clarified that the token string is always generated server-side
  (a supplied `token` is ignored) and is not returned in the create response.
- Update: documented `id` and `versionNo` as required; `token` is immutable.
- Corrected `parameterName`: it names a request parameter whose values are
  merged into the token permissions, and has no default of "token".
- Auth: noted the token must match `api.admin.access.permissions`
  (default `{role}admin-api`).
- Replaced the deprecated `/json/` search example with `/api/v2/search`.
- Fixed list-table `:widths:` to match their column counts.

Applied the same corrections to all languages (en, de, es, fr, ko, zh-cn).
@marevol marevol merged commit a2770b8 into master Jun 19, 2026
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