Hacker News new | ask | show | jobs
by okane 279 days ago
If your new APIs use the same endpoint names and the same request/response schema (same field names, types, shape), then swapping the base URL in your fetch calls could get you most of the way there without touching your visualization components.

In practice I get that there’s usually some drift, like maybe a field is renamed or you have different error handling. Depending on how strictly your front-end components assume the old schema, you’ll need to update those areas.

1 comments

co-pilots tend to be really effective at this kind of migration work. especially once you've got the before and after schemas as types in your code.