C#C
C#2y ago
Alex

API structure

Hi! I have a route that return stations, the station data updates every 5 minutes, the stations data is big and I want to fetch it only when it is updated. How can I check that data is updated? What's better to create two separate routes, GET /stations = List<Station> GET /stations/last-update = DateTime or to have a single route /stations?=lastUpdate = DateTime /stations = List<Station>. Or is there a better way to do it?
Was this page helpful?