Azure / Azure/data-api-builder
Ability to set a header (Expires:) based on a column in a table/view
- Vorherrschende Sprache
- C#
- Sterne
- 1.5k
- Forks
- 370
- Ø Merge
- 3 T. 22 Std.
- Gemergte PRs (30 T.)
- 9
Beschreibung
Hi folks, I couldn't find anything like this issue in the backlog, so hopefully there's no duplicate.
We've got some data that's current for a long time (e.g. a reference table) and some other data that's only valid for minutes/hours. In order to benefit from CDN caching of our API responses, we define an [Expires: header](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Expires) in our API that's sourced from a column in the table. We do this with Azure function apps served from a database to good effect today.
Is there any way to set an Expires header within the Data API Builder, sourced from the database?
Beitragsleitfaden
Rechercherichtung
Beginne damit nachzuverfolgen, wie Data API Builder API-Antworten erstellt und datenbankgestützte Konfiguration liest, und ermittle dann, wo ein aus einer Tabelle oder View stammender HTTP-Expires-Wert definiert werden könnte. Als abgeschlossen gilt die Aufgabe, wenn das unterstützte Verhalten sowie seine Konfigurations- oder Abfrageeinschränkungen dokumentiert und durch geeignete API-Tests abgedeckt sind.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- azure, csharp
- Bereich
- api, backend, performance
- Issue-Typ
- Feature
- Schwierigkeit
- 5/5
- Geschätzter Aufwand
- Über eine Woche
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 35/100