feat(api-detail): modale d'édition des métadonnées d'une API
- Bouton "Modifier" sur la page détail ouvre une modale avec tous les champs éditables (titre, version, catégorie, description, docs, contacts, droits d'accès) - ApiService.update() étendu à tous les champs du UpdateApiEntryDto - Remplacement des labels "Obligatoire"/"Optionnel" par un astérisque rouge sur les champs requis dans tous les formulaires 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:
@@ -22,7 +22,18 @@ export class ApiService {
|
||||
return this.http.get<ApiEntry>(`${this.baseUrl}/${id}`);
|
||||
}
|
||||
|
||||
update(id: string, data: { title?: string; version?: string; description?: string }): Observable<ApiEntry> {
|
||||
update(id: string, data: {
|
||||
title?: string;
|
||||
version?: string;
|
||||
description?: string;
|
||||
categoryId?: string | null;
|
||||
functionalDoc?: string | null;
|
||||
technicalDoc?: string | null;
|
||||
externalDocUrl?: string | null;
|
||||
contactFunctional?: string | null;
|
||||
contactTechnical?: string | null;
|
||||
accessRights?: string | null;
|
||||
}): Observable<ApiEntry> {
|
||||
return this.http.patch<ApiEntry>(`${this.baseUrl}/${id}`, data);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user