5e-bits / 5e-bits/5e-database

Additional Response Headers

Offen
#510 3 Kommentare 0 Reaktionen 1 zugewiesene Person Beansprucht von @bagelbits Auf GitHub ansehen
Vorherrschende Sprache
TypeScript
Sterne
934
Forks
427
Ø Merge
17 Std. 25 Min.
Gemergte PRs (30 T.)
22

Beschreibung

Either to the Response Headers or Response data, it would be helpful to include `last-modified` - a date for when the item, monster, etc. was added to the SRC or last edited. This would help identify when an individual index ( i.e animated-shield ) was last modified.

Currently `date` Response Header outputs today's date.

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

Look at the API response handling code to see where headers are set. The issue mentions the 'date' header currently outputs today's date; find that logic and modify it to include a 'last-modified' header based on the item's actual modification date. Check the data models for monsters and items to see if they have timestamps. Test by making a request to an endpoint like /api/monsters or /api/items and verifying the new header appears.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
typescript
Bereich
api
Issue-Typ
Feature
Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
45/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.