Or put the API definitions into some database (sqlite, datascript + nodejs or babashka or nbb), then you can decide what http library or mocked http solution would you like to use, eg
https://github.com/oliyh/martianMost of the code is just a thin veneer over that information...