42
What's the best way to monitor an API for breaking changes?
(sh.itjust.works)
Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!
Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.
Hope you enjoy the instance!
Rules
Follow the wormhole through a path of communities !webdev@programming.dev
In my last place of work we just used a small perl script for such monitoring. You just recursively parse the whole body, save which paths exist and what type of data they have into db. When something changes it posted an alert to a webhook. Your case is a bit more complicated, but not by much.
I'm not sure what you mean on the first part. I've read that you should be able to sort of walk through a RESTful API via references to other "tables", but this API doesn't work like that. There's no endpoint that lists endpoints.
All of the responses are dozens to hundreds of lines of JSON, often with a few of the fields for each entry being present or absent depending.