feat: initial scaffold — MVP catalogue de données d'API
- Backend NestJS : CRUD api_entries + categories, upload YAML multi-fichiers, génération docs AsyncAPI (@asyncapi/cli@6.0.0) et OpenAPI (redocly) - Fix: route wildcard GET /api/apis/:id/*path pour servir les assets statiques (CSS/JS) générés par AsyncAPI HTML template (contournement bug path-to-regexp v8) - Frontend Angular 19 : pages catalog, browse, api-detail, doc-viewer, upload (DSFR) - Seeder de données de démo (idempotent) - Docker Compose dev + Dockerfiles + manifests K8s - Documentation : README, architecture, référence API REST Generated with [Claude Code](https://claude.ai/code) via [Happy](https://happy.engineering) Co-Authored-By: Claude <noreply@anthropic.com> Co-Authored-By: Happy <yesreply@happy.engineering>
This commit is contained in:
19
shared/src/schemas/api-entry.schema.ts
Normal file
19
shared/src/schemas/api-entry.schema.ts
Normal file
@@ -0,0 +1,19 @@
|
||||
// Zod schemas for validation (used in backend)
|
||||
// Install zod in back/ if needed: pnpm add zod
|
||||
|
||||
export const API_TYPES = ['ASYNCAPI', 'OPENAPI'] as const;
|
||||
export const API_STATUSES = ['PENDING', 'GENERATED', 'ERROR'] as const;
|
||||
|
||||
export interface CreateApiEntryDto {
|
||||
title: string;
|
||||
version: string;
|
||||
description?: string;
|
||||
type: 'ASYNCAPI' | 'OPENAPI';
|
||||
}
|
||||
|
||||
export interface UpdateApiEntryDto {
|
||||
title?: string;
|
||||
version?: string;
|
||||
description?: string;
|
||||
categoryId?: string | null;
|
||||
}
|
||||
Reference in New Issue
Block a user