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

Additional Response Headers

Abierto
#510 3 comentarios 0 reacciones 1 asignado Reclamado por @bagelbits Ver en GitHub
Lenguaje dominante
TypeScript
Estrellas
934
Forks
427
Merge medio
17 h 25 min
PR fusionados (30 d)
22

Descripción

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.

Guía de contribución

Abrir la guía de contribución

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
typescript
Área
api
Tipo de issue
Nueva funcionalidad
Dificultad
3/5
Tiempo estimado
1-2 días
Estado de actividad
Estancado
Claridad
Bastante claro
Aptitud para principiantes
45/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.