What is the best way for an ARI application to make sure it connects to an Asterisk running an ARI version it's compatible with?

We have a scenario where we have customers running many Asterisk versions (happens over the years). Normally, we program APIs where the first thing the connection is supposed to do is retrieve version information. I see the AsteriskInfo works well for this. I see the Asterisk version in those details.

Is there a good way to know if an ARI application that works for Asterisk 20.10.0 will work for 20.11.0, 20.12.0, 20.13.0, etc?

This article mentions the ARI versioning.
https://docs.asterisk.org/Configuration/Interfaces/Asterisk-REST-Interface-ARI/ARI-Versioning/

Is there a way for the ARI application to check it’s expected version with Asterisk real ARI version?

We don’t break backwards compatibility in a major version, and even between major versions I don’t think we ever have. It’s really about minimum version as we have added functionality in subsequent minor versions.

Thank you