Skip to content

Add support for rest.scope.list (#408)#409

Merged
mesilov merged 1 commit intov3-devfrom
feature/408-add-rest-scope-list
Mar 29, 2026
Merged

Add support for rest.scope.list (#408)#409
mesilov merged 1 commit intov3-devfrom
feature/408-add-rest-scope-list

Conversation

@mesilov
Copy link
Copy Markdown
Collaborator

@mesilov mesilov commented Mar 29, 2026

Q A
Bug fix? no
New feature? yes
Deprecations? no
Issues Fix #408
License MIT

Adds RestServiceBuilder with a Scope service that wraps the rest.scope.list v3 REST API method.

The method returns a nested module → controller → method → item map.
ScopeMethodsResult::getItems() flattens that structure into a flat ScopeMethodItemResult[] list.

Usage

$items = $serviceBuilder->getRestScope()->scope()->list('rest')->getItems();
foreach ($items as $item) {
    echo $item->scope . ': ' . $item->title . PHP_EOL;
}

Test plan

  • make lint-cs-fixer — passed
  • make lint-rector — passed
  • make lint-phpstan — passed (0 errors)
  • make lint-deptrac — passed (0 violations)
  • make test-unit — passed (667 tests, 1153 assertions)
  • make test-integration-rest-scope — passed (4 tests, 8 assertions)

Closes #408

🤖 Generated with Claude Code

…#408)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@mesilov mesilov added this to the 3.1.0 milestone Mar 29, 2026
@mesilov mesilov self-assigned this Mar 29, 2026
@mesilov mesilov linked an issue Mar 29, 2026 that may be closed by this pull request
8 tasks
@mesilov mesilov merged commit 1adfbcd into v3-dev Mar 29, 2026
10 checks passed
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.

Add support for rest.scope.list

1 participant