Skip to content

UI/UX: Deprecated API Endpoints Lack Clear Deprecation Headers#2238

Open
tomaioo wants to merge 1 commit into
FlexMeasures:mainfrom
tomaioo:fix/ui/deprecated-api-endpoints-lack-clear-depr
Open

UI/UX: Deprecated API Endpoints Lack Clear Deprecation Headers#2238
tomaioo wants to merge 1 commit into
FlexMeasures:mainfrom
tomaioo:fix/ui/deprecated-api-endpoints-lack-clear-depr

Conversation

@tomaioo

@tomaioo tomaioo commented Jun 15, 2026

Copy link
Copy Markdown

Summary

UI/UX: Deprecated API Endpoints Lack Clear Deprecation Headers

Problem

Severity: Medium | File: flexmeasures/api/v3_0/deprecated.py:L28

The deprecated SensorEntityAddressAPI endpoints in deprecated.py only log warnings and include deprecation notices in docstrings, but do not send standard HTTP deprecation headers (like Sunset or Deprecation headers) that automated clients and developers rely on to detect deprecated APIs programmatically.

Solution

Add HTTP deprecation headers such as 'Deprecation: true', 'Sunset: ', and 'Link: ; rel="successor-version"' to deprecated endpoints. This follows RFC 8594 and improves developer experience by making deprecation machine-readable.

Changes

  • flexmeasures/api/v3_0/deprecated.py (modified)

The deprecated SensorEntityAddressAPI endpoints in deprecated.py only log warnings and include deprecation notices in docstrings, but do not send standard HTTP deprecation headers (like Sunset or Deprecation headers) that automated clients and developers rely on to detect deprecated APIs programmatically.

Signed-off-by: tomaioo <203048277+tomaioo@users.noreply.github.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