mirror of
https://github.com/fabro-sh/fabro.git
synced 2026-10-06 02:48:25 +00:00
Replace openapi-typescript types-only output with a full TypeScript Axios client generated by openapi-generator-cli. The generated code is committed so IDE support works without running codegen. arc-web consumes the client via bun workspaces. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
486 B
486 B
Arc
API workflow
The OpenAPI spec at openapi/arc-api.yaml is the source of truth for the arc-api HTTP interface.
- Edit
openapi/arc-api.yaml cargo build -p arc-types— build.rs regenerates Rust types via typify- Write/update handler in
crates/arc-api/src/server.rs, add route tobuild_router() cargo test -p arc-api— conformance test catches spec/router driftcd packages/arc-api-client && bun run generate— regenerates TypeScript Axios client