(
source_id: str,
capability: str | None = Query(default=None),
_auth: AuthContext = Depends(require_provider_scope),
service: ProviderConfigService = Depends(get_service),
)
| 195 | |
| 196 | @router.get("/provider-sources/{source_id:path}/providers") |
| 197 | async def list_providers_by_source( |
| 198 | source_id: str, |
| 199 | capability: str | None = Query(default=None), |
| 200 | _auth: AuthContext = Depends(require_provider_scope), |
| 201 | service: ProviderConfigService = Depends(get_service), |
| 202 | ): |
| 203 | return ok(service.list_providers(capability=capability, source_id=source_id)) |
| 204 | |
| 205 | |
| 206 | @router.post("/provider-sources/{source_id:path}/providers") |
nothing calls this directly
no test coverage detected