Call databricks notebook from azure flask app

johnp
New Contributor III

I have an Azure web app running flask web server.  From flask server, I want to run some queries on the data  stored in ADLS Gen2 storage.   I already created Databricks notebooks running these queries.  The flask server will pass some parameters in json format to the notebooks, and receive the query result in Json format from notebook too. My question is how to call/run these databricks notebooks from flask server? Can I do it with the Databricks REST API?