fix: #3637724 Ship the api_admin role

Issue: https://www.drupal.org/node/3637724

The Webships tooling and the docs expect an api_admin role, and no package ships it since the webships profile dropped its configuration in 3.0.2. The role "API administrator" is added from config/optional on install and update, with the permissions of the API documentation, the OpenAPI document and the Web API settings.

Proof: on a Webships 3.0.x site, after drush updb and drush user:role:add api_admin, the account gets 200 on the API documentation, /openapi/jsonapi?_format=json and /admin/config/services/webapi (403 before).

AI-Generated: Yes

Checkpoints

  • File an issue
  • Fix bugs in code
  • Testing to ensure no regression
  • Automated unit testing coverage
  • Automated functional testing coverage
  • UX/UI designer responsibilities
  • Readability
  • Accessibility
  • Performance
  • Security
  • Documentation
  • Reviewed by human
  • Code review by maintainers
  • Full testing and approval
  • Credit contributors
  • Review with the product owner
  • Release Notes
  • Release

Merge request reports

Loading
Loading