We built something like this. SDK you can drop into your API code, then we generate an OpenAPI spec based off of your traffic. Demo here: https://www.loom.com/share/c5b242d25de84e1d95b03fd35eab7099