Skip to content

FEAT: Add scenario listing API endpoints to backend#1666

Merged
rlundeen2 merged 3 commits into
microsoft:mainfrom
rlundeen2:users/rlundeen/2026_04_28_scenario_rest
Apr 30, 2026
Merged

FEAT: Add scenario listing API endpoints to backend#1666
rlundeen2 merged 3 commits into
microsoft:mainfrom
rlundeen2:users/rlundeen/2026_04_28_scenario_rest

Conversation

@rlundeen2
Copy link
Copy Markdown
Contributor

Add GET /api/scenarios and GET /api/scenarios/{scenario_name} endpoints for listing and retrieving scenario metadata from the ScenarioRegistry.

rlundeen2 and others added 2 commits April 28, 2026 14:24
Add GET /api/scenarios and GET /api/scenarios/{scenario_name} endpoints
for listing and retrieving scenario metadata from the ScenarioRegistry.

New files:
- pyrit/backend/models/scenarios.py: Pydantic response models
- pyrit/backend/services/scenario_service.py: Service layer
- pyrit/backend/routes/scenarios.py: FastAPI route handlers
- tests/unit/backend/test_scenario_service.py: Unit tests

The endpoints expose scenario metadata including:
- Registry name, class name, description
- Default/aggregate/all strategies
- Default datasets and max dataset size
- Cursor-based pagination

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Comment thread pyrit/backend/models/scenarios.py Outdated
@rlundeen2 rlundeen2 enabled auto-merge April 30, 2026 23:24
@rlundeen2 rlundeen2 added this pull request to the merge queue Apr 30, 2026
Merged via the queue into microsoft:main with commit c70b7c3 Apr 30, 2026
48 checks passed
@rlundeen2 rlundeen2 deleted the users/rlundeen/2026_04_28_scenario_rest branch April 30, 2026 23:55
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.

2 participants