cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
cancel
Showing results for 
Search instead for 
Did you mean: 

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?

1 ACCEPTED SOLUTION

Accepted Solutions

Hubert-Dudek
Esteemed Contributor III
  • 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.

View solution in original post

5 REPLIES 5

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
Esteemed Contributor III
  • 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.

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!

Welcome to Databricks Community: Lets learn, network and celebrate together

Join our fast-growing data practitioner and expert community of 80K+ members, ready to discover, help and collaborate together while making meaningful connections. 

Click here to register and join today! 

Engage in exciting technical discussions, join a group with your peers and meet our Featured Members.