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?

PriyaAnanthram
Contributor III

Not very clear are you trying to run a job using REST API endpoint

something like this Execute Databricks Jobs via REST API in Postman (mssqltips.com) ?

Muni
New Contributor II

@Priya Ananthram​ No, that's not what we are looking for; we are already aware of Databricks REST API. But we are looking for a way to expose a custom REST API from Databricks. (Say: to add a two number , when we submit input data to an HTTP via REST API )

I dont think you can do that thats more like a webservice happy to be corrected by the databricks community

Hubert-Dudek
Databricks MVP
  • You can query tables in your metastore using JDBC drivers etc., so create tables, and then you can query them from your web service,
  • There is also an API service for consuming ML models.

If you clarify what exactly you want to expose in REST API, it would be easier to help.


My blog: https://databrickster.medium.com/

View solution in original post

Anonymous
Not applicable

Hi @Muniyappan Mani​ 

Hope all is well! Just wanted to check in if you were able to resolve your issue and would you be happy to share the solution or mark an answer as best? Else please let us know if you need more help. 

We'd love to hear from you.

Thanks!

View solution in original post