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

Additional Response Headers

Open
#510 3 comments 0 reactions 1 assignee Claimed by @bagelbits View on GitHub
Dominant language
TypeScript
Stars
934
Forks
427
Avg merge
17h 25m
Merged PRs (30d)
22

Description

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.

Contributor guide

Open the contributing guide

Research direction

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.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
api
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.