Skip to content

[Hoch] Defekten /api/{stationCode}/analysis-Endpoint entfernen#533

Open
maltehuebner wants to merge 1 commit into
mainfrom
chore/remove-broken-analysis-endpoint
Open

[Hoch] Defekten /api/{stationCode}/analysis-Endpoint entfernen#533
maltehuebner wants to merge 1 commit into
mainfrom
chore/remove-broken-analysis-endpoint

Conversation

@maltehuebner

Copy link
Copy Markdown
Contributor

Behebt #524.

Problem

GET /api/{stationCode}/analysis (AnalysisApiController::stationAnalysisAction) ruft DataRepository::findForAnalysis($station, 1) auf — diese Methode existiert nicht und ist kein Doctrine-Magic-Finder. Jeder Aufruf endet in HTTP 500.

Lösung

Nach Rücksprache entfernt (statt zu implementieren, da die Analyse-Semantik unklar ist):

  • Route api_station_analysis aus config/routing/2_api.yaml
  • src/Controller/Api/AnalysisApiController.php

Aufrufe ergeben künftig 404 statt 500. Es gibt keine weiteren Referenzen (Code/Tests/Templates geprüft).

Verifikation

debug:router listet keine analysis-Route mehr; lint:container ok.


🤖 Generated with Claude Code

Der Endpoint rief DataRepository::findForAnalysis() auf — eine Methode, die
nirgends existiert und von Doctrine nicht als magischer Finder aufgelöst wird.
Jeder Aufruf endete daher in HTTP 500 (toter Endpoint).

Da die fachliche Bedeutung der "Analyse" unklar ist, wird der Endpoint
entfernt (Route + AnalysisApiController). Aufrufe ergeben künftig sauber 404
statt 500. Keine weiteren Referenzen im Code/Tests/Templates.

Fixes #524

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant