Can we expose REST API using Databricks python notebook?

Muni
New Contributor II

We are trying to expose a REST API endpoint using python notebook. Does databricks allow this?