Erstellt einen neuen REST API Endpoint im ApiService. Scaffolding für Minimal API Route, DTOs, Bruno-Request und OpenAPI-Annotation.
Erstelle einen neuen REST API Endpoint im Workflow.ApiService.
$0: HTTP-Methode und Pfad (z.B. GET /api/reports, POST /api/workflows/{id}/clone)$1: (optional) KurzbeschreibungBestehende Endpoints lesen: Lies die existierenden Endpoints in Workflow.ApiService/Endpoints/ als Referenz.
Endpoint erstellen oder erweitern:
WorkflowEndpoints.cs für /api/workflows/*), dort hinzufügenWorkflow.ApiService/Endpoints/ erstellenapp.MapGet/MapPost/....WithOpenApi() annotierenDTOs erstellen (falls nötig):
Workflow.ApiService/Dtos/Workflow.ApiService/Dtos/Endpoint registrieren: In Program.cs die Endpoint-Mapping-Extension aufrufen (falls neue Datei).
Bruno-Request erstellen: Passenden .bru Request in bruno/ anlegen:
{{baseUrl}} VariableBuild: dotnet build Workflow.sln
{Bereich}Endpoints.cs (z.B. WorkflowEndpoints.cs)Map{Bereich}Endpoints(this WebApplication app)required Properties wo nötig.WithOpenApi() annotieren