Skip to content

FEAT: Add scenario listing API endpoints to backend#1666

Open
rlundeen2 wants to merge 2 commits intomicrosoft:mainfrom
rlundeen2:users/rlundeen/2026_04_28_scenario_rest
Open

FEAT: Add scenario listing API endpoints to backend#1666
rlundeen2 wants to merge 2 commits intomicrosoft: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>
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