At least for people comfortable with doing test driven development.
Write your requirements for your API-driven code as tests first, then document those APIs by running the tests through this tool.
I'm using aide for a Rust/Axum server: https://github.com/tamasfe/aide