We have an API for our organization that serves to validate information like phone/email/address that all our frontend applications use.
We would like to use this API for our Odoo apps as well.
So basically for instance, if you wish to validate a phone number you just wait for the user to enter something and asynchronously send the info to the API and based on the response let the user know that the phone is either valid or invalid.
How would I implement this API in an Odoo application?