You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
apiElse -->|Nein| apiDone[API-Schicht für diese Story fertig]
50
50
apiMore --> apiDone
51
51
end
@@ -136,6 +136,7 @@ Typisches Layout:
136
136
-`zmsentities/schema/` — JSON Schema für Entities (und zugehörige Citizen-API-Schemas)
137
137
-`zmsentities` PHP-Entity-Klassen — die Modelle zu diesen Schemas
138
138
-`zmsbackend/src/Zmsbackend/.../Api/` — API-Controller, die diese Entities in Responses zurückgeben
139
+
-`zmsbackend/routing.php` — Slim-Routen, die URL-Pfade an diese Controller binden
139
140
140
141
**Frage 4: Muss ich das JSON-Schema / Modell in `zmsentities` ändern oder ergänzen, damit ich die Änderung in der API-Controller-Response propagieren kann?**
141
142
@@ -146,13 +147,14 @@ Typisches Layout:
146
147
147
148
Wenn die Response-Form stimmt, mache einen letzten Check der API-Oberfläche in `zmsbackend` (typisch unter `.../Api/`):
148
149
149
-
- neue oder geänderte Routen / Endpunkte
150
+
-**neuer Controller** → du **musst** ihn in [`zmsbackend/routing.php`](https://github.com/it-at-m/eappointment/blob/main/zmsbackend/routing.php) registrieren (Slim-Route → Controller-Klasse); die Controller-Datei allein reicht nicht
151
+
- neue oder geänderte Routen / Endpunkte für bestehende Controller (ebenfalls in `routing.php`)
150
152
- Request-Parsing oder Validierung
151
153
- welcher Service-Aufruf im Controller
152
154
- HTTP-Statuscodes, Fehler oder Auth-/Rechteprüfungen
153
155
- verwandte Controller, die denselben Contract einhalten müssen
154
156
155
-
-**Ja** — schließe diese API-Schicht-Änderungen ab, bevor du `zmsbackend` verlässt.
157
+
-**Ja** — schließe diese API-Schicht-Änderungen ab (inkl. `routing.php`, wenn du einen Controller hinzugefügt hast), bevor du `zmsbackend` verlässt.
156
158
-**Nein** — die API-Schicht ist für diese Story fertig.
157
159
158
160
Beide Antworten **schließen** den Backend-Pfad für diese Story. Weiter unter [Oberhalb der API](#oberhalb-der-api).
apiElse -->|No| apiDone[API layer done for this story]
50
50
apiMore --> apiDone
51
51
end
@@ -136,6 +136,7 @@ Typical layout:
136
136
-`zmsentities/schema/` — JSON Schema for entities (and related citizen API schemas)
137
137
-`zmsentities` PHP entity classes — the models that follow those schemas
138
138
-`zmsbackend/src/Zmsbackend/.../Api/` — API controllers that return those entities in responses
139
+
-`zmsbackend/routing.php` — Slim routes that wire URL paths to those controllers
139
140
140
141
**Question 4: Do I need to change or add the JSON schema / model in `zmsentities` so I can propagate the changes in my API controller response?**
141
142
@@ -146,13 +147,14 @@ Typical layout:
146
147
147
148
After the response shape is right, do a final pass on the API surface in `zmsbackend` (typically under `.../Api/`):
148
149
149
-
- new or changed routes / endpoints
150
+
-**new controller** → you **must** register it in [`zmsbackend/routing.php`](https://github.com/it-at-m/eappointment/blob/main/zmsbackend/routing.php) (Slim route → controller class); a controller file alone is not enough
151
+
- new or changed routes / endpoints for existing controllers (also in `routing.php`)
150
152
- request parsing or validation
151
153
- which service method the controller calls
152
154
- HTTP status codes, errors, or auth/permission checks
153
155
- related controllers that must stay consistent with the same contract
154
156
155
-
-**Yes** — finish those API-layer changes before leaving `zmsbackend`.
157
+
-**Yes** — finish those API-layer changes (including `routing.php` when you added a controller) before leaving `zmsbackend`.
156
158
-**No** — the API layer is done for this story.
157
159
158
160
Either answer **closes** the backend path for this story. Continue at [Above the API](#above-the-api).
0 commit comments