Zend certified PHP/Magento developer

How to create JavaScript widgets via Magento 2 APIs?

In the official Magento documentation, there’s a section saying that we can create JS widgets in the admin and frontend using the APIs.

“Create JavaScript widgets in the Magento storefront or on the Admin panel. The widget makes AJAX calls to access services.”

How could I create these JS widgets in the frontend and admin via APIs?