e04cf8fbd3
Repo: sax3l/c0py (created on Gitea, code pushed) Initial scaffolding includes: - apps/api: Fastify API server (typecheck, build, test pass) - apps/web: Next.js UI (build passes) - packages/c0py-core: Crawler, registry assembler, analyzer (6 tests pass) - packages/config: Zod-validated env loader - packages/types: Shared TypeScript types CI/CD: .gitea/workflows/ci.yml + deploy.yml Dockerfile for Coolify deployment mise.toml (toolchain contract) lefthook.yml, renovate.json docs/architecture/OVERVIEW.md, docs/PLATFORM.md Platform setup required (see docs/PLATFORM.md): 1. Coolify app provision (c0py on server5/6) 2. Postgres database (dedicated, not shared) 3. Infisical secrets (DATABASE_URL, CL0UD, ZITADEL, AUD0, ST0RE, INF0, N0D) 4. DNS c0py.siax.io A-record 5. Zitadel OIDC project (Simon-decision) Status: dev (repo live, code pushable, platform infra pending)
19 lines
585 B
YAML
19 lines
585 B
YAML
# C0PY API Contract (OpenAPI 3.1)
|
|
|
|
Draft — endpoints under `/v1/c0py/*`.
|
|
|
|
This file is the source of truth for the API contract.
|
|
It is consumed by `@siax/c0py-sdk` (generated client) and
|
|
documented in API0 when the contract is registered.
|
|
|
|
## Endpoints
|
|
|
|
| Method | Path | Description |
|
|
|--------|------|-------------|
|
|
| GET | /health | Health check |
|
|
| GET | /v1/c0py/registries | List registries |
|
|
| POST | /v1/c0py/registries | Create registry |
|
|
| GET | /v1/c0py/registries/:id | Get registry |
|
|
| POST | /v1/c0py/scans | Start scan |
|
|
| GET | /v1/c0py/scans/:id | Get scan status |
|