POST /detect — run the classifier (ONB-03) on a target's artifacts and return ranked classification + facts.
GET /targets/:id/applicable-scans — return the matrix result (ONB-04) for the wizard.
Follow existing API handler/DTO conventions in compliance-agent/src/api/handlers/.
Acceptance criteria
Endpoints have integration tests under compliance-agent/tests/integration/api/.
Auth + body-size limits applied consistently with the rest of the API.
Depends on
ONB-01, ONB-02, ONB-03, ONB-04.
Part of #118.
## Context
The wizard and future integrations need HTTP endpoints for onboarding: create/read/update targets, upload artifacts, run detection.
## Scope
- `POST/GET/PATCH/DELETE` for `OnboardedTarget` (list + paginate).
- Artifact upload endpoint(s) (multipart / presigned) feeding ONB-02, with size limits (coord. #59).
- `POST /detect` — run the classifier (ONB-03) on a target's artifacts and return ranked classification + facts.
- `GET /targets/:id/applicable-scans` — return the matrix result (ONB-04) for the wizard.
- Follow existing API handler/DTO conventions in `compliance-agent/src/api/handlers/`.
## Acceptance criteria
- Endpoints have integration tests under `compliance-agent/tests/integration/api/`.
- Auth + body-size limits applied consistently with the rest of the API.
## Depends on
ONB-01, ONB-02, ONB-03, ONB-04.
sharang
added this to the Onboarding v1 milestone 2026-07-10 08:34:47 +00:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Part of #118.
Context
The wizard and future integrations need HTTP endpoints for onboarding: create/read/update targets, upload artifacts, run detection.
Scope
POST/GET/PATCH/DELETEforOnboardedTarget(list + paginate).POST /detect— run the classifier (ONB-03) on a target's artifacts and return ranked classification + facts.GET /targets/:id/applicable-scans— return the matrix result (ONB-04) for the wizard.compliance-agent/src/api/handlers/.Acceptance criteria
compliance-agent/tests/integration/api/.Depends on
ONB-01, ONB-02, ONB-03, ONB-04.