T-5: set up API-first tooling with OpenAPI spec as single source of truth
Backend: openapi-generator-maven-plugin generates Spring interfaces and DTOs from the spec. Frontend: openapi-typescript + openapi-fetch provide type-safe API access. Both sides get compile-time contract enforcement from a single api.yaml file. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
4
frontend/src/api/client.ts
Normal file
4
frontend/src/api/client.ts
Normal file
@@ -0,0 +1,4 @@
|
||||
import createClient from "openapi-fetch";
|
||||
import type { paths } from "./schema";
|
||||
|
||||
export const api = createClient<paths>({ baseUrl: "/api" });
|
||||
Reference in New Issue
Block a user